Package org.eclipse.jface.text

Examples of org.eclipse.jface.text.IBlockTextSelection


               * selected block may not overlap actual lines or
               * columns of the document.
               * IBlockTextSelection.getRegions() should handle
               * that for us...
               */
              IBlockTextSelection blockSelection = (IBlockTextSelection) selection;
              IRegion[] regions = blockSelection.getRegions();
              Set blockObjects = new LinkedHashSet();
              for (int i = 0; i < regions.length; i++) {
                Object[] objects = selectionConvertor.getElements(structuredModel, regions[i].getOffset(), regions[i].getLength());
                for (int j = 0; j < objects.length; j++) {
                  blockObjects.add(objects[j]);
View Full Code Here


               * selected block may not overlap actual lines or
               * columns of the document.
               * IBlockTextSelection.getRegions() should handle
               * that for us...
               */
              IBlockTextSelection blockSelection = (IBlockTextSelection) selection;
              IRegion[] regions = blockSelection.getRegions();
              Set blockObjects = new LinkedHashSet();
              for (int i = 0; i < regions.length; i++) {
                Object[] objects = selectionConvertor.getElements(structuredModel, regions[i].getOffset(), regions[i].getLength());
                for (int j = 0; j < objects.length; j++) {
                  blockObjects.add(objects[j]);
View Full Code Here

TOP

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

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.