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 {
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