Merge branch 'master' of ssh://git.phpeclipse.com/phpeclipse
[phpeclipse.git] / net.sourceforge.phpeclipse.phphelp / src / net / sourceforge / phpdt / httpquery / KodersAction.java
index a6b6a99..f6794c1 100644 (file)
@@ -4,18 +4,21 @@ import net.sourceforge.phpdt.httpquery.config.Configuration;
 import net.sourceforge.phpdt.httpquery.config.ConfigurationWorkingCopy;
 import net.sourceforge.phpdt.phphelp.PHPHelpPlugin;
 
+public class KodersAction extends HTTPQueryAction {
 
-public class KodersAction extends AbstractHTTPQueryAction {
+       public KodersAction() {
+               super();
+       }
 
-  public KodersAction() {
-    super();
-  }
-
-  protected Configuration getConfiguration() {
-    ConfigurationWorkingCopy config = new ConfigurationWorkingCopy();
-    config.setName("Koders.com Search");
-    config.setURL("http://koders.com/?s=$text.selection");
-    config.setType(PHPHelpPlugin.HTTP_QUERY);
-    return config;
-  }
+       protected Configuration getConfiguration(String name) {
+               Configuration conf = super.getConfiguration("Koders.com");
+               if (conf != null) {
+                       return conf;
+               }
+               ConfigurationWorkingCopy config = new ConfigurationWorkingCopy();
+               config.setName("Koders.com");
+               config.setURL("http://koders.com/?s=$text.selection");
+               config.setType(PHPHelpPlugin.HTTP_QUERY);
+               return config;
+       }
 }
\ No newline at end of file