public J2EEPasteFromClipboardOverrideCommand(PasteFromClipboardCommand p) { super(p.getDomain(), p.getOwner(), p.getFeature(), p.getIndex(), false); }
/** * This creates a command to add copies from the clipboard to the specified feature of the owner. */ public static Command create(EditingDomain domain, Object owner, Object feature) { return create(domain, owner, feature, CommandParameter.NO_INDEX); }
public PasteFromClipboardOverrideCommand(MappingDomain domain, PasteFromClipboardCommand command) { super(domain, command.getOwner(), command.getFeature(), command.getIndex(), domain.getOptimizeCopy()); }
/** * This creates a command to add copies from the clipboard to the specified feature of the owner and at the given index. */ public static Command create(EditingDomain domain, Object owner, Object feature, int index) { if (domain == null) { return new PasteFromClipboardCommand(domain, owner, feature, index, true); } else { Command command = domain.createCommand(PasteFromClipboardCommand.class, new CommandParameter(owner, feature, Collections.emptyList(), index)); return command; } }
public void doUndo() { super.doUndo(); if (addBindingsCommand != null) addBindingsCommand.undo(); if (addExtensionsCommand != null) addExtensionsCommand.undo(); }
public void doRedo() { super.doRedo(); if (addBindingsCommand != null) addBindingsCommand.redo(); if (addExtensionsCommand != null) addExtensionsCommand.redo(); }
public void doExecute() { super.doExecute(); executeAddBindings(); executeAddExtensions(); J2EEClipboard result = (J2EEClipboard) doGetResult(); for (int i = 0; i < result.size(); i++) { EObject o = (EObject) result.get(i); if (result.getBinding(o) != null || result.getExtension(o) != null) IDUtility.setDefaultID(o, true); } }
public PasteFromClipboardOverrideCommand(MappingDomain domain, PasteFromClipboardCommand command) { super(domain, command.getOwner(), command.getFeature(), command.getIndex(), domain.getOptimizeCopy()); }
return new PasteFromClipboardCommand (this, commandParameter.getOwner(), commandParameter.getFeature(), commandParameter.getIndex(), getOptimizeCopy());