associate editor for all file extensions [message #54942] |
Thu, 05 June 2003 09:08  |
Eclipse User |
|
|
|
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] |
Wed, 15 October 2003 21:49  |
Eclipse User |
|
|
|
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] |
Wed, 15 October 2003 21:49  |
Eclipse User |
|
|
|
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>
>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.07708 seconds