how to create view with existed element? [message #1242] |
Tue, 01 August 2006 07:12  |
Eclipse User |
|
|
|
Originally posted by: dzhpingbo.sohu.com
I use the code below to create View with existed element:
CreateViewRequest.ViewDescriptor viewDescriptor = new
CreateViewRequest.ViewDescriptor(new EObjectAdapter(data), Node.class, null,
ProcessDiagramEditorPlugin.DIAGRAM_PREFERENCES_HINT); //data is an element
which is already existed
CreateViewRequest cvRequest = new CreateViewRequest((viewDescriptor));
Command cmd =
targetDiagramEditor.getDiagramEditPart().getCommand(cvReques t);
return cmd;
but the view seem like does not listen to its element, Does anyone have any
other way to fulfill this?
|
|
|
how to make a pur plugin after working on with Lite RCP [message #167921 is a reply to message #1242] |
Fri, 11 January 2008 16:59   |
Eclipse User |
|
|
|
Originally posted by: serge.bedime.dai-labor.de
I' make my plugin working with Lite RCP. I install it on my eclipse
environnment, It works well. Even when i open my diagram from menu file
open every thing work well. but from Project-Explorer, the diagram opens up,
ibut i cannot add new object to the diagram from the palette. I become a
stackOverflowException. Can somebody help to fix this problem?
|
|
|
Re: how to make a pur plugin after working on with Lite RCP [message #167933 is a reply to message #167921] |
Fri, 11 January 2008 17:35   |
Eclipse User |
|
|
|
Hi Serge,
Could I ask you to provide more details? At least the repeating portion
of the stack trace?
Thank you in advance and
Best regards,
Boris
serge Bedime wrote:
> I' make my plugin working with Lite RCP. I install it on my eclipse
> environnment, It works well. Even when i open my diagram from menu file
> open every thing work well. but from Project-Explorer, the diagram opens up,
> ibut i cannot add new object to the diagram from the palette. I become a
> stackOverflowException. Can somebody help to fix this problem?
>
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.03274 seconds