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

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


    case SWT.LF:
    case SWT.CR:
      // "insert"
      keyCode = new KeyboardData(e.character, e.stateMask,
          (IHTMLGraphicalViewer) getCurrentViewer());
      command = new InsertCommand(
          PageDesignerResources.getInstance().getString(
              "RangeSelectionTool.CommandLabel.Insert"), (IHTMLGraphicalViewer) this.getCurrentViewer(), keyCode); //$NON-NLS-1$
      e.doit = false;
      break;
    default:
      if (e.keyCode == 'a' && (e.stateMask & SWT.CTRL) != 0) {
        command = new SelectAllCommand("selectAll", //$NON-NLS-1$
            (IHTMLGraphicalViewer) this.getCurrentViewer());
        e.doit = false;
      } else {
        if (getCurrentViewer() instanceof IHTMLGraphicalViewer
            && ((IHTMLGraphicalViewer) getCurrentViewer())
                .isInRangeMode()
            && (!Character.isIdentifierIgnorable(e.character) && !Character
                .isISOControl(e.character))
            || (e.character == '\r')) {
          keyCode = new KeyboardData(e.character, e.stateMask,
              (IHTMLGraphicalViewer) getCurrentViewer());
          // "insert"
          command = new InsertCommand(
              PageDesignerResources.getInstance().getString(
                  "RangeSelectionTool.CommandLabel.Insert"), (IHTMLGraphicalViewer) this.getCurrentViewer(), keyCode); //$NON-NLS-1$
          e.doit = false;
          break;
        }
View Full Code Here

TOP

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

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.