X-Git-Url: http://git.phpeclipse.com diff --git a/archive/net.sourceforge.phpeclipse.wiki/src/net/sourceforge/phpeclipse/wiki/actions/httpquery/GoogleAction.java b/archive/net.sourceforge.phpeclipse.wiki/src/net/sourceforge/phpeclipse/wiki/actions/httpquery/GoogleAction.java index 0b293c4..d44a588 100644 --- a/archive/net.sourceforge.phpeclipse.wiki/src/net/sourceforge/phpeclipse/wiki/actions/httpquery/GoogleAction.java +++ b/archive/net.sourceforge.phpeclipse.wiki/src/net/sourceforge/phpeclipse/wiki/actions/httpquery/GoogleAction.java @@ -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 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 IConfiguration getUrl() { + 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