Author: scabanovich
Date: 2009-06-09 09:53:09 -0400 (Tue, 09 Jun 2009)
New Revision: 15817
Added:
trunk/seam/plugins/org.jboss.tools.seam.xml/src/org/jboss/tools/seam/xml/components/model/SeamComponetImpl.java
Modified:
trunk/seam/plugins/org.jboss.tools.seam.xml/plugin.xml
trunk/seam/plugins/org.jboss.tools.seam.xml/resources/meta/seam-components.meta
Log:
https://jira.jboss.org/jira/browse/JBIDE-4393
Modified: trunk/seam/plugins/org.jboss.tools.seam.xml/plugin.xml
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.xml/plugin.xml 2009-06-09 13:49:35 UTC (rev
15816)
+++ trunk/seam/plugins/org.jboss.tools.seam.xml/plugin.xml 2009-06-09 13:53:09 UTC (rev
15817)
@@ -46,6 +46,9 @@
<xclass
id="org.jboss.tools.seam.xml.components.model.SeamComponentsEntityRecognizer"
class="org.jboss.tools.seam.xml.components.model.SeamComponentsEntityRecognizer"/>
+ <xclass id="org.jboss.tools.seam.xml.components.model.SeamComponetImpl"
+ class="org.jboss.tools.seam.xml.components.model.SeamComponetImpl"/>
+
<xclass
id="org.jboss.tools.seam.xml.components.model.constraint.ListELConstraint"
class="org.jboss.tools.seam.xml.components.model.constraint.ListELConstraint"/>
<xclass
id="org.jboss.tools.seam.xml.components.model.constraint.IntELConstraint"
Modified: trunk/seam/plugins/org.jboss.tools.seam.xml/resources/meta/seam-components.meta
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.xml/resources/meta/seam-components.meta 2009-06-09
13:49:35 UTC (rev 15816)
+++
trunk/seam/plugins/org.jboss.tools.seam.xml/resources/meta/seam-components.meta 2009-06-09
13:53:09 UTC (rev 15817)
@@ -1268,8 +1268,9 @@
</XActionItem>
<XDependencies/>
</XModelEntity>
- <XModelEntity ImplementingClass="%Custom%"
-
PROPERTIES="formFactory=%Default%;formLayout=org.jboss.tools.seam.xml.ui.editor.form.SeamXMLFormLayoutData;children=%Ordered%"
+ <XModelEntity
+
ImplementingClass="org.jboss.tools.seam.xml.components.model.SeamComponetImpl"
+
PROPERTIES="formFactory=%Default%;formLayout=org.jboss.tools.seam.xml.ui.editor.form.SeamXMLFormLayoutData;children=%Ordered%;unique=true"
XMLSUBPATH="component" name="SeamComponent">
<XChildrenEntities>
<XChildEntity name="SeamProperty"/>
@@ -1333,6 +1334,7 @@
<XModelAttribute TRIM="no" name="comment"
visibility="false" xmlname="#comment">
<Editor name="Note"/>
</XModelAttribute>
+ <XModelAttribute name="_id_" visibility="false"/>
</XModelAttributes>
<XActionItem kind="list">
<XActionItem kind="list" name="CreateActions">
@@ -1391,8 +1393,9 @@
</XActionItem>
<XDependencies/>
</XModelEntity>
- <XModelEntity ImplementingClass="%Custom%"
-
PROPERTIES="formFactory=%Default%;formLayout=org.jboss.tools.seam.xml.ui.editor.form.SeamXMLFormLayoutData;children=%Ordered%"
+ <XModelEntity
+
ImplementingClass="org.jboss.tools.seam.xml.components.model.SeamComponetImpl"
+
PROPERTIES="formFactory=%Default%;formLayout=org.jboss.tools.seam.xml.ui.editor.form.SeamXMLFormLayoutData;children=%Ordered%;unique=true"
XMLSUBPATH="component" name="SeamComponent20">
<XChildrenEntities>
<XChildEntity name="SeamProperty"/>
@@ -1474,6 +1477,7 @@
<XModelAttribute TRIM="no" name="comment"
visibility="false" xmlname="#comment">
<Editor name="Note"/>
</XModelAttribute>
+ <XModelAttribute name="_id_" visibility="false"/>
</XModelAttributes>
<XActionItem kind="list">
<XActionItem kind="list" name="CreateActions">
@@ -1516,8 +1520,9 @@
</XActionItem>
<XDependencies/>
</XModelEntity>
- <XModelEntity ImplementingClass="%Custom%"
-
PROPERTIES="formFactory=%Default%;formLayout=org.jboss.tools.seam.xml.ui.editor.form.SeamXMLFormLayoutData;children=%Ordered%"
+ <XModelEntity
+
ImplementingClass="org.jboss.tools.seam.xml.components.model.SeamComponetImpl"
+
PROPERTIES="formFactory=%Default%;formLayout=org.jboss.tools.seam.xml.ui.editor.form.SeamXMLFormLayoutData;children=%Ordered%;unique=true"
XMLSUBPATH="component" name="SeamComponent21">
<XChildrenEntities>
<XChildEntity name="SeamProperty"/>
@@ -1541,6 +1546,7 @@
<XModelAttribute TRIM="no" name="comment"
visibility="false" xmlname="#comment">
<Editor name="Note"/>
</XModelAttribute>
+ <XModelAttribute name="_id_" visibility="false"/>
</XModelAttributes>
<XActionItem kind="list">
<XActionItem kind="list" name="CreateActions">
Added:
trunk/seam/plugins/org.jboss.tools.seam.xml/src/org/jboss/tools/seam/xml/components/model/SeamComponetImpl.java
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.xml/src/org/jboss/tools/seam/xml/components/model/SeamComponetImpl.java
(rev 0)
+++
trunk/seam/plugins/org.jboss.tools.seam.xml/src/org/jboss/tools/seam/xml/components/model/SeamComponetImpl.java 2009-06-09
13:53:09 UTC (rev 15817)
@@ -0,0 +1,35 @@
+/*******************************************************************************
+ * Copyright (c) 2007 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at
http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.seam.xml.components.model;
+
+import org.jboss.tools.common.model.impl.CustomizedObjectImpl;
+import org.jboss.tools.common.model.util.XModelObjectLoaderUtil;
+
+/**
+ *
+ * @author Viacheslav Kabanovich
+ *
+ */
+public class SeamComponetImpl extends CustomizedObjectImpl {
+ private static final long serialVersionUID = 1L;
+
+ public SeamComponetImpl() {}
+
+ public String getPathPart() {
+ String id = get(XModelObjectLoaderUtil.ATTR_ID_NAME);
+ if(id == null || id.length() == 0) {
+ return super.getPathPart();
+ } else {
+ return "" + super.getPathPart() + ":" + id;
+ }
+ }
+
+}
Property changes on:
trunk/seam/plugins/org.jboss.tools.seam.xml/src/org/jboss/tools/seam/xml/components/model/SeamComponetImpl.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain