Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Self-made editor not detected
Self-made editor not detected [message #217198] Thu, 21 June 2007 15:11 Go to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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!
>>
>>
>
>
Previous Topic:Can I get back my file's yesterday version?
Next Topic:Removing Faulty Classes From Project (Temporarily)
Goto Forum:
  


Current Time: Thu Apr 25 01:48:06 GMT 2024

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

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

Back to the top