Author: scabanovich
Date: 2007-08-14 12:10:00 -0400 (Tue, 14 Aug 2007)
New Revision: 3129
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/browser/AbstractBrowserContext.java
trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/browser/wtp/RunOnServerContext.java
Log:
EXIN-160
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/browser/AbstractBrowserContext.java
===================================================================
---
trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/browser/AbstractBrowserContext.java 2007-08-14
16:07:03 UTC (rev 3128)
+++
trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/browser/AbstractBrowserContext.java 2007-08-14
16:10:00 UTC (rev 3129)
@@ -33,6 +33,10 @@
public abstract String getModelActionPath();
+ protected boolean inited = false;
+ public void init() {
+ }
+
public void execute(XModelObject object) throws Exception {
setLastRunObject(object);
if(url == null) throw new Exception("Cannot open " +
DefaultCreateHandler.title(object, false));
@@ -87,6 +91,9 @@
public String computeURL(XModelObject o) {
if(o == null || !o.isActive()) return null;
+ if(!inited) {
+ init();
+ }
String u = null;
for (int i = 0; i < sources.length && u == null; i++) {
u = sources[i].computeURL(o);
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/browser/wtp/RunOnServerContext.java
===================================================================
---
trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/browser/wtp/RunOnServerContext.java 2007-08-14
16:07:03 UTC (rev 3128)
+++
trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/browser/wtp/RunOnServerContext.java 2007-08-14
16:10:00 UTC (rev 3129)
@@ -46,7 +46,9 @@
"org.jboss.tools.jsf.model.handlers.run.RunOnServerHandler" //$NON-NLS-1$
};
- static {
+ public void init() {
+ if(inited) return;
+ inited = true;
//causes delegating IPathSource to RunOnServerContext
//this is temporal implementation
for (int i = 0; i < pathSources.length; i++) {
Show replies by date