Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Graphiti » Graphiti opens multiple tabs for the same file
Graphiti opens multiple tabs for the same file [message #1043346] Wed, 17 April 2013 15:31 Go to next message
Rui Domingues is currently offline Rui DominguesFriend
Messages: 194
Registered: October 2010
Senior Member

I implemented an editor. but when I open the same file multiple times, it opens an editor tab for each open.

I tried to implement a FileEditorInput for my editor and implemented equals method, but the method is never invoked.

How can I solve this

Thanks in advance.
Re: Graphiti opens multiple tabs for the same file [message #1046870 is a reply to message #1043346] Mon, 22 April 2013 13:31 Go to previous message
Michael Wenz is currently offline Michael WenzFriend
Messages: 1888
Registered: July 2009
Location: Walldorf, Germany
Senior Member

Graphiti uses a matchingStrategy to check for an altready opened editor for
a file (it is set in plugin.xml at the editor definition). The default is
org.eclipse.graphiti.ui.editor.DiagramEditorMatchingStrategy, maybe you need
to change it.

Previous Topic:Diagram disappears after saving when one tries to edit
Next Topic:hiding context menu entries
Goto Forum:

Current Time: Wed Apr 25 10:23:57 GMT 2018

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

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