Examples of DLTKElementLine


Examples of org.eclipse.dltk.internal.ui.search.DLTKElementLine

        ArrayList resultingMatches = new ArrayList();

        for (int i = 0; i < occurrences.length; i++) {
          OccurrenceLocation loc = occurrences[i];

          DLTKElementLine lineKey = getLineElement(astRoot, loc,
              lineMap);
          if (lineKey != null) {
            OccurrenceMatch match = new OccurrenceMatch(lineKey,
                loc.getOffset(), loc.getLength(), loc
                    .getFlags());
View Full Code Here

Examples of org.eclipse.dltk.internal.ui.search.DLTKElementLine

      OccurrenceLocation location, HashMap lineToGroup) {
    int lineNumber = astRoot.getLineNumber(location.getOffset());
    if (lineNumber <= 0) {
      return null;
    }
    DLTKElementLine lineElement = null;
    Integer key = Integer.valueOf(lineNumber);
    lineElement = (DLTKElementLine) lineToGroup.get(key);
    if (lineElement == null) {
      int lineStartOffset = astRoot.getPosition(lineNumber, 0);
      if (lineStartOffset >= 0) {
        // lineNumber - 1, FIXME - set the correct line content
        lineElement = new DLTKElementLine(astRoot.getSourceModule(),
            lineStartOffset, ""); //$NON-NLS-1$
        lineToGroup.put(key, lineElement);
      }
    }
    return lineElement;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.