Refactory: remove unused classes, imports, fields and methods.
[phpeclipse.git] / net.sourceforge.phpeclipse.phphelp / src / net / sourceforge / phpdt / httpquery / GoogleAction.java
index e555929..804737e 100644 (file)
@@ -4,19 +4,22 @@ import net.sourceforge.phpdt.httpquery.config.Configuration;
 import net.sourceforge.phpdt.httpquery.config.ConfigurationWorkingCopy;
 import net.sourceforge.phpdt.phphelp.PHPHelpPlugin;
 
+public class GoogleAction extends HTTPQueryAction {
 
-public class GoogleAction extends AbstractHTTPQueryAction {
+       public GoogleAction() {
+               super();
+       }
 
-  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;
-  }
+       protected Configuration getConfiguration(String name) {
+               Configuration conf = super.getConfiguration("Google.com");
+               if (conf != null) {
+                       return conf;
+               }
+               ConfigurationWorkingCopy config = new ConfigurationWorkingCopy();
+               config.setName("Google.com");
+               config.setURL("http://www.google.com/search?q=$text.selection");
+               config.setType(PHPHelpPlugin.HTTP_QUERY);
+               return config;
+       }
 
 }
\ No newline at end of file