Files
loongoffice/scripting/examples/java/Newsgroup/NewsGroup.java
Stephan Bergmann 0b9fda25f3 fdo#46102: Fix Java script examples after gbuild'ification
...they contained no class files anymore, due to missing gb_Jar_set_packageroot
calls.  However, those calls only work for subdirectories, i.e., the example
.java files need to be put into a package (I chose
org.libreoffice.example.java_scripts) for all of them).  This in turn required
adaption of the parcel-descriptor.xml files; not sure what the logicalname
entries there are good for if anything -- the macro names at "Tools - Macros -
Run Macro..." now unfortunately(?) contain the fully qualified paths for the
HelloWorld, HighlightText, and MemoryUpdate examples.  There are additional
examples at scripting/examples/java/ that apparently do not get packaged (but I
adapted them anyway).
2012-03-23 16:20:17 +01:00

26 lines
418 B
Java

package org.libreoffice.example.java_scripts;
public class NewsGroup
{
private String hostname = "";
private String newsgroupName = "";
public NewsGroup( String host, String group )
{
hostname = host;
newsgroupName = group;
}
public String getHostName()
{
return hostname;
}
public String getNewsgroupName()
{
return newsgroupName;
}
}