Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » PartInitException instead of editor opened - Newbie question
PartInitException instead of editor opened - Newbie question [message #459457] Fri, 01 December 2006 14:01 Go to next message
Eclipse UserFriend
Originally posted by: guefeld.spammerslammer.com

Hi Ng


What am I doing wrong?
Having a RCP Project

Have created an Editor class - extending EditorPart
I did this in the extensions page of the plugin-editor
Here come the entries
ID: com.mycompany.editor.MyPurpose
name: MyPurpose
class: com.mycompany.editor.MyPurposeEditor

I created a MyPurposeEditor class containing a
public static string ID = "com.mycompany.editor.MyPurpose"

I created an Editor Input class MyPurposeEditorInput and implemented the
interface

I have an action where at run() I make the call
try{

page.openEditor(

myPurposeEditorInput,

MyPurposeEditor.ID);

} catch (PartInitException e){

// Handle error

GFLExceptionMessage.catchAndShow(i_window.getShell(), e);

}

And when this code executes I get an exception with the text
PartInitException, unable to open editor, unknown editor ID
com.com.mycompany.editor.MyPurpose

Did I forget to declare something???
Please help me taming that beast ;-)

Thanks in advance
G
Re: PartInitException instead of editor opened - Newbie question [message #459458 is a reply to message #459457] Fri, 01 December 2006 15:56 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: guefeld.spammerslammer.com

Found the reason
Had to declare an icon for my editor in the extension page of the
plugin-editor.
But why do I need an icon?? It seemed an optional feature to me. But without
an icon, I receive the PartInitException.

Thanx to anybody who can tell me the answer.

G
Re: PartInitException instead of editor opened - Newbie question [message #459527 is a reply to message #459458] Mon, 04 December 2006 13:53 Go to previous message
Eclipse UserFriend
Günther Feldzahn wrote:
> Found the reason
> Had to declare an icon for my editor in the extension page of the
> plugin-editor.
> But why do I need an icon?? It seemed an optional feature to me. But without
> an icon, I receive the PartInitException.
>
> Thanx to anybody who can tell me the answer.


icon is required if you are creating an editor part. icon is not
required if you are launching an external editor or program.

It is spelled out in the extension point description, but as there is no
concept of "if (A) then B else B'" in XSD the icon attribute had to be
optional.

Later,
PW
Previous Topic:Code obfuscation for plugins
Next Topic:adding Plugins adds Actions, button in toolbar and preferences page...
Goto Forum:
  


Current Time: Mon Mar 17 02:07:00 EDT 2025

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

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

Back to the top