Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Java code / eclipse API's to close all open editors in eclipse(Java code / eclipse API's to close all open editors in eclipse)
Java code / eclipse API's to close all open editors in eclipse [message #703237] Wed, 27 July 2011 10:43 Go to next message
newbie  is currently offline newbie Friend
Messages: 5
Registered: July 2011
Junior Member
Hi,

I have created an eclipse plugin.. From the eclipse workbench, i want to close all the open editors on some change event in a combo box located on the tools panel.. I want to perform an exactly similar action which is achieved by right click an editor and selec "Close All" action. Can you please help me with the java code or eclipse api's to achieve that?

Thanks
Re: Java code / eclipse API's to close all open editors in eclipse [message #703373 is a reply to message #703237] Wed, 27 July 2011 13:31 Go to previous message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
On 27.07.2011 12:43, newbie wrote:
> Hi,
> I have created an eclipse plugin.. From the eclipse workbench, i want
> to close all the open editors on some change event in a combo box
> located on the tools panel.. I want to perform an exactly similar
> action which is achieved by right click an editor and selec "Close
> All" action. Can you please help me with the java code or eclipse
> api's to achieve that?
org.eclipse.ui.IWorkbenchPage.closeAllEditors(boolean)

Dani
>
> Thanks
Previous Topic:Eclipse Start up
Next Topic:how to use struts with eclipse
Goto Forum:
  


Current Time: Thu Apr 25 07:12:53 GMT 2024

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

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

Back to the top