Skip to main content


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
HI.

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.
rui
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: 1931
Registered: July 2009
Location: Walldorf, Germany
Senior Member
Rui,

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.

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


Current Time: Sat Apr 20 03:22:50 GMT 2024

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

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

Back to the top