How to enable the Save-Action [message #461285] |
Mon, 08 January 2007 16:32  |
Eclipse User |
|
|
|
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 #461361 is a reply to message #461336] |
Tue, 09 January 2007 15:11  |
Eclipse User |
|
|
|
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!
|
|
|
Powered by
FUDForum. Page generated in 0.03628 seconds