Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » How can I call save method in eclipse plugin development programticaly
How can I call save method in eclipse plugin development programticaly [message #668144] Wed, 04 May 2011 06:03 Go to next message
chavi   is currently offline chavi Friend
Messages: 67
Registered: April 2011
Member
I am developing a plug-in and on click a button, I like to call the save method of eclipse or call the save button on eclipse toolbar.

What is the way to do it.
Re: How can I call save method in eclipse plugin development programticaly [message #668219 is a reply to message #668144] Wed, 04 May 2011 14:56 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

On 05/04/2011 02:03 AM, chavi wrote:
> I am developing a plug-in and on click a button, I like to call the save
> method of eclipse or call the save button on eclipse toolbar.

You can either get the IHandlerService and execute the save command,
org.eclipse.ui.IWorkbenchCommandConstants.FILE_SAVE, or get the
IWorkbenchPage and call one of the save*(*) methods.

PW

--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Platform_Expression_Framework
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/helios/index.jsp?topic=/org.eclipse. platform.doc.isv/guide/workbench.htm


Previous Topic:Simple Plugin - Know the path of a file
Next Topic:Contextual Menu
Goto Forum:
  


Current Time: Wed Aug 12 16:34:53 GMT 2020

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

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

Back to the top