Remove a defined editor from 'Open With' menu option [message #313080] |
Thu, 01 March 2007 01:30  |
Eclipse User |
|
|
|
Originally posted by: prashanto.chatterjee.softwareag.com
Hi All,
I have this scenario wherein I have created a plugin for an XML editor. So,
I have defined an extension in my plugin.xml file.
This means that when I right-click on a '.xml' file in my Navigator I get
the defined editor in the 'Open With' menu.
I have another plugin wherein I allow the user to choose XML files from the
workspace or the file-system. The user can view the contents of the file by
pressing an 'Open' button which launches my XML editor.
Now, what I need to do is to allow the user the ability to view the contents
of the file in the XML editor. However, I do not want to have the editor
appearing in the 'Open With' menu.
Is this possible? If yes then any help would be greatly appreciated.
Best Regards,
Prashanto
|
|
|
|
Re: Remove a defined editor from 'Open With' menu option [message #313086 is a reply to message #313082] |
Thu, 01 March 2007 02:50  |
Eclipse User |
|
|
|
Originally posted by: prashanto.chatterjee.softwareag.com
That worked. Thanks a lot for your help
"Jacek Pospychala" <jacek.pospychala@pl.ibm.com> wrote in message
news:es5t1a$etq$1@utils.eclipse.org...
> Prashanto,
>
> if you set file extension field to empty in that editor extension point
> declaration it will not show up in the "Open with".
> And you can still call it programatically from your code.
>
>
> Prashanto Chatterjee napisa?(a):
>> Hi All,
>> I have this scenario wherein I have created a plugin for an XML editor.
>> So, I have defined an extension in my plugin.xml file.
>> This means that when I right-click on a '.xml' file in my Navigator I get
>> the defined editor in the 'Open With' menu.
>>
>> I have another plugin wherein I allow the user to choose XML files from
>> the workspace or the file-system. The user can view the contents of the
>> file by pressing an 'Open' button which launches my XML editor.
>>
>> Now, what I need to do is to allow the user the ability to view the
>> contents of the file in the XML editor. However, I do not want to have
>> the editor appearing in the 'Open With' menu.
>> Is this possible? If yes then any help would be greatly appreciated.
>>
>> Best Regards,
>> Prashanto
|
|
|
Powered by
FUDForum. Page generated in 0.03078 seconds