Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Compare » Adding new Node in the StructureViewer(How to add a New Node in the Structure Viewer)
Adding new Node in the StructureViewer [message #1766580] Fri, 23 June 2017 09:28 Go to next message
Roopesh  Asthana is currently offline Roopesh AsthanaFriend
Messages: 2
Registered: June 2017
Junior Member
Hello All,

I have a question related to StructureViewer
I am trying to compare 2 EMF models which is working fine but I need to customize the display of Difference in StructureViewer.

Is it possible to add a New Node in the Structure Viewer display and club certain Diff Nodes under this new Node?

As per documentation I think I IDifferenceGroupExtender should help but I am not able to find any suitable example or reference.

Is there any way to achieve this? If yes then can you please point to some reference examples if possible .


Thanks, in Advance
Roopesh
Re: Adding new Node in the StructureViewer [message #1767008 is a reply to message #1766580] Thu, 29 June 2017 13:23 Go to previous messageGo to next message
Laurent Goubet is currently offline Laurent GoubetFriend
Messages: 1858
Registered: July 2009
Senior Member
Hi Roopesh,

It is possible to do, but if what you're trying to achieve is grouping differences together, do you really want to do it only on the UI side (i.e. with no impact to the merging at all)? You might want to look at how to refine the differences to group them semantically instead. You could for example add a "refining" difference that would tie together a group of semantically dependant differences (see the "refinedBy" and "refines" references in the documentation).

If you really only want a UI grouping, you'll need to look at how we've implemented them in the UI. You'll want to look at the javadoc of org.eclipse.emf.compare.rcp.ui.structuremergeviewer.filters.AbstractDifferenceFilter and its inheriting classes.

Laurent Goubet
Obeo
Re: Adding new Node in the StructureViewer [message #1767175 is a reply to message #1767008] Mon, 03 July 2017 08:27 Go to previous message
Roopesh  Asthana is currently offline Roopesh AsthanaFriend
Messages: 2
Registered: June 2017
Junior Member
Hello Obeo,

Thanks for your reply.
Yes, I am only looking for UI customization and not Merging.

I want to Group Differences based on (specific) Object Types by creating a new Root Node and then put all relevant differences as separate Nodes under this Root node.

I am looking into the AbstractDifferenceFilter and its Inherrited classes as per your recommendation.

thanks.
Roopesh


Previous Topic:Closing EMF compare dialog after conflict resolution gets stuck
Next Topic:EMF Compare dialog in standalone RCP application e4
Goto Forum:
  


Current Time: Sat Nov 17 01:21:18 GMT 2018

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

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

Back to the top