1 package net.sourceforge.phpeclipse.wiki.actions.mediawiki;
5 import net.sourceforge.phpeclipse.wiki.editor.WikiEditorPlugin;
6 import net.sourceforge.phpeclipse.wiki.internal.Configuration;
7 import net.sourceforge.phpeclipse.wiki.internal.ConfigurationWorkingCopy;
9 public final class DownloadWikipediaENAction extends DownloadWikipediaAction {
10 protected Configuration getConfiguration(){
11 List configs = WikiEditorPlugin.getConfigurations();
12 ConfigurationWorkingCopy configuration = null;
13 for (int i = 0; i < configs.size(); i++) {
14 configuration = (ConfigurationWorkingCopy) configs.get(i);
15 if (configuration.getName().equals("Wikipedia-en") && configuration.getType().equals("Wikipedia-Load Text")) {
21 if (configuration == null) {
22 // fall back, if user deleted configuration:
23 configuration = new ConfigurationWorkingCopy();
24 configuration.setURL("http://en.wikipedia.org/w/wiki.phtml?title=$text.wikiname&action=raw");