Exemplo n.º 1
0
 @Override
 public boolean canExecute(ICustomContext context) {
   PictogramElement[] pes = context.getPictogramElements();
   if (pes != null && pes.length == 1) {
     BaseElement be = BusinessObjectUtil.getFirstBaseElement(pes[0]);
     return FeatureSupport.isElementExpanded(be);
   }
   return false;
 }