コード例 #1
0
 @Override
 public boolean canExecute() {
   if (!HenshinLayoutUtil.INSTANCE.hasOriginInKernelRule(mapping.getOrigin())
       && HenshinLayoutUtil.INSTANCE.hasOriginInKernelRule(mapping.getImage())) return false;
   return super.canExecute();
 }
コード例 #2
0
 /*
  * (non-Javadoc)
  *
  * @see org.eclipse.gef.commands.Command#canExecute()
  */
 @Override
 public boolean canExecute() {
   return node != null
       && attribute != null
       && !HenshinLayoutUtil.INSTANCE.hasOriginInKernelRule(node);
 }