Self-made editor not detected [message #217198] |
Thu, 21 June 2007 15:11 |
Eclipse User |
|
|
|
Originally posted by: psentosa.yahoo.com
Hi,
I create an editor-plug in for a certain file, let's say a file with
extension .abc.
When I run the 2nd instance, somehow the editor isn't detected, so that the
..abc file is opened with the default text editor. In the preferences(File
association), the name of the editor I input in plugin.xml isn't detected.
I have the following entry on plugin.xml:
<extension
point="org.eclipse.ui.editors">
<editor
name="AbcEditor"
extensions="abc"
class="abc.ui.editor.AbcEditor"
contributorClass="abc.ui.editor.AbcEditorActionContributor"
id="abc.ui.editor.AbcEditor">
</editor>
</extension>
Can someone please give some ideas, what the problems could be? (Maybe there
are certain methods in the editor class or action contributor class that
must be implemented??
Thanks in advance!
|
|
|
Re: Self-made editor not detected [message #217215 is a reply to message #217198] |
Thu, 21 June 2007 15:30 |
Eclipse User |
|
|
|
Originally posted by: psentosa.yahoo.com
Hi again,
please correct me if I'm wrong...but it seems that the problem was the
missing icon. I just can't remember this from the last time I had a similar
problem :-)
regards
ps
"Paul Sentosa" <psentosa@yahoo.com> schrieb im Newsbeitrag
news:f5e4fm$pdg$1@build.eclipse.org...
> Hi,
>
> I create an editor-plug in for a certain file, let's say a file with
> extension .abc.
> When I run the 2nd instance, somehow the editor isn't detected, so that
the
> .abc file is opened with the default text editor. In the preferences(File
> association), the name of the editor I input in plugin.xml isn't detected.
> I have the following entry on plugin.xml:
>
> <extension
> point="org.eclipse.ui.editors">
>
> <editor
>
> name="AbcEditor"
>
> extensions="abc"
>
> class="abc.ui.editor.AbcEditor"
>
> contributorClass="abc.ui.editor.AbcEditorActionContributor"
>
> id="abc.ui.editor.AbcEditor">
>
> </editor>
>
> </extension>
>
> Can someone please give some ideas, what the problems could be? (Maybe
there
> are certain methods in the editor class or action contributor class that
> must be implemented??
>
> Thanks in advance!
>
>
|
|
|
Re: Self-made editor not detected [message #217271 is a reply to message #217215] |
Thu, 21 June 2007 19:46 |
Eclipse User |
|
|
|
Originally posted by: csae7511.uibk.ac.at
I once had the same problem ... and also the missing icon was the reason
. Somehow strange, since the icon is not mandatory in the extension point.
Would be interesting to know why the missing icon causes such troubles.
regards,
Stefan
Paul Sentosa schrieb:
> Hi again,
>
> please correct me if I'm wrong...but it seems that the problem was the
> missing icon. I just can't remember this from the last time I had a similar
> problem :-)
>
> regards
> ps
>
> "Paul Sentosa" <psentosa@yahoo.com> schrieb im Newsbeitrag
> news:f5e4fm$pdg$1@build.eclipse.org...
>> Hi,
>>
>> I create an editor-plug in for a certain file, let's say a file with
>> extension .abc.
>> When I run the 2nd instance, somehow the editor isn't detected, so that
> the
>> .abc file is opened with the default text editor. In the preferences(File
>> association), the name of the editor I input in plugin.xml isn't detected.
>> I have the following entry on plugin.xml:
>>
>> <extension
>> point="org.eclipse.ui.editors">
>>
>> <editor
>>
>> name="AbcEditor"
>>
>> extensions="abc"
>>
>> class="abc.ui.editor.AbcEditor"
>>
>> contributorClass="abc.ui.editor.AbcEditorActionContributor"
>>
>> id="abc.ui.editor.AbcEditor">
>>
>> </editor>
>>
>> </extension>
>>
>> Can someone please give some ideas, what the problems could be? (Maybe
> there
>> are certain methods in the editor class or action contributor class that
>> must be implemented??
>>
>> Thanks in advance!
>>
>>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.10345 seconds