Package org.eclipse.wst.sse.core.internal.text.rules

Examples of org.eclipse.wst.sse.core.internal.text.rules.SimpleStructuredRegion


          && (leftNonWhitespaceChar < rightNonWhitespaceChar);
    }

    // if line is empty then the indexes were switched
    if (leftNonWhitespaceChar > rightNonWhitespaceChar)
      return new SimpleStructuredRegion(lineInfo.getOffset(), 0);

    // if there are no changes - return the original line information, else
    // build a fixed region
    return leftNonWhitespaceChar == 0
        && rightNonWhitespaceChar == lineText.length() - 1 ? lineInfo
        : new SimpleStructuredRegion(lineInfo.getOffset()
            + leftNonWhitespaceChar, rightNonWhitespaceChar
            - leftNonWhitespaceChar + 1);
  }
View Full Code Here


                    && (leftNonWhitespaceChar < rightNonWhitespaceChar);
        }

        // if line is empty then the indexes were switched
        if (leftNonWhitespaceChar > rightNonWhitespaceChar)
            return new SimpleStructuredRegion(lineInfo.getOffset(), 0);

        // if there are no changes - return the original line information, else
        // build a fixed region
        return leftNonWhitespaceChar == 0
                && rightNonWhitespaceChar == lineText.length() - 1
                ? lineInfo
                : new SimpleStructuredRegion(lineInfo.getOffset()
                        + leftNonWhitespaceChar, rightNonWhitespaceChar
                        - leftNonWhitespaceChar + 1);
    }
View Full Code Here

TOP

Related Classes of org.eclipse.wst.sse.core.internal.text.rules.SimpleStructuredRegion

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.