3334353637383940414243
public void perform() { DesignerCommand command = null; IHTMLGraphicalViewer viewer = getViewer(); if (viewer.isInRangeMode()) { command = new PasteCommand(viewer); command.execute(); } else { return; } }
121122123124125126127128129130131
e.doit = false; break; case SWT.INSERT: if ((e.stateMask & SWT.SHIFT) != 0) { // "paste" command = new PasteCommand((IHTMLGraphicalViewer) this .getCurrentViewer()); e.doit = false; break; } else if ((e.stateMask & SWT.CONTROL) != 0) { // "copy"