Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [EMF Compare] Hide Nodes(How do I add functionality to EMF compare to hide some nodes? )
[EMF Compare] Hide Nodes [message #904168] Mon, 27 August 2012 19:33
C. Thompson is currently offline C. Thompson
Messages: 23
Registered: May 2012
Location: Vancouver, BC
Junior Member
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?
Previous Topic:Serializing EMF Objects
Next Topic:Which EMF Compare for EMF 2.4
Goto Forum:
  


Current Time: Fri Aug 22 00:02:29 EDT 2014

Powered by FUDForum. Page generated in 0.05744 seconds