return context.getTargetContainer().equals(getDiagram());
}
@Override
public Object[] create(ICreateContext context) {
Conversation c = null;
try {
ModelHandler handler = ModelHandler.getInstance(getDiagram());
c = ModelHandler.FACTORY.createConversation();
// c.setId(EcoreUtil.generateUUID());
c.setName("Conversation");
handler.addConversationNode(c);
ModelUtil.setID(c);
} catch (IOException e) {
Activator.logError(e);
}