Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Adding new "Default" editor choice
Adding new "Default" editor choice [message #109667] Mon, 11 August 2003 11:18 Go to next message
Eclipse UserFriend
I wanted to know how to add an editor to the Navigator's list of editor
choices for a resource with a specific extension.

So, for example, for ".xml" resources (files), in addition "Text Editor" and
"Default Editor", I would like to add "Mike's editor".
I do not want my editor to ever (or not necessarily) be the default choice
for the resource.

Thanks -
Michael Blout
Re: Adding new "Default" editor choice [message #109685 is a reply to message #109667] Mon, 11 August 2003 11:31 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richkulp.NOSPAM.us.ibm.com

Look up in the help under Platform Plug-in Developers
Guide->Reference->Extension Points
Reference->workbench->org.eclipse.ui.editors

Rich
Re: Adding new "Default" editor choice [message #110069 is a reply to message #109685] Mon, 11 August 2003 17:44 Go to previous messageGo to next message
Eclipse UserFriend
Thank you.
I forgot to mention.....

The behavior I see is that, if I create an editor which defines
extensions="xml"
default="false"
and no other editor is registered for that extension, then my editor acts as
if it is the 'default'.

What I would like is to see my editor listed under the divider in the menu
for choosing the editor, much like Text, Default, and System Editor do.
And ideally, I would never be the choice if the user double-clicked; the
user would always have to explicitly pick me from the menu.

I hope I'm not just missing something obvious in the help!

Thanks again -
Michael Blout



"Richard L. Kulp" <richkulp@NOSPAM.us.ibm.com> wrote in message
news:bh8cmp$q5q$1@eclipse.org...
> Look up in the help under Platform Plug-in Developers
> Guide->Reference->Extension Points
> Reference->workbench->org.eclipse.ui.editors
>
> Rich
>
Re: Adding new "Default" editor choice [message #110095 is a reply to message #110069] Mon, 11 August 2003 17:53 Go to previous message
Eclipse UserFriend
Originally posted by: richkulp.NOSPAM.us.ibm.com

That isn't possible with the api. As long as an editor is supplied in
the plugin xml for an extension, there will be a default editor. If you
happen to be the only one, you will be the default.

Below the line is hard-code in Eclipse.

Rich
Previous Topic:Java build path - "require plug-in entries"
Next Topic:event when the eclipse window is activated?
Goto Forum:
  


Current Time: Thu Jul 24 14:09:48 EDT 2025

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

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

Back to the top