| [News.eclipse.technology.gmf] Re: Building a diagram programmatically |
Hello dzh,
CreationEditPolicy.getCreateCommand(request) will be called from CreationEditPolicy.getCommand(Request request) only if understandsRequest(Request request) returns true, so only if request.getType() return RequestConstants.REQ_CREATE or RequestConstants.REQ_ADDAs it mentioned below "override CreationEditPolicy.getCreateCommand(request) for the editpolicy which will be installed on your EditPart " by Alex, which role should be used according to REQ_CREATE?
----------------- Alex Shatalin