Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » How to enable the Save-Action
How to enable the Save-Action [message #461285] Mon, 08 January 2007 16:32 Go to next message
Eclipse UserFriend
Originally posted by: florianwendland.freenet.de

Hello all,
i've a question concerning the GlobalAction ActionFactory.SAVE.
In a view i've defined a SourceViewer and 2 actions, whcih is
distributed to the workbench with:

getViewSite().getActionBars().setGlobalActionHandler(ActionF actory.SAVE.getId(),
saveToTempAction);
getViewSite().getActionBars().setGlobalActionHandler(ActionF actory.PRINT.getId(),
printAction);

Both actions are registered in the context menu too.But, only the
Print-Action is enabled add the workbench's toolbar. Save-Action is
allways disabled, but enabled and processable in the view's context
menu. I've tried several things, but i was not able to enable the
Save-Action globally.

By the way, there is no Editor in my app.

Thx for help

Florian Wendland
Re: How to enable the Save-Action [message #461336 is a reply to message #461285] Tue, 09 January 2007 09:48 Go to previous messageGo to next message
Eclipse UserFriend
AFAIK your view part would need to implement ISaveablePart, so that it
can respond that it is dirty.

Later,
PW
Re: How to enable the Save-Action [message #461361 is a reply to message #461336] Tue, 09 January 2007 15:11 Go to previous message
Eclipse UserFriend
Originally posted by: florianwendland.freenet.de

Paul Webster schrieb:
> AFAIK your view part would need to implement ISaveablePart, so that it
> can respond that it is dirty.
>
> Later,
> PW
Thanks, that works perfect!
Previous Topic:Context menus on views
Next Topic:Loading data with background job
Goto Forum:
  


Current Time: Sat Mar 15 11:14:46 EDT 2025

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

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

Back to the top