diff options
author | nitind | 2005-08-03 22:00:05 +0000 |
---|---|---|
committer | nitind | 2005-08-03 22:00:05 +0000 |
commit | 22d4625b4bd150ccedfafbfc2469842e700fb933 (patch) | |
tree | 9aa01b4581e1677f80015bcfe87c9ec6deb23046 /bundles/org.eclipse.wst.sse.core/src-tasktags/org | |
parent | 57dff72945860e00a613a87b76ac104a1a1a8181 (diff) | |
download | webtools.sourceediting-22d4625b4bd150ccedfafbfc2469842e700fb933.tar.gz webtools.sourceediting-22d4625b4bd150ccedfafbfc2469842e700fb933.tar.xz webtools.sourceediting-22d4625b4bd150ccedfafbfc2469842e700fb933.zip |
[103634] Enable searching for Task Tags break TODO lists.
Diffstat (limited to 'bundles/org.eclipse.wst.sse.core/src-tasktags/org')
-rw-r--r-- | bundles/org.eclipse.wst.sse.core/src-tasktags/org/eclipse/wst/sse/core/internal/tasks/WorkspaceTaskScanner.java | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/bundles/org.eclipse.wst.sse.core/src-tasktags/org/eclipse/wst/sse/core/internal/tasks/WorkspaceTaskScanner.java b/bundles/org.eclipse.wst.sse.core/src-tasktags/org/eclipse/wst/sse/core/internal/tasks/WorkspaceTaskScanner.java index b03443b947..d6b099b62c 100644 --- a/bundles/org.eclipse.wst.sse.core/src-tasktags/org/eclipse/wst/sse/core/internal/tasks/WorkspaceTaskScanner.java +++ b/bundles/org.eclipse.wst.sse.core/src-tasktags/org/eclipse/wst/sse/core/internal/tasks/WorkspaceTaskScanner.java @@ -45,7 +45,7 @@ import org.eclipse.wst.sse.core.internal.util.StringUtils; * Dispatcher for scanning based on deltas and requested projects */ class WorkspaceTaskScanner { - private static final boolean _debug = "true".equalsIgnoreCase(Platform.getDebugOption("org.eclipse.wst.sse.core/tasks")); //$NON-NLS-1$ //$NON-NLS-2$ + static final boolean _debug = "true".equalsIgnoreCase(Platform.getDebugOption("org.eclipse.wst.sse.core/tasks")); //$NON-NLS-1$ //$NON-NLS-2$ private static final boolean _debugContentTypeDetection = "true".equalsIgnoreCase(Platform.getDebugOption("org.eclipse.wst.sse.core/tasks/detection")); //$NON-NLS-1$ //$NON-NLS-2$ private static final boolean _debugOverallPerf = "true".equalsIgnoreCase(Platform.getDebugOption("org.eclipse.wst.sse.core/tasks/overalltime")); //$NON-NLS-1$ //$NON-NLS-2$ private static final boolean _debugPreferences = "true".equalsIgnoreCase(Platform.getDebugOption("org.eclipse.wst.sse.core/tasks/preferences")); //$NON-NLS-1$ //$NON-NLS-2$ @@ -59,14 +59,15 @@ class WorkspaceTaskScanner { return _instance; } + final String DEFAULT_MARKER_TYPE = IFileTaskScanner.TASK_MARKER_ID; private List fActiveScanners = null; private IContentType[] fCurrentIgnoreContentTypes = null; private TaskTag[] fCurrentTaskTags = null; + private FileTaskScannerRegistryReader registry = null; private long time0; - /** * */ @@ -270,8 +271,11 @@ class WorkspaceTaskScanner { IWorkspaceRunnable r = new IWorkspaceRunnable() { public void run(IProgressMonitor progressMonitor) throws CoreException { try { - // Delete old Task markers - file.deleteMarkers(IMarker.TASK, true, IResource.DEPTH_ZERO); + /* + * Delete old Task markers (don't delete regular + * Tasks since that includes user-defined ones + */ + file.deleteMarkers(DEFAULT_MARKER_TYPE, true, IResource.DEPTH_ZERO); } catch (CoreException e) { Logger.logException("exception deleting old tasks", e); //$NON-NLS-1$ @@ -281,8 +285,8 @@ class WorkspaceTaskScanner { System.out.println("" + markerAttributes.length + " tasks for " + file.getFullPath()); //$NON-NLS-1$ //$NON-NLS-2$ } for (int i = 0; i < markerAttributes.length; i++) { - String markerType = (String) markerAttributes[i].get(IMarker.TASK); - IMarker marker = finalFile.createMarker(markerType != null ? markerType : IMarker.TASK); + String specifiedMarkerType = (String) markerAttributes[i].get(IMarker.TASK); + IMarker marker = finalFile.createMarker(specifiedMarkerType != null ? specifiedMarkerType : DEFAULT_MARKER_TYPE); marker.setAttributes(markerAttributes[i]); } } |