|[EMF Compare] Hide Nodes [message #904168]
||Mon, 27 August 2012 23:33
| C. Thompson
Registered: May 2012
Location: Vancouver, BC
Is there a way in the class GMFContentMergeViewerTab, hide node X? |
The method: GMFContentMergeViewerTab.displayDiagram(Diagram diag) does most of the work to add the diagram to the tab view then setReflectiveInput(Object input) refreshes the view and allows the diagram to be displayed.
How can I change GMFContentMergeViewerTab.displayDiagram(Diagram diag) and make it so only 3 nodes are shown rather than the whole diagram?
I know there is a method NodeImpl.setVisible(boolean newVisible). But I get an error "Cannot modify resource set without a write transaction" which is related to TransactionalEditingDomain. Where in the code could I add my edits to visibility of the nodes that already has one of these TEDs setup already?
Is this the correct path or am I completely off? Or should I explain more what I want to do?
Powered by FUDForum
. Page generated in 0.01433 seconds