Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/search/IPDOMSearchContentProvider.java')
-rw-r--r--core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/search/IPDOMSearchContentProvider.java30
1 files changed, 30 insertions, 0 deletions
diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/search/IPDOMSearchContentProvider.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/search/IPDOMSearchContentProvider.java
index b47d4307fe3..5469a90f236 100644
--- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/search/IPDOMSearchContentProvider.java
+++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/search/IPDOMSearchContentProvider.java
@@ -7,16 +7,46 @@
*
* Contributors:
* QNX - Initial API and implementation
+ * Ed Swartz (Nokia)
*******************************************************************************/
package org.eclipse.cdt.internal.ui.search;
+import org.eclipse.core.runtime.IStatus;
+import org.eclipse.core.runtime.Status;
+
+import org.eclipse.cdt.ui.CUIPlugin;
+
/**
+ * The content in the tree and list views may be either:
+ * <p>
+ * IStatus - warnings or errors from the search<br>
+ * ICElement - for C/C++ elements, including TUs, folders, projects<br>
+ * IPath - directory container, full path<br>
+ * IIndexFileLocation - for file entries inside IPath directory containers<br>
+ * {@link IPDOMSearchContentProvider#URI_CONTAINER} - container for URIs
+ * URI - from IIndexFileLocations not resolvable to the local filesystem, under URI_CONTAINER<br>
* @author Doug Schaefer
+ * @author Ed Swartz
*
*/
public interface IPDOMSearchContentProvider {
+ /** This node encapsulates results in the search tree for results not resolvable to files. */
+ static Object URI_CONTAINER = new Object();
+
+ /** This node appears in the tree when the indexer was running during the search
+ * to warn the user that the results are suspicious.
+ * <p>
+ * TODO: it would be better if IIndexManager told us which projects specifically
+ * were being indexed at the time, so we could annotate per-project whose results are suspicious
+ * (which may be none at all for a given search).
+ * See the handling of {@link PDOMSearchResult#wasIndexerBusy()}.
+ */
+ static IStatus INCOMPLETE_RESULTS_NODE =
+ new Status(IStatus.WARNING, CUIPlugin.PLUGIN_ID,
+ CSearchMessages.getString("CSearchMessages.IndexRunningIncompleteWarning")); //$NON-NLS-1$
+
public void elementsChanged(Object[] elements);
public void clear();

Back to the top