unknown editor ID when launching an editor programatically [message #283139] |
Mon, 28 March 2005 02:55  |
Eclipse User |
|
|
|
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 #283151 is a reply to message #283148] |
Mon, 28 March 2005 10:33   |
Eclipse User |
|
|
|
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   |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.02822 seconds