Examples of OccurrenceLocation


Examples of com.dubture.twig.core.search.IOccurrencesFinder.OccurrenceLocation

            for (int i = 0; i < length; i++) {

                if (isCanceled(progressMonitor))
                    return Status.CANCEL_STATUS;

                OccurrenceLocation location = fLocations[i];
                Position position = new Position(location.getOffset(),
                        location.getLength());

                String description = location.getDescription();
                String annotationType = (location.getFlags() == IOccurrencesFinder.F_WRITE_OCCURRENCE) ? "org.eclipse.php.ui.occurrences.write" : "org.eclipse.php.ui.occurrences"; //$NON-NLS-1$ //$NON-NLS-2$

                // create an annotation to mark the occurrence
                ReconcileAnnotationKey reconcileAnnotationKey = new ReconcileAnnotationKey(
                        null, PHPPartitionTypes.PHP_DEFAULT,
                        ReconcileAnnotationKey.TOTAL);
View Full Code Here

Examples of com.dubture.twig.core.search.IOccurrencesFinder.OccurrenceLocation

            for (int i = 0; i < length; i++) {

                if (isCanceled(progressMonitor))
                    return Status.CANCEL_STATUS;

                OccurrenceLocation location = fLocations[i];
                Position position = new Position(location.getOffset(),
                        location.getLength());

                String description = location.getDescription();
                String annotationType = (location.getFlags() == IOccurrencesFinder.F_WRITE_OCCURRENCE)
                        ? "org.eclipse.php.ui.occurrences.write" : "org.eclipse.php.ui.occurrences"; //$NON-NLS-1$ //$NON-NLS-2$

                // create an annotation to mark the occurrence
                ReconcileAnnotationKey reconcileAnnotationKey = new ReconcileAnnotationKey(
                        null, PHPPartitionTypes.PHP_DEFAULT,
View Full Code Here

Examples of org.eclipse.php.internal.core.search.IOccurrencesFinder.OccurrenceLocation

      for (int i = 0; i < length; i++) {

        if (isCanceled(progressMonitor))
          return Status.CANCEL_STATUS;

        OccurrenceLocation location = fLocations[i];
        Position position = new Position(location.getOffset(),
            location.getLength());

        String description = location.getDescription();
        String annotationType = (location.getFlags() == IOccurrencesFinder.F_WRITE_OCCURRENCE) ? "org.eclipse.php.ui.occurrences.write" : "org.eclipse.php.ui.occurrences"; //$NON-NLS-1$ //$NON-NLS-2$

        // create an annotation to mark the occurrence
        ReconcileAnnotationKey reconcileAnnotationKey = new ReconcileAnnotationKey(
            null, PHPPartitionTypes.PHP_DEFAULT,
            ReconcileAnnotationKey.TOTAL);
View Full Code Here

Examples of org.eclipse.php.internal.core.search.IOccurrencesFinder.OccurrenceLocation

        HashMap lineMap = new HashMap();
        Program astRoot = fFinder.getASTRoot();
        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());
            resultingMatches.add(match);

            // TODO see location flags for more information
            // lineKey.setFlags(lineKey.getFlags() |
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.