RefreshJob loads max 10 articles at a time; there's a delay of 1 second for the next...
[phpeclipse.git] / archive / net.sourceforge.phpeclipse.wiki / src / net / sourceforge / phpeclipse / wiki / editor / WikiEditorPlugin.java
index eebe5e1..099922a 100644 (file)
@@ -129,8 +129,10 @@ public class WikiEditorPlugin extends AbstractUIPlugin {
   public final static String LOCAL_CSS_URL = "__local_css_url";
 
   public final static String EXPORT_CSS_URL = "__export_css_url";
-
-  public final static String PREF_STRING_CONFIGURATIONS = "__configurations3";
+  public final static String PREF_STRING_CONFIGURATIONS = "__configurations4";
+  
+  public final static String CONSOLE_OUTPUT = "__console_output";
 
   public final static String CONFIG_MEMENTO = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>" + "<configurations>"
       + "<config name=\"Google Search\" type-id=\"HTTP Query\" url=\"http://www.google.com/search?q=$text.selection\"/>"
@@ -140,8 +142,8 @@ public class WikiEditorPlugin extends AbstractUIPlugin {
       + "<config name=\"Plog4U.de Download\" type-id=\"" + PLOG4U_DE_LOAD
       + "\" url=\"http://www.plog4u.de/index.php/Spezial:Export\"/>" + "<config name=\"Plog4U.org Download\" type-id=\""
       + PLOG4U_ORG_LOAD + "\" url=\"http://www.plog4u.org/index.php/Special:Export\"/>"
-      + "<config name=\"Plog4U.de Upload\" type-id=\"" + PLOG4U_DE_STORE + "\" url=\"http://en.wikipedia.org/w/index.php\"/>"
-      + "<config name=\"Plog4U.org Upload\" type-id=\"" + PLOG4U_ORG_STORE + "\" url=\"http://en.wikibooks.org/w/index.php\"/>"
+      + "<config name=\"Plog4U.de Upload\" type-id=\"" + PLOG4U_DE_STORE + "\" url=\"http://www.plog4u.de/index.php\"/>"
+      + "<config name=\"Plog4U.org Upload\" type-id=\"" + PLOG4U_ORG_STORE + "\" url=\"http://www.plog4u.org/index.php\"/>"
 
       + "<config name=\"WikipediaEN Download\" type-id=\"" + PREFIX_LOAD
       + "WikipediaEN\" url=\"http://en.wikipedia.org/wiki/Special:Export\"/>" + "<config name=\"WikibooksEN Download\" type-id=\""
@@ -324,6 +326,7 @@ public class WikiEditorPlugin extends AbstractUIPlugin {
    */
   protected void initializeDefaultPreferences(IPreferenceStore store) {
     store.setDefault(PREF_STRING_CONFIGURATIONS, CONFIG_MEMENTO);
+    store.setDefault(CONSOLE_OUTPUT, "true");
   }
 
   /*
@@ -378,8 +381,8 @@ public class WikiEditorPlugin extends AbstractUIPlugin {
 
   public void reportError(String title, String message) {
     try {
-      Shell shell = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell();
-      MessageDialog.openError(shell, title, message);
+//      Shell shell = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell();
+      MessageDialog.openError(null, title, message);
     } catch (RuntimeException e) {
       log(e.getLocalizedMessage(), e);
     }