1) Fixed issue #844: Short form of ternary operator (since PHP 5.3).
[phpeclipse.git] / net.sourceforge.phpeclipse.phphelp / src / net / sourceforge / phpdt / httpquery / LocalhostAction.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 public class LocalhostAction extends HTTPQueryAction {
8
9         public LocalhostAction() {
10                 super();
11         }
12
13         protected Configuration getConfiguration(String name) {
14                 Configuration conf = super.getConfiguration("Localhost");
15                 if (conf != null) {
16                         return conf;
17                 }
18                 ConfigurationWorkingCopy config = new ConfigurationWorkingCopy();
19                 config.setName("Localhost");
20                 config.setURL("http://localhost");
21                 config.setType(PHPHelpPlugin.HTTP_QUERY);
22                 return config;
23         }
24
25 }