Logo
Explore Help
Register Sign In
mir/libreoffice
2
0
Fork 0
You've already forked libreoffice
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
Files
7be964961f0c3c884766f6215eb214c7e7d65a11
libreoffice/scripting/examples/java/Newsgroup/NewsGroup.java

26 lines
418 B
Java
Raw Normal View History

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:11:42 +01:00
package org.libreoffice.example.java_scripts;
Initial inport of Post to Newsgroup demo
2003-01-16 15:46:23 +00:00
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;
}
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.5 Page: 3759ms Template: 6ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API