Moved Google and Koders Search to the wiki plugin
[phpeclipse.git] / archive / net.sourceforge.phpeclipse.wiki / src / net / sourceforge / phpeclipse / wiki / actions / httpquery / KodersAction.java
index 0492d21..909f29c 100644 (file)
@@ -1,5 +1,9 @@
 package net.sourceforge.phpeclipse.wiki.actions.httpquery;
 
+import net.sourceforge.phpeclipse.wiki.editor.WikiEditorPlugin;
+import net.sourceforge.phpeclipse.wiki.internal.ConfigurationWorkingCopy;
+import net.sourceforge.phpeclipse.wiki.internal.IConfiguration;
+
 
 public class KodersAction extends AbstractHTTPQueryAction {
 
@@ -7,7 +11,11 @@ public class KodersAction extends AbstractHTTPQueryAction {
     super();
   }
 
-  protected String getUrl(String selection) {
-    return "http://koders.com/?s=" + selection;
+  protected IConfiguration getUrl() {
+    ConfigurationWorkingCopy config = new ConfigurationWorkingCopy();
+    config.setName("Koders.com Search");
+    config.setURL("http://koders.com/?s=$text.selection");
+    config.setType(WikiEditorPlugin.HTTP_QUERY);
+    return config;
   }
 }
\ No newline at end of file