* Check we have a PE connected to the model.
*/
public boolean canLayout(ILayoutContext context) {
// return true, if pictogram element is linked to a LVS
PictogramElement pe = context.getPictogramElement();
if (!(pe instanceof ContainerShape)) {
return false;
}
EList<EObject> businessObjects = pe.getLink().getBusinessObjects();
if (businessObjects.size() == 1
&& businessObjects.get(0) instanceof LocalVariableStatement) {
return true;
}