Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Enable "Save As" command
Enable "Save As" command [message #515203] Thu, 18 February 2010 02:12 Go to next message
Mustufa Kasidwala is currently offline Mustufa Kasidwala
Messages: 60
Registered: July 2009
Member
Hi,

I have added a 'SAVE AS" command in my RCP application using
'org.eclipse.ui.file.saveAs'. I can see this as a menu item in my app, but
its always disabled. I have implemented the 'isSaveAsAllowed' method to
return true in my editor, but still the 'save as' command is not enabled.

Any ideas on what is going wrong? Am I missing something here?

--
Thanks and Regards

Mustufa Kasidwala
Re: Enable "Save As" command [message #515213 is a reply to message #515203] Thu, 18 February 2010 03:25 Go to previous message
Prakash G.R. is currently offline Prakash G.R.
Messages: 621
Registered: July 2009
Senior Member
On 18/02/10 12:42 PM, Mustufa Kasidwala wrote:
> Hi,
>
> I have added a 'SAVE AS" command in my RCP application using
> 'org.eclipse.ui.file.saveAs'. I can see this as a menu item in my app, but
> its always disabled. I have implemented the 'isSaveAsAllowed' method to
> return true in my editor, but still the 'save as' command is not enabled.
>
> Any ideas on what is going wrong? Am I missing something here?
>

Did you register the save as action in your ActionBarAdvisor?

- Prakash
Platform UI Team, IBM

www.eclipse-tips.com
Re: Enable "Save As" command [message #515215 is a reply to message #515213] Wed, 17 February 2010 22:44 Go to previous message
Mustufa Kasidwala is currently offline Mustufa Kasidwala
Messages: 60
Registered: July 2009
Member
Ah...

No I didn't...I just added it and tried, it worked properly now. Thanks.

But why do we need to do this? when I have already added the command in
plugin.xml, why is it required to register it as an action?

--
Thanks and Regards

Mustufa Kasidwala


"Prakash G.R." <grprakash@gmail.com> wrote in message
news:hlitil$hkp$1@build.eclipse.org...
> On 18/02/10 12:42 PM, Mustufa Kasidwala wrote:
>> Hi,
>>
>> I have added a 'SAVE AS" command in my RCP application using
>> 'org.eclipse.ui.file.saveAs'. I can see this as a menu item in my app,
>> but
>> its always disabled. I have implemented the 'isSaveAsAllowed' method to
>> return true in my editor, but still the 'save as' command is not enabled.
>>
>> Any ideas on what is going wrong? Am I missing something here?
>>
>
> Did you register the save as action in your ActionBarAdvisor?
>
> - Prakash
> Platform UI Team, IBM
>
> www.eclipse-tips.com
Re: Enable "Save As" command [message #515224 is a reply to message #515215] Wed, 17 February 2010 23:10 Go to previous message
Prakash G.R. is currently offline Prakash G.R.
Messages: 621
Registered: July 2009
Senior Member
On 18/02/10 2:07 PM, Mustufa Kasidwala wrote:
> Ah...
>
> No I didn't...I just added it and tried, it worked properly now. Thanks.
>
> But why do we need to do this? when I have already added the command in
> plugin.xml, why is it required to register it as an action?


https://bugs.eclipse.org/bugs/show_bug.cgi?id=270007

- Prakash
Platform UI Team, IBM

www.eclipse-tips.com
Previous Topic:Build Eclipse RCP Application using Apache Ant scripts?
Next Topic:How to register a context menu for a MultipageEditorPart?
Goto Forum:
  


Current Time: Tue Jul 22 17:45:49 EDT 2014

Powered by FUDForum. Page generated in 0.01589 seconds