Author: scabanovich
Date: 2008-06-30 12:07:30 -0400 (Mon, 30 Jun 2008)
New Revision: 9024
Modified:
trunk/seam/plugins/org.jboss.tools.seam.pages.xml/src/org/jboss/tools/seam/pages/xml/model/handlers/AddExceptionHandler.java
trunk/seam/plugins/org.jboss.tools.seam.pages.xml/src/org/jboss/tools/seam/pages/xml/model/handlers/AddViewSupport.java
Log:
JBIDE-2307
Modified:
trunk/seam/plugins/org.jboss.tools.seam.pages.xml/src/org/jboss/tools/seam/pages/xml/model/handlers/AddExceptionHandler.java
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.pages.xml/src/org/jboss/tools/seam/pages/xml/model/handlers/AddExceptionHandler.java 2008-06-30
15:16:08 UTC (rev 9023)
+++
trunk/seam/plugins/org.jboss.tools.seam.pages.xml/src/org/jboss/tools/seam/pages/xml/model/handlers/AddExceptionHandler.java 2008-06-30
16:07:30 UTC (rev 9024)
@@ -6,6 +6,7 @@
import org.jboss.tools.common.model.XModelException;
import org.jboss.tools.common.model.XModelObject;
import org.jboss.tools.common.model.util.XModelObjectLoaderUtil;
+import org.jboss.tools.seam.pages.xml.model.SeamPagesConstants;
import org.jboss.tools.seam.pages.xml.model.helpers.SeamPagesDiagramStructureHelper;
public class AddExceptionHandler extends DefaultCreateHandler {
@@ -28,6 +29,9 @@
protected XModelObject modifyCreatedObject(XModelObject o) {
Properties p = extractProperties(data[0]);
+ String viewId = p.getProperty(SeamPagesConstants.ATTR_VIEW_ID);
+ viewId = AddViewSupport.revalidatePath(viewId);
+ p.setProperty(SeamPagesConstants.ATTR_VIEW_ID, viewId);
String childEntity = action.getProperty("childEntity");
XModelObject c = XModelObjectLoaderUtil.createValidObject(o.getModel(), childEntity,
p);
o.addChild(c);
Modified:
trunk/seam/plugins/org.jboss.tools.seam.pages.xml/src/org/jboss/tools/seam/pages/xml/model/handlers/AddViewSupport.java
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.pages.xml/src/org/jboss/tools/seam/pages/xml/model/handlers/AddViewSupport.java 2008-06-30
15:16:08 UTC (rev 9023)
+++
trunk/seam/plugins/org.jboss.tools.seam.pages.xml/src/org/jboss/tools/seam/pages/xml/model/handlers/AddViewSupport.java 2008-06-30
16:07:30 UTC (rev 9024)
@@ -211,7 +211,7 @@
if(!path.startsWith("/") && !path.startsWith("*")) path =
"/" + path;
if(hasWildCard(path)) return path;
if(path.indexOf('.') < 0 && !path.endsWith("/")) {
- path += getExtension();
+// path += getExtension();
}
return path;
}
Show replies by date