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