Enable word wrapping with preference key editor.wrap.words (false by default)
[phpeclipse.git] / archive / net.sourceforge.phpeclipse.wiki / src / net / sourceforge / phpeclipse / wiki / actions / httpquery / GoogleAction.java
index 0b293c4..5eab038 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.Configuration;
+import net.sourceforge.phpeclipse.wiki.internal.ConfigurationWorkingCopy;
+
 
 public class GoogleAction extends AbstractHTTPQueryAction {
 
@@ -7,8 +11,12 @@ public class GoogleAction extends AbstractHTTPQueryAction {
     super();
   }
 
-  protected String getUrl(String selection) {
-    return "http://www.google.com/search?q=" + selection;
+  protected Configuration getConfiguration() {
+    ConfigurationWorkingCopy config = new ConfigurationWorkingCopy();
+    config.setName("Google Search");
+    config.setURL("http://www.google.com/search?q=$text.selection");
+    config.setType(WikiEditorPlugin.HTTP_QUERY);
+    return config;
   }
 
 }
\ No newline at end of file