|
|
|
|
|
|
|
|
|
|
Re: How to set the selection programmatically? [message #1474961 is a reply to message #1413465] |
Sat, 15 November 2014 17:20  |
Eclipse User |
|
|
|
I have just made selection in UpdateFeature.
@Override
public boolean update(IUpdateContext context) {
if(!updateNeededChecked)
if(!this.updateNeeded(context).toBoolean()) return false;
boolean updated = false;
if(superUpdateNeeded) updated = updated | super.update(context);
ContainerShape parent = (ContainerShape) context.getPictogramElement();
Task be = (Task) getBusinessObjectForPictogramElement(parent);
if(descUpdateNeeded) updated = updated | descUpdate (parent, be);
if(inputsUpdateNeeded) updated = updated | inputsUpdate (parent, be);
if(outputsUpdateNeeded) updated = updated | outputsUpdate(parent, be);
if(atomicUpdateNeeded) updated = updated | atomicUpdate (parent, be);
if(paramsUpdateNeeded) updated = updated | paramsUpdate (parent, be);
if(updated) {
getDiagramBehavior().getDiagramContainer().selectPictogramElements(new PictogramElement[] {});
getDiagramBehavior().getDiagramContainer().selectPictogramElements(new PictogramElement[] { parent });
}
return updated;
}
I needed to reselect pictogram element to refresh properties tab.
Works correctly.
[Updated on: Sat, 15 November 2014 17:21] by Moderator
|
|
|
Powered by
FUDForum. Page generated in 0.10240 seconds