[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.technology] Re: associate editor for all file extensions
|
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@xxxxxxxxxxxxx> wrote in message
news:bbnfct$u49$1@xxxxxxxxxxxxxxxx
> 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.CxMBMultiPageEditor"
>
>
contributorClass="com.selectica.foundationservices.mbide.gui.CxMBEditorActio
> nbarContributor"
>
> id="CxMBMultiPageEditor">
>
> </editor>
>
> </extension>
>
>
>