Open PHP Help Online Manual in the browser / add other http querie for google and...
[phpeclipse.git] / net.sourceforge.phpeclipse.phphelp / src / net / sourceforge / phpdt / httpquery / GoogleAction.java
diff --git a/net.sourceforge.phpeclipse.phphelp/src/net/sourceforge/phpdt/httpquery/GoogleAction.java b/net.sourceforge.phpeclipse.phphelp/src/net/sourceforge/phpdt/httpquery/GoogleAction.java
new file mode 100644 (file)
index 0000000..e555929
--- /dev/null
@@ -0,0 +1,22 @@
+package net.sourceforge.phpdt.httpquery;
+
+import net.sourceforge.phpdt.httpquery.config.Configuration;
+import net.sourceforge.phpdt.httpquery.config.ConfigurationWorkingCopy;
+import net.sourceforge.phpdt.phphelp.PHPHelpPlugin;
+
+
+public class GoogleAction extends AbstractHTTPQueryAction {
+
+  public GoogleAction() {
+    super();
+  }
+
+  protected Configuration getConfiguration() {
+    ConfigurationWorkingCopy config = new ConfigurationWorkingCopy();
+    config.setName("Google Search");
+    config.setURL("http://www.google.com/search?q=$text.selection");
+    config.setType(PHPHelpPlugin.HTTP_QUERY);
+    return config;
+  }
+
+}
\ No newline at end of file