Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Remove a defined editor from 'Open With' menu option
Remove a defined editor from 'Open With' menu option [message #313080] Thu, 01 March 2007 01:30 Go to next message
Eclipse UserFriend
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 #313082 is a reply to message #313080] Thu, 01 March 2007 01:49 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jacek.pospychala.pl.ibm.com

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
>
>
Re: Remove a defined editor from 'Open With' menu option [message #313086 is a reply to message #313082] Thu, 01 March 2007 02:50 Go to previous message
Eclipse UserFriend
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
Previous Topic:Opening existing preference page from context menu
Next Topic:JUnit with PDE
Goto Forum:
  


Current Time: Sun Apr 27 02:03:58 EDT 2025

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

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

Back to the top