Showing the property while programmatically selecting a node [message #644021] |
Thu, 09 December 2010 01:26  |
Eclipse User |
|
|
|
Hi All,
I have added a new view to my RCP based GMF editor.I have provided a tree view with a filter attached to it.So when I select a node from tree,the corresponding node is getting selected.But the property of that node is not visible in the property view.
For selecting the node i have used,
shapeNodeEditPart.getViewer().setSelection(
new StructuredSelection(shapeNodeEditPart));
Please help me in achieving it.
|
|
|
|
|
Re: Showing the property while programmatically selecting a node [message #644665 is a reply to message #644257] |
Mon, 13 December 2010 12:06  |
Eclipse User |
|
|
|
Hello,
I don't see how it may be related, because no matter what is your tree implementation, the code above relies on the GMF editor sending the selection change notification which should be handled by the property sheet.
Are you sure that you really tried the code above, because your original sample IS slightly different and should NOT work.
Regards,
Michael
[Updated on: Mon, 13 December 2010 12:08] by Moderator
|
|
|
Powered by
FUDForum. Page generated in 0.03823 seconds