X-Git-Url: http://git.phpeclipse.com diff --git a/archive/net.sourceforge.phpeclipse.wiki/src/net/sourceforge/phpeclipse/wiki/actions/mediawiki/config/WikipediaIA.java b/archive/net.sourceforge.phpeclipse.wiki/src/net/sourceforge/phpeclipse/wiki/actions/mediawiki/config/WikipediaIA.java new file mode 100644 index 0000000..08a2f65 --- /dev/null +++ b/archive/net.sourceforge.phpeclipse.wiki/src/net/sourceforge/phpeclipse/wiki/actions/mediawiki/config/WikipediaIA.java @@ -0,0 +1,54 @@ +package net.sourceforge.phpeclipse.wiki.actions.mediawiki.config; + +//Parts of this sources are copied and modified from the jEdit Wikipedia plugin: +//http://www.djini.de/software/wikipedia/index.html +// +//The modified sources are available under the "Common Public License" +//with permission from the original author: Daniel Wunsch + +public class WikipediaIA extends AbstractWikipedia { + + final private static String[] nameSpaces = new String[] { + "Media", + "Special", + "", + "Discussion", + "Usator", + "Discussion Usator", + "Wikipedia", + "Discussion Wikipedia", + "Imagine", + "Discussion Imagine", + "MediaWiki", + "Discussion MediaWiki", + "Template", + "Template talk", + "Help", + "Help talk", + "Category", + "Category talk" }; + + private static WikipediaIA instance = new WikipediaIA(); + + /** + * Get the singleton instance + * + * @see net.sourceforge.phpeclipse.wiki.editor.WikiEditorPlugin#getWikiInstance() + */ + public static IWikipedia getInstance() { + return instance; + } + + // private constructor + private WikipediaIA() { + super(new WikiProperties("WikipediaIA")); + } + + /** + * @return Returns the nameSpaces. + */ + public String[] getNameSpaces() { + return nameSpaces; + } + +} \ No newline at end of file