d44a588d8b4f52dbc062f3ef010f73d128730594
[phpeclipse.git] /
1 package net.sourceforge.phpeclipse.wiki.actions.httpquery;
2
3 import net.sourceforge.phpeclipse.wiki.editor.WikiEditorPlugin;
4 import net.sourceforge.phpeclipse.wiki.internal.ConfigurationWorkingCopy;
5 import net.sourceforge.phpeclipse.wiki.internal.IConfiguration;
6
7
8 public class GoogleAction extends AbstractHTTPQueryAction {
9
10   public GoogleAction() {
11     super();
12   }
13
14   protected IConfiguration getUrl() {
15     ConfigurationWorkingCopy config = new ConfigurationWorkingCopy();
16     config.setName("Google Search");
17     config.setURL("http://www.google.com/search?q=$text.selection");
18     config.setType(WikiEditorPlugin.HTTP_QUERY);
19     return config;
20   }
21
22 }