Author: scabanovich
Date: 2007-10-12 08:18:04 -0400 (Fri, 12 Oct 2007)
New Revision: 4151
Modified:
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/objecteditor/ExtendedProperties.java
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/objecteditor/ExtendedPropertiesEditor.java
Log:
JBIDE-525
Modified:
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/objecteditor/ExtendedProperties.java
===================================================================
---
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/objecteditor/ExtendedProperties.java 2007-10-12
12:03:36 UTC (rev 4150)
+++
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/objecteditor/ExtendedProperties.java 2007-10-12
12:18:04 UTC (rev 4151)
@@ -10,11 +10,14 @@
******************************************************************************/
package org.jboss.tools.common.model.ui.objecteditor;
+import org.w3c.dom.Node;
+
public interface ExtendedProperties {
public String[] getAttributes();
public String getAttributeValue(String name);
public void setAttributeValue(String name, String value);
public boolean isEditableAttribute(String name);
public String getNodeName();
+ public Node getNode();
public ExtendedCellEditorProvider createCellEditorProvider();
}
Modified:
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/objecteditor/ExtendedPropertiesEditor.java
===================================================================
---
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/objecteditor/ExtendedPropertiesEditor.java 2007-10-12
12:03:36 UTC (rev 4150)
+++
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/objecteditor/ExtendedPropertiesEditor.java 2007-10-12
12:18:04 UTC (rev 4151)
@@ -43,6 +43,9 @@
if(attributes != null) {
context.setProperty("nodeName", "" + attributes.getNodeName());
cellEditorProvider = attributes.createCellEditorProvider();
+ if(attributes.getNode() != null) {
+ context.put("node", attributes.getNode());
+ }
}
if(xtable.getTable() == null || xtable.getTable().isDisposed()) return;
xtable.getTable().setSelection(-1);
Show replies by date