Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » How close rcp app without saving dirty editors.
How close rcp app without saving dirty editors. [message #456116] Fri, 13 October 2006 05:53 Go to next message
Bartosz Serwatko is currently offline Bartosz SerwatkoFriend
Messages: 1
Registered: July 2009
Junior Member
Hi everyone.

I post that question on eclipse.newcomer but noone can help me, so i'm
asking here:

I'm detecting idle time. When idle time is greater than 15min, i'd like to
close my app, and that is the question:
how to close app without "Save resources" dialog when editors are dirty?
All editors should close without saving.

Regards
bartek

PS. I guess that System.exit() isn't good idea ;)
Re: How close rcp app without saving dirty editors. [message #456128 is a reply to message #456116] Fri, 13 October 2006 09:57 Go to previous message
Eclipse UserFriend
Originally posted by: tom.seidel.spiritlink.de

Bartek S. wrote:
> Hi everyone.
>
> I post that question on eclipse.newcomer but noone can help me, so i'm
> asking here:
>
> I'm detecting idle time. When idle time is greater than 15min, i'd like to
> close my app, and that is the question:
> how to close app without "Save resources" dialog when editors are dirty?
> All editors should close without saving.
>
> Regards
> bartek
>
> PS. I guess that System.exit() isn't good idea ;)
>
>
>
Hi,

Iterate through the editor-references with
IWorkbenchBenchPage#getEditorReferences() to get a reference to an
editor and close the editor
with IWorkbenchPage#closeEditor(myEditor,false)


--
Cheerz,
Tom
Previous Topic:Universal Welcome
Next Topic:problem wrapping log4j
Goto Forum:
  


Current Time: Fri Apr 26 14:42:24 GMT 2024

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

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

Back to the top