Enable "Save As" command [message #515203] |
Thu, 18 February 2010 02:12  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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
|
|
|
|
Powered by
FUDForum. Page generated in 0.22163 seconds