Package org.eclipse.jst.pagedesigner.commands.range

Examples of org.eclipse.jst.pagedesigner.commands.range.DeleteCommand


  public void perform() {
    DesignerCommand command = null;
    IHTMLGraphicalViewer viewer = getViewer();
    if (viewer.isInRangeMode()) {
      command = new DeleteCommand(true, viewer);
      command.execute();
    } else {
      command = new DeleteNodeCommand(viewer);
      command.execute();
    }
View Full Code Here


            }
          }
        }
        if (command == null) {
          // "delete"
          command = new DeleteCommand(true,
              (IHTMLGraphicalViewer) this.getCurrentViewer());
        }
      } else {
        // "cut"
        command = new CutCommand((IHTMLGraphicalViewer) this
            .getCurrentViewer());
        e.doit = false;
      }
      break;
    case SWT.BS:
      // "delete"
      command = new DeleteCommand(false, (IHTMLGraphicalViewer) this
          .getCurrentViewer());
      e.doit = false;
      break;
    case SWT.INSERT:
      if ((e.stateMask & SWT.SHIFT) != 0) {
View Full Code Here

TOP

Related Classes of org.eclipse.jst.pagedesigner.commands.range.DeleteCommand

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.