|
|
Re: Create ICreateContext [message #649041 is a reply to message #648719] |
Mon, 17 January 2011 11:58 |
Hauke Messages: 3 Registered: January 2011 |
Junior Member |
|
|
Hello
I have a problem with this one
addBookContext.setTargetContainer(<the container shape in which to add
the object representation>);
How do I get
<the container shape in which to add the object representation>
The only thing I have is:
PictogramElement v = addGraphicalRepresentation(context, vertex);
And I don't know how I get the right container shape.
This one I tried causes a NullPointerExceptions:
IPeCreateService peCreateService = Graphiti.getPeCreateService();
ContainerShape contShape = peCreateService.createContainerShape(context.getTargetContainer(),false);
addBookContext.setTargetContainer(contShape);
[Updated on: Mon, 17 January 2011 13:28] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03313 seconds