X-Git-Url: http://git.phpeclipse.com diff --git a/archive/net.sourceforge.phpeclipse.wiki/src/net/sourceforge/phpeclipse/wiki/editor/WikiEditorPlugin.java b/archive/net.sourceforge.phpeclipse.wiki/src/net/sourceforge/phpeclipse/wiki/editor/WikiEditorPlugin.java index 41afec5..eebe5e1 100644 --- a/archive/net.sourceforge.phpeclipse.wiki/src/net/sourceforge/phpeclipse/wiki/editor/WikiEditorPlugin.java +++ b/archive/net.sourceforge.phpeclipse.wiki/src/net/sourceforge/phpeclipse/wiki/editor/WikiEditorPlugin.java @@ -18,6 +18,8 @@ import net.sourceforge.phpeclipse.wiki.internal.ConfigurationManager; import net.sourceforge.phpeclipse.wiki.internal.IConfigurationWorkingCopy; import net.sourceforge.phpeclipse.wiki.sql.WikipediaDB; +import org.eclipse.core.resources.IWorkspace; +import org.eclipse.core.resources.ResourcesPlugin; import org.eclipse.core.runtime.CoreException; import org.eclipse.core.runtime.IExtension; import org.eclipse.core.runtime.IPluginDescriptor; @@ -43,6 +45,17 @@ public class WikiEditorPlugin extends AbstractUIPlugin { private static WikiEditorPlugin fgPlugin; + public final static String AUTOMATICALLY_CREATED = ""; + + public final static String WP_EXTENSION = "wp"; + public final static String XML_START_1 = "\n" + + "\n"; + public final static String XML_END ="\n"; + public static final String PREFIX_LOAD = "Load "; + + public static final String PREFIX_STORE = "Store "; + public static final String HTTP_QUERY = "HTTP Query"; // public static final String WIKIPEDIA_GET_TEXT = "Load WikipediaEN"; @@ -54,7 +67,23 @@ public class WikiEditorPlugin extends AbstractUIPlugin { public static final String BLOG_A_HTML = "Blog as HTML Text"; - public static final String[] PREDEFINED_TYPES = { HTTP_QUERY, WIKIPEDIA_SQL, BLOG_A_WIKI, BLOG_A_HTML }; + public static final String PLOG4U_DE_LOAD = PREFIX_LOAD + "Plog4UDE"; + + public static final String PLOG4U_DE_STORE = PREFIX_STORE + "Plog4UDE"; + + public static final String PLOG4U_ORG_LOAD = PREFIX_LOAD + "Plog4UORG"; + + public static final String PLOG4U_ORG_STORE = PREFIX_STORE + "Plog4UORG"; + + public static final String[] PREDEFINED_TYPES = { + HTTP_QUERY, + WIKIPEDIA_SQL, + PLOG4U_DE_LOAD, + PLOG4U_DE_STORE, + PLOG4U_ORG_LOAD, + PLOG4U_ORG_STORE, + BLOG_A_WIKI, + BLOG_A_HTML }; public static final String[] PREDEFINED_WIKIS = { "WikibooksDE", @@ -69,11 +98,18 @@ public class WikiEditorPlugin extends AbstractUIPlugin { "WikipediaES", "WikipediaET", "WikipediaFI", - "WikipediaFR" }; - - public static final String PREFIX_LOAD = "Load "; - - public static final String PREFIX_STORE = "Store "; + "WikipediaFR", + "WikipediaHE", + "WikipediaIA", + "WikipediaIT", + "WikipediaJA", + "WikipediaNL", + "WikipediaPL", + "WikipediaPT", + "WikipediaRO", + "WikipediaSL", + "WikipediaSV", + "WikipediaZH" }; public static final ArrayList CONFIGURATION_TYPES = new ArrayList(); @@ -94,17 +130,25 @@ public class WikiEditorPlugin extends AbstractUIPlugin { public final static String EXPORT_CSS_URL = "__export_css_url"; - public final static String PREF_STRING_CONFIGURATIONS = "__configurations2"; + public final static String PREF_STRING_CONFIGURATIONS = "__configurations3"; - public final static String CONFIG_MEMENTO = "" - + "" + public final static String CONFIG_MEMENTO = "" + "" + "" + "" + "" - + "" - + "" - + "" - + "" + + + "" + "" + + "" + + "" + + + "" + "" + + "" + "" + "" + ""; @@ -466,6 +510,13 @@ public class WikiEditorPlugin extends AbstractUIPlugin { return (IWikipedia) method.invoke(null, new Object[0]); } + /** + * Returns the workspace instance. + */ + public static IWorkspace getWorkspace() { + return ResourcesPlugin.getWorkspace(); + } + // test code // public static void main(String[] args) { // try {