Skip to main content


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 23:33
C. Thompson is currently offline C. ThompsonFriend
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: Tue Apr 23 09:21:23 GMT 2024

Powered by FUDForum. Page generated in 0.03353 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top