Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Notification on Editor close
Notification on Editor close [message #335390] Mon, 06 April 2009 09:09 Go to next message
Thomas Kratz is currently offline Thomas KratzFriend
Messages: 165
Registered: July 2009
Senior Member
Is there a way to get notified when an editor is closed by the user ? I
want to track dirty states in a multi user environment to avoid
colliding edits of the same object. So if user A closes his maybe dirty
editor I could notify user B that he can work on the object now.

Regards Thomas
Re: Notification on Editor close [message #335391 is a reply to message #335390] Mon, 06 April 2009 09:26 Go to previous message
Eclipse UserFriend
Originally posted by: jayduke.smith.gmail.com

Hi Thomas,

You can do something like this.
PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActi vePage().addPartListener(listener)
just add a part listener to get all the editors with editor close/dirty
states.

Jay

"Thomas" <thomas.kratz@eiswind.de> wrote in message
news:grcgsd$cff$1@build.eclipse.org...
> Is there a way to get notified when an editor is closed by the user ? I
> want to track dirty states in a multi user environment to avoid colliding
> edits of the same object. So if user A closes his maybe dirty editor I
> could notify user B that he can work on the object now.
>
> Regards Thomas
Previous Topic:Heap memory problem [after changes based on documentation]
Next Topic:ITextContentDescriber: BYTE_ORDER_MARK overrides CHARSET
Goto Forum:
  


Current Time: Thu Nov 21 15:24:30 GMT 2024

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

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

Back to the top