As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
activeEditor.getEditingDomain().getCommandStack()<br> .execute(new RecordingCommand(activeEditor.getEditingDomain()) {<br> @Override<br> protected void doExecute() {<br> final AddContext context = new AddContext(new AreaContext(), userTask);<br> final IAddFeature addFeature = featureProvider.getAddFeature(context);<br> context.setNewObject(userTask);<br> context.setLocation(x, y);<br> context.setTargetContainer(diagram);<br> if (addFeature.canAdd(context)) {<br> final PictogramElement add = addFeature.add(context);<br> featureProvider.link(add, new Object[] { userTask });<br> }<br> }<br>});