1436190 - Test additions & refactoring
[phpeclipse.git] / net.sourceforge.phpeclipse.phphelp / src / net / sourceforge / phpdt / httpquery / KodersAction.java
1 package net.sourceforge.phpdt.httpquery;
2
3 import net.sourceforge.phpdt.httpquery.config.Configuration;
4 import net.sourceforge.phpdt.httpquery.config.ConfigurationWorkingCopy;
5 import net.sourceforge.phpdt.phphelp.PHPHelpPlugin;
6
7
8 public class KodersAction extends HTTPQueryAction {
9
10   public KodersAction() {
11     super();
12   }
13
14   protected Configuration getConfiguration(String name) {
15         Configuration conf = super.getConfiguration("Koders.com");
16                 if (conf != null) {
17                         return conf;
18                 }
19     ConfigurationWorkingCopy config = new ConfigurationWorkingCopy();
20     config.setName("Koders.com");
21     config.setURL("http://koders.com/?s=$text.selection");
22     config.setType(PHPHelpPlugin.HTTP_QUERY);
23     return config;
24   }
25 }