how to create view with existed element? [message #1242] |
Tue, 01 August 2006 03: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?
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03251 seconds