Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » How to close all opened editor while shuting down the eclipse
How to close all opened editor while shuting down the eclipse [message #72639] Thu, 12 June 2003 16:37 Go to next message
Eclipse UserFriend
Hi,

I want to close all opened editore when I shutdown my eclipse.
How to do that?

MorPheus
Re: How to close all opened editor while shuting down the eclipse [message #72653 is a reply to message #72639] Thu, 12 June 2003 16:42 Go to previous messageGo to next message
Eclipse UserFriend
sorry, By the way I want to do that programmatically
MorPheus
"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
>
>
Re: How to close all opened editor while shuting down the eclipse [message #72667 is a reply to message #72653] Thu, 12 June 2003 16:42 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richkulp.NOSPAM.us.ibm.com

There's no need to do it programatically. There is a workspace
preference item to do it for you. It should be the users choice to do this.

Rich
Re: How to close all opened editor while shuting down the eclipse [message #72694 is a reply to message #72667] Thu, 12 June 2003 16:50 Go to previous messageGo to next message
Eclipse UserFriend
Hi,
Thanks for the help.But I don't want to make that to happen by setting
the preference I want to close all the opened editor programmatically
irrespective of the preferences.

MorPheus.

"Richard L. Kulp" <richkulp@NOSPAM.us.ibm.com> wrote in message
news:bcaolq$qa1$1@rogue.oti.com...
> There's no need to do it programatically. There is a workspace
> preference item to do it for you. It should be the users choice to do
this.
>
> Rich
>
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 Go to previous message
Eclipse UserFriend
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
>
>
Previous Topic:FileSelectionDialog open up with no entries
Next Topic:setExpandedElements - Not Working
Goto Forum:
  


Current Time: Sun Jun 01 21:10:33 EDT 2025

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

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

Back to the top