Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Compare » Add node in Tree View of StructureMergeViewer and CompareMergeViewer(Add node in Tree View of StructureMergeViewer and CompareMergeViewer)
Add node in Tree View of StructureMergeViewer and CompareMergeViewer [message #1738330] Tue, 19 July 2016 06:55 Go to next message
Gaurav Tripathi is currently offline Gaurav TripathiFriend
Messages: 43
Registered: September 2015
Member
Hello Everyone,
We need to add a custom item in both StructureMergeViewer and CompareMergeViewer. How can we achieve it ?
Our model only contains value and no definition but while loading into EMF Compare Dialog tool we need to add definitions before values.

So where are this node getting added to tree view in CompareMergeViewer and StructureMergeViewer?

Check the attached image.index.php/fa/26492/0/

How to add that definition we know, but in which class and how is the question ?

Waiting for response asap.

Thanks in advance.

[Updated on: Tue, 19 July 2016 11:55]

Report message to a moderator

Re: Add node in Tree View of StructureMergeViewer and CompareMergeViewer [message #1738406 is a reply to message #1738330] Tue, 19 July 2016 13:26 Go to previous messageGo to next message
Mathieu Cartaud is currently offline Mathieu CartaudFriend
Messages: 4
Registered: April 2016
Junior Member
Hello Gaurav,

You can customize the trees displayed in the StructureMergeViewer with the extension point "org.eclipse.emf.compare.rcp.ui.differenceGroupExtender" (see the related section in the developer guide).
We are currently working on a new implementation for the group providers in the StructureMergeViewer, which will allow user to customize every node in the tree through the group extender extension point.
In the meantime, if the group extender is not powerful enough for your needs, you can implement your own groupProvider

For the ContentMergeViewer, I don't think there is an easy way of doing this and we have no plans to work on such a feature for the moment, but feel free to open an enhancement request against EMF Compare as it could be an idea for the future. We're also open to contributions if you want to implement this.

Regards,
Re: Add node in Tree View of StructureMergeViewer and CompareMergeViewer [message #1738481 is a reply to message #1738406] Wed, 20 July 2016 09:29 Go to previous messageGo to next message
Gaurav Tripathi is currently offline Gaurav TripathiFriend
Messages: 43
Registered: September 2015
Member
Thanks, Mathieu Cartaud for your valuable response.

Actually, we need to implement this functionality for our use case.
Isn't there any way to add this node in ContentMergeViewer as right now it's of very much in need.
We also tried to add that with extending TreeContentMergeViewer but then every time we were expanding or collapsing new tree was generating.

Re: Add node in Tree View of StructureMergeViewer and CompareMergeViewer [message #1738490 is a reply to message #1738481] Wed, 20 July 2016 10:08 Go to previous message
Laurent Goubet is currently offline Laurent GoubetFriend
Messages: 1902
Registered: July 2009
Senior Member
No, our content merge viewer doesn't have extension capabilities that would allow that. You will have to implement your own content merge viewer and contribute it to eclipse compare through its extension points (org.eclipse.compare.contentMergeViewers). You will then be able to switch to it using the drop-down menu in-between the two comparison panes as show below. You might be able to reuse our implementation as base for that.

http://i.imgur.com/kYfvE4t.png

Laurent Goubet
Obeo
Previous Topic:Customize EMF Compare Toolbar
Next Topic:Add One more panel between ContentMergeViewer and StructureMergeViewer for 3-way Compare
Goto Forum:
  


Current Time: Fri Mar 29 13:42:22 GMT 2024

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

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

Back to the top