Author: scabanovich
Date: 2007-10-11 08:15:27 -0400 (Thu, 11 Oct 2007)
New Revision: 4114
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web.tiles/src/org/jboss/tools/jst/web/tiles/model/handlers/CreateTilesSupport.java
Log:
JBIDE-778
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web.tiles/src/org/jboss/tools/jst/web/tiles/model/handlers/CreateTilesSupport.java
===================================================================
---
trunk/jst/plugins/org.jboss.tools.jst.web.tiles/src/org/jboss/tools/jst/web/tiles/model/handlers/CreateTilesSupport.java 2007-10-11
12:12:01 UTC (rev 4113)
+++
trunk/jst/plugins/org.jboss.tools.jst.web.tiles/src/org/jboss/tools/jst/web/tiles/model/handlers/CreateTilesSupport.java 2007-10-11
12:15:27 UTC (rev 4114)
@@ -14,6 +14,7 @@
import org.jboss.tools.common.model.*;
import org.jboss.tools.common.model.files.handlers.CreateFileSupport;
import org.jboss.tools.common.model.undo.*;
+import org.jboss.tools.jst.web.tiles.model.TilesConstants;
import org.jboss.tools.jst.web.tiles.model.TilesProcessImpl;
import org.jboss.tools.jst.web.tiles.model.helpers.TilesRegistrationHelper;
@@ -56,7 +57,14 @@
open(file);
}
-
+
+ protected XModelObject modifyCreatedObject(XModelObject o) {
+ XModelObject d = o.getModel().createModelObject(TilesConstants.ENT_DEFINITION, null);
+ d.setAttributeValue("name", o.getAttributeValue("name"));
+ o.addChild(d);
+ return o;
+ }
+
private boolean canRegisterInternal() {
return TilesRegistrationHelper.isEnabled(getTarget().getModel());
}
Show replies by date