/** @generated */ public boolean canExecute() { if (source == null && target == null) { return false; } if (source != null && false == source instanceof IfThenElse) { return false; } if (target != null && false == target instanceof ControlConstruct) { return false; } if (getSource() == null) { return true; // link creation is in progress; source is not defined yet } // target may be null here but it's possible to check constraint return MappingBaseItemSemanticEditPolicy.LinkConstraints.canCreateIfThenElseElse_4011( getSource(), getTarget()); }
/** @generated */ public boolean canExecute() { if (source == null && target == null) { return false; } if (source != null && false == source instanceof Scope) { return false; } if (target != null && false == target instanceof CompositeAction) { return false; } if (getSource() == null) { return true; // link creation is in progress; source is not defined yet } // target may be null here but it's possible to check constraint if (getContainer() == null) { return false; } return MappingBaseItemSemanticEditPolicy.LinkConstraints .canCreateScopeToCompositeActionMapping_4022(getContainer(), getSource(), getTarget()); }