Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Close al diagrams when exit
Close al diagrams when exit [message #556955] Fri, 03 September 2010 10:45 Go to next message
Pablo Nieto is currently offline Pablo NietoFriend
Messages: 31
Registered: August 2010
Location: Cuenca, Spain
Member
Hello i´m making a GMF editor, and I would like to know how to make it to close all the diagrams that are been editing, before closing the main editor.

This is because, I want that the next time I will open the editor, no diagram appears. As if it was the first time I open the editor.

Anyone knows how to do this?

Thanks in advance, Pablo
Re: Close al diagrams when exit [message #556967 is a reply to message #556955] Fri, 03 September 2010 12:26 Go to previous message
Robert Wloch is currently offline Robert WlochFriend
Messages: 109
Registered: July 2009
Senior Member
Hi Pablo,

this is very similar to what you did already with saving! Just fill your Activator's stop() method with the the required code.

You can access all editors via PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActi vePage().getEditorReferences().

Rob
Previous Topic:Save a diagram when select other
Next Topic:Strange Print Dialog Behaviour
Goto Forum:
  


Current Time: Sat Apr 27 01:50:14 GMT 2024

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

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

Back to the top