Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » unknown editor ID when launching an editor programatically
unknown editor ID when launching an editor programatically [message #283139] Mon, 28 March 2005 02:55 Go to next message
Eclipse UserFriend
Originally posted by: Angel.Roman.prismtech.com

Hi All,

I'm using eclipse 3.0.1 and I'm trying to open an editor from within an
editor using the IWorkBenchPage.openEditor() method. However, I am
obtaining a PartInitException who's contents are:

Unable to open editor, unknown editor ID: com.foo.MySecondEditor

In other words I am doing the following:

page.openEditor(in, "com.foo.MySecondEditor");

where page is the active page.

I verified that the plug-in for my editor is installed correctly by
consulting the Plug-in Details on the About Eclipse dialog box. The
dialog box displays the id of my plugin as com.foo.MySecondEditor.

In addition, when a file is double clicked with the extension that is
associated with MySecondEditor, the editor is launched and I'm able to
use it.

Thanks in advance,
Angel Roman
Re: unknown editor ID when launching an editor programatically [message #283148 is a reply to message #283139] Mon, 28 March 2005 09:58 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: Lamont_Gilbert.rigidsoftware.com

The name you are passing into openEditor does not match what you put in
your plugin.xml file.


Angel Roman wrote:
> Hi All,
>
> I'm using eclipse 3.0.1 and I'm trying to open an editor from within an
> editor using the IWorkBenchPage.openEditor() method. However, I am
> obtaining a PartInitException who's contents are:
>
> Unable to open editor, unknown editor ID: com.foo.MySecondEditor
>
> In other words I am doing the following:
>
> page.openEditor(in, "com.foo.MySecondEditor");
>
> where page is the active page.
>
> I verified that the plug-in for my editor is installed correctly by
> consulting the Plug-in Details on the About Eclipse dialog box. The
> dialog box displays the id of my plugin as com.foo.MySecondEditor.
>
> In addition, when a file is double clicked with the extension that is
> associated with MySecondEditor, the editor is launched and I'm able to
> use it.
>
> Thanks in advance,
> Angel Roman
Re: unknown editor ID when launching an editor programatically [message #283151 is a reply to message #283148] Mon, 28 March 2005 10:33 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: Angel.Roman.prismtech.com

CL [dnoyeb] Gilbert wrote:
> The name you are passing into openEditor does not match what you put in
> your plugin.xml file.
>
>
> Angel Roman wrote:
>
>> Hi All,
>>
>> I'm using eclipse 3.0.1 and I'm trying to open an editor from within
>> an editor using the IWorkBenchPage.openEditor() method. However, I am
>> obtaining a PartInitException who's contents are:
>>
>> Unable to open editor, unknown editor ID: com.foo.MySecondEditor
>>
>> In other words I am doing the following:
>>
>> page.openEditor(in, "com.foo.MySecondEditor");
>>
>> where page is the active page.
>>
>> I verified that the plug-in for my editor is installed correctly by
>> consulting the Plug-in Details on the About Eclipse dialog box. The
>> dialog box displays the id of my plugin as com.foo.MySecondEditor.
>>
>> In addition, when a file is double clicked with the extension that is
>> associated with MySecondEditor, the editor is launched and I'm able to
>> use it.
>>
>> Thanks in advance,
>> Angel Roman

Thanks for the response. However, the id specified in the plugin.xml
file matches the id that I am passing to openEditor(). Any other
clues/ideas would be appreciated.

Thanks,
Angel
Re: unknown editor ID when launching an editor programatically [message #283154 is a reply to message #283151] Mon, 28 March 2005 10:55 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: Angel.Roman.prismtech.com

Angel Roman wrote:
> CL [dnoyeb] Gilbert wrote:
>
>> The name you are passing into openEditor does not match what you put
>> in your plugin.xml file.
>>
>>
>> Angel Roman wrote:
>>
>>> Hi All,
>>>
>>> I'm using eclipse 3.0.1 and I'm trying to open an editor from within
>>> an editor using the IWorkBenchPage.openEditor() method. However, I am
>>> obtaining a PartInitException who's contents are:
>>>
>>> Unable to open editor, unknown editor ID: com.foo.MySecondEditor
>>>
>>> In other words I am doing the following:
>>>
>>> page.openEditor(in, "com.foo.MySecondEditor");
>>>
>>> where page is the active page.
>>>
>>> I verified that the plug-in for my editor is installed correctly by
>>> consulting the Plug-in Details on the About Eclipse dialog box. The
>>> dialog box displays the id of my plugin as com.foo.MySecondEditor.
>>>
>>> In addition, when a file is double clicked with the extension that is
>>> associated with MySecondEditor, the editor is launched and I'm able
>>> to use it.
>>>
>>> Thanks in advance,
>>> Angel Roman
>
>
> Thanks for the response. However, the id specified in the plugin.xml
> file matches the id that I am passing to openEditor(). Any other
> clues/ideas would be appreciated.
>
> Thanks,
> Angel

Gilbert,

Thanks for your reply. You were 100% correct. I confused the ID for the
plugin with the ID for my editor.

Thanks,
Angel
Re: unknown editor ID when launching an editor programatically [message #283159 is a reply to message #283154] Mon, 28 March 2005 14:20 Go to previous message
Eclipse UserFriend
Originally posted by: Lamont_Gilbert.rigidsoftware.com

Angel Roman wrote:
> Angel Roman wrote:
>
>> CL [dnoyeb] Gilbert wrote:
>>
>>> The name you are passing into openEditor does not match what you put
>>> in your plugin.xml file.
>>>
>>>
>>> Angel Roman wrote:
>>>
>>>> Hi All,
>>>>
>>>> I'm using eclipse 3.0.1 and I'm trying to open an editor from within
>>>> an editor using the IWorkBenchPage.openEditor() method. However, I
>>>> am obtaining a PartInitException who's contents are:
>>>>
>>>> Unable to open editor, unknown editor ID: com.foo.MySecondEditor
>>>>
>>>> In other words I am doing the following:
>>>>
>>>> page.openEditor(in, "com.foo.MySecondEditor");
>>>>
>>>> where page is the active page.
>>>>
>>>> I verified that the plug-in for my editor is installed correctly by
>>>> consulting the Plug-in Details on the About Eclipse dialog box. The
>>>> dialog box displays the id of my plugin as com.foo.MySecondEditor.
>>>>
>>>> In addition, when a file is double clicked with the extension that
>>>> is associated with MySecondEditor, the editor is launched and I'm
>>>> able to use it.
>>>>
>>>> Thanks in advance,
>>>> Angel Roman
>>
>>
>>
>> Thanks for the response. However, the id specified in the plugin.xml
>> file matches the id that I am passing to openEditor(). Any other
>> clues/ideas would be appreciated.
>>
>> Thanks,
>> Angel
>
>
> Gilbert,
>
> Thanks for your reply. You were 100% correct. I confused the ID for the
> plugin with the ID for my editor.
>
> Thanks,
> Angel

glad to see you got it fixed up.

CL
Previous Topic:[Help]: HTTP 500 internal server error
Next Topic:decorate extension with TableViewer
Goto Forum:
  


Current Time: Thu May 08 01:48:38 EDT 2025

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

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

Back to the top