Package org.eclipse.jface.text

Examples of org.eclipse.jface.text.BlockTextSelection


      try {
        document.removePosition(fSelectionCategory, position);
        Point currentSelection= getSelectedRange();
        if (currentSelection == null || currentSelection.x != position.getOffset() || currentSelection.y != position.getLength()) {
          if (position instanceof ColumnPosition && getTextWidget().getBlockSelection()) {
            setSelection(new BlockTextSelection(document, document.getLineOfOffset(position.getOffset()), ((ColumnPosition) position).fStartColumn, document.getLineOfOffset(position.getOffset() + position.getLength()), ((ColumnPosition) position).fEndColumn, getTextWidget().getTabs()));
          } else {
            setSelectedRange(position.getOffset(), position.getLength());
          }
        }
View Full Code Here


      try {
        document.removePosition(fSelectionCategory, position);
        Point currentSelection= getSelectedRange();
        if (currentSelection == null || currentSelection.x != position.getOffset() || currentSelection.y != position.getLength()) {
          if (position instanceof ColumnPosition && getTextWidget().getBlockSelection()) {
            setSelection(new BlockTextSelection(document, document.getLineOfOffset(position.getOffset()), ((ColumnPosition) position).fStartColumn, document.getLineOfOffset(position.getOffset() + position.getLength()), ((ColumnPosition) position).fEndColumn, getTextWidget().getTabs()));
          } else {
            setSelectedRange(position.getOffset(), position.getLength());
          }
        }
View Full Code Here

TOP

Related Classes of org.eclipse.jface.text.BlockTextSelection

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.