01: package newprocess.diagram.cust.policies;
02:
03: import org.eclipse.gef.commands.Command;
04: import org.eclipse.gef.commands.UnexecutableCommand;
05: import org.eclipse.gef.editpolicies.ComponentEditPolicy;
06: import org.eclipse.gef.requests.GroupRequest;
07:
08: /**
09: * @author sh
10: * disable deletion
11: *
12: */
13: public class NodeComponentEditPolicy extends ComponentEditPolicy {
14: protected Command createDeleteCommand(GroupRequest request) {
15: return UnexecutableCommand.INSTANCE;
16: }
17: }
|