Author: scabanovich
Date: 2009-06-11 08:06:08 -0400 (Thu, 11 Jun 2009)
New Revision: 15874
Modified:
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/objecteditor/XChildrenEditor.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-4467
Modified:
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/objecteditor/XChildrenEditor.java
===================================================================
---
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/objecteditor/XChildrenEditor.java 2009-06-11
11:07:58 UTC (rev 15873)
+++
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/objecteditor/XChildrenEditor.java 2009-06-11
12:06:08 UTC (rev 15874)
@@ -234,8 +234,10 @@
XModelObject o1 = helper.getModelObject(r1), o2 = helper.getModelObject(r2);
callAction(o1, "CopyActions.Copy"); //$NON-NLS-1$
callAction(o2, "MoveActions.Move"); //$NON-NLS-1$
- if(helper.getModelObject(r2) == o1)
- xtable.getTable().setSelection(r2);
+ if(helper.getModelObject(r2) == o1) {
+ xtable.getViewer().setSelection(new StructuredSelection(o1) , true);
+ ((SP)getSelectionProvider()).fireSelectionChanged();
+ }
}
protected Set getKeys() {