Refactory: remove unused classes, imports, fields and methods.
[phpeclipse.git] / net.sourceforge.phpeclipse.phphelp / src / net / sourceforge / phpdt / httpquery / PHPHelpAction.java
index 86878e9..e0c5b2b 100644 (file)
@@ -4,18 +4,22 @@ import net.sourceforge.phpdt.httpquery.config.Configuration;
 import net.sourceforge.phpdt.httpquery.config.ConfigurationWorkingCopy;
 import net.sourceforge.phpdt.phphelp.PHPHelpPlugin;
 
+public class PHPHelpAction extends HTTPQueryAction {
 
-public class PHPHelpAction extends AbstractHTTPQueryAction {
+       public PHPHelpAction() {
+               super();
+       }
 
-  public PHPHelpAction() {
-    super();
-  }
-
-  protected Configuration getConfiguration() {
-    ConfigurationWorkingCopy config = new ConfigurationWorkingCopy();
-    config.setName("PHP Online Manual");
-    config.setURL("http://www.php.net/manual/en/function.$php.selection.php");
-    config.setType(PHPHelpPlugin.HTTP_QUERY);
-    return config;
-  }
+       protected Configuration getConfiguration(String name) {
+               Configuration conf = super.getConfiguration("PHP Manual");
+               if (conf != null) {
+                       return conf;
+               }
+               ConfigurationWorkingCopy config = new ConfigurationWorkingCopy();
+               config.setName("PHP Manual");
+               config
+                               .setURL("http://www.php.net/manual/en/function.$php.selection.php");
+               config.setType(PHPHelpPlugin.HTTP_QUERY);
+               return config;
+       }
 }
\ No newline at end of file