Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Technology Project and PMC » associate editor for all file extensions
associate editor for all file extensions [message #54942] Thu, 05 June 2003 13:08 Go to next message
MorPheus is currently offline MorPheus
Messages: 57
Registered: July 2009
Member
Hi,

I have created a editor by extending editorpart class. I need my editor
to be the default editor for all the files irrespective of file
extensions.How to do it

I know in the plugin.xml we have to give the file extension in "extension
tag" for which the editor will be associated with.But now I able to give
only one extension.Whether is it possible to use wild card so that my editor
will be opened irrespective of the file extensions.

MorPheus
<extension

point="org.eclipse.ui.editors">


<editor

name="RateBuilder"

icon="icons/ctool16/action1.gif"

extensions="rmo" -------------------------------------------------------->

class=" com.selectica.foundationservices.mbide.gui.CxMBMultiPageEdit or "

contributorClass="com.selectica.foundationservices.mbide.gui.CxMBEditorActio
nbarContributor"

id="CxMBMultiPageEditor">

</editor>

</extension>
Re: associate editor for all file extensions [message #59165 is a reply to message #54942] Thu, 16 October 2003 01:49 Go to previous message
John Camelon is currently offline John Camelon
Messages: 242
Registered: July 2009
Senior Member
From the 2.1.1 Plugin Developer Guide:

The relevant attributes are:
a.. extensions - an optional field containing the list of file types
understood by the editor. This is a string containing comma separate file
extensions. For instance, an editor which understands hypertext documents
may register for "htm, html".
a.. default - if true, this editor will be used as the default editor for
the type. This is only relevant in a case where more than one editor is
registered for the same type. If an editor is not the default for the type,
it can still be launched using "Open with..." submenu for the selected
resource.

So your answer is NO. For the life of me, I cannot figure out why a
component would want to override everyone else's features ...

Worth investigating perhaps would be changing the default value of File
Association preferences through a feature rather than an extension point
(not that I've tried it, mind you).

JohnC


"MorPheus" <rgurupackiam@selectica.com> wrote in message
news:bbnfct$u49$1@rogue.oti.com...
> Hi,
>
> I have created a editor by extending editorpart class. I need my
editor
> to be the default editor for all the files irrespective of file
> extensions.How to do it
>
> I know in the plugin.xml we have to give the file extension in "extension
> tag" for which the editor will be associated with.But now I able to give
> only one extension.Whether is it possible to use wild card so that my
editor
> will be opened irrespective of the file extensions.
>
> MorPheus
> <extension
>
> point="org.eclipse.ui.editors">
>
>
> <editor
>
> name="RateBuilder"
>
> icon="icons/ctool16/action1.gif"
>
>
tensions="rmo" -------------------------------------------------------->
>
> class=" com.selectica.foundationservices.mbide.gui.CxMBMultiPageEdit or "
>
>
contributorClass="com.selectica.foundationservices.mbide.gui.CxMBEditorActio
> nbarContributor"
>
> id="CxMBMultiPageEditor">
>
> </editor>
>
> </extension>
>
>
>
Re: associate editor for all file extensions [message #595748 is a reply to message #54942] Thu, 16 October 2003 01:49 Go to previous message
John Camelon is currently offline John Camelon
Messages: 242
Registered: July 2009
Senior Member
From the 2.1.1 Plugin Developer Guide:

The relevant attributes are:
a.. extensions - an optional field containing the list of file types
understood by the editor. This is a string containing comma separate file
extensions. For instance, an editor which understands hypertext documents
may register for "htm, html".
a.. default - if true, this editor will be used as the default editor for
the type. This is only relevant in a case where more than one editor is
registered for the same type. If an editor is not the default for the type,
it can still be launched using "Open with..." submenu for the selected
resource.

So your answer is NO. For the life of me, I cannot figure out why a
component would want to override everyone else's features ...

Worth investigating perhaps would be changing the default value of File
Association preferences through a feature rather than an extension point
(not that I've tried it, mind you).

JohnC


"MorPheus" <rgurupackiam@selectica.com> wrote in message
news:bbnfct$u49$1@rogue.oti.com...
> Hi,
>
> I have created a editor by extending editorpart class. I need my
editor
> to be the default editor for all the files irrespective of file
> extensions.How to do it
>
> I know in the plugin.xml we have to give the file extension in "extension
> tag" for which the editor will be associated with.But now I able to give
> only one extension.Whether is it possible to use wild card so that my
editor
> will be opened irrespective of the file extensions.
>
> MorPheus
> <extension
>
> point="org.eclipse.ui.editors">
>
>
> <editor
>
> name="RateBuilder"
>
> icon="icons/ctool16/action1.gif"
>
>
tensions="rmo" -------------------------------------------------------->
>
> class=" com.selectica.foundationservices.mbide.gui.CxMBMultiPageEdit or "
>
>
contributorClass="com.selectica.foundationservices.mbide.gui.CxMBEditorActio
> nbarContributor"
>
> id="CxMBMultiPageEditor">
>
> </editor>
>
> </extension>
>
>
>
Previous Topic:Location of filter icon?
Next Topic:question about CVS
Goto Forum:
  


Current Time: Wed Sep 03 00:00:57 GMT 2014

Powered by FUDForum. Page generated in 0.01695 seconds