|
|
|
|
Re: How to close all opened editor while shuting down the eclipse [message #74123 is a reply to message #72639] |
Fri, 13 June 2003 15:41  |
Eclipse User |
|
|
|
Originally posted by: knut_radloff.oti.com
Workbench.busyClose does this:
Platform.run(new SafeRunnable() {
public void run() {
IWorkbenchWindow windows[] = getWorkbenchWindows();
for (int i = 0; i < windows.length; i++) {
IWorkbenchPage pages[] = windows[i].getPages();
for (int j = 0; j < pages.length; j++) {
isClosing = isClosing && pages[j].closeAllEditors(false);
}
}
}
});
if (!isClosing && !force)
return false;
Like Richard wrote, be careful about ignoring the user preferences.
Knut
"MorPheus" <rgurupackiam@selectica.com> wrote in message news:bcaoah$q1n$1@rogue.oti.com...
> Hi,
>
> I want to close all opened editore when I shutdown my eclipse.
> How to do that?
>
> MorPheus
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.24958 seconds