|Give selected Node to Property View [message #716480]
||Wed, 17 August 2011 10:19
| Mathew Missing name
Registered: August 2011
I'm working with plugin, which goal is to help developers to write specific xml files with given semantics. To simplify the problem - I have extended standard XML editor (XMLMultiPageEditorPart) and introduced new view where xml is parsed into simplier tree. Every item on tree has reference to some node in xml file. |
What I would like to achieve:
After clicking item (let's call it SomeWidget) I would like to show on properties view corresponding node. I found that setting getSite().setSelectionProvider(treeViewer) and making SomeWidget implementing IPropertySource could help me. I overwrote getPropertyDescriptors() method and now every attribute of node is present on properties view. But... there isn't possibility to edit it.
Mysterious function getEditableValue sounds fine to solution, but I have no idea how to use it.
Another way (I think prefered) is to "reopen" current file with marker on line where current node is. No idea how to get it.
Powered by FUDForum
. Page generated in 0.02106 seconds