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 DownloadWikibooksENAction extends DownloadWikipediaAction {
10 protected Configuration getConfiguration() {
11 List configs = WikiEditorPlugin.getConfigurations();
12 ConfigurationWorkingCopy configuration = null;
14 for (int i = 0; i < configs.size(); i++) {
15 configuration = (ConfigurationWorkingCopy) configs.get(i);
16 if (configuration.getName().equals("Wikibooks-en") && configuration.getType().equals("Wikipedia-Load Text")) {
22 if (configuration == null) {
23 // fall back, if user deleted configuration:
24 configuration = new ConfigurationWorkingCopy();
25 configuration.setURL("http://en.wikibooks.org/w/index.php?title=$text.wikiname&action=raw");