1436190 - Test additions & refactoring
[phpeclipse.git] / net.sourceforge.phpeclipse.phphelp / src / net / sourceforge / phpdt / httpquery / AbstractHTTPQueryAction.java
index 6d36486..1592734 100644 (file)
@@ -24,7 +24,7 @@ public abstract class AbstractHTTPQueryAction implements IEditorActionDelegate {
                super();
        }
 
-       abstract protected Configuration getConfiguration();
+       abstract protected Configuration getConfiguration(String name);
 
        public void setActiveEditor(IAction action, IEditorPart targetEditor) {
                if (targetEditor != null && (targetEditor instanceof AbstractTextEditor)) {
@@ -50,10 +50,12 @@ public abstract class AbstractHTTPQueryAction implements IEditorActionDelegate {
                                } else {
                                        page.bringToTop(part);
                                }
-                               Configuration config = getConfiguration();
+                               Configuration config = getConfiguration(null);
                                String templateString = generateUrl(config, config.getURL());
                                if (templateString != null && !templateString.equals("")) {
                                        ((BrowserView) part).setUrl(templateString);
+                               } else {
+                                       ((BrowserView) part).setUrl(config.getURL());
                                }
                        } catch (Exception e) {
                        }