|
Re: How close rcp app without saving dirty editors. [message #456128 is a reply to message #456116] |
Fri, 13 October 2006 09:57 |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.03543 seconds