1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-04 23:05:47 +02:00

User Docs for indexer

Take out "Add to index menu item"
This commit is contained in:
Bogdan Gheorghe 2005-07-27 20:03:26 +00:00
parent e83482c41d
commit 888428b1fa
2 changed files with 4 additions and 9 deletions

View file

@ -68,8 +68,6 @@ class CTagsIndexAll extends CTagsIndexRequest {
if (progressMonitor != null && progressMonitor.isCanceled()) return true;
if (!project.isAccessible()) return true; // nothing to do
String test = this.indexPath.toOSString();
IIndex index = indexer.getIndex(this.indexPath, true, /*reuse index file*/ true /*create if none*/);
if (index == null) return true;
ReadWriteMonitor monitor = indexer.getMonitorFor(index);
@ -151,6 +149,9 @@ class CTagsIndexAll extends CTagsIndexRequest {
refs = cProj.getIncludeReferences();
} catch (CModelException e) {}
//This project has no references, don't bother processing any further
if (refs.length == 0)
return;
//Find common base for references
String[] pathString = new String[refs.length];

View file

@ -15,7 +15,6 @@ import org.eclipse.cdt.core.model.ITranslationUnit;
import org.eclipse.cdt.internal.ui.IContextMenuConstants;
import org.eclipse.cdt.internal.ui.actions.SelectionConverter;
import org.eclipse.cdt.internal.ui.editor.OpenIncludeAction;
import org.eclipse.cdt.internal.ui.search.actions.AddToIndexAction;
import org.eclipse.cdt.internal.ui.search.actions.SelectionSearchGroup;
import org.eclipse.cdt.ui.actions.CustomFiltersActionGroup;
import org.eclipse.cdt.ui.actions.RefactoringActionGroup;
@ -78,8 +77,6 @@ public class MainActionGroup extends CViewActionGroup {
WorkingSetFilterActionGroup workingSetGroup;
CustomFiltersActionGroup fCustomFiltersActionGroup;
AddToIndexAction addToIndexAction;
SelectionSearchGroup selectionSearchGroup;
RefactoringActionGroup refactoringActionGroup;
@ -165,8 +162,7 @@ public class MainActionGroup extends CViewActionGroup {
selectionSearchGroup = new SelectionSearchGroup(getCView().getSite());
refactoringActionGroup = new RefactoringActionGroup(getCView().getSite(), null);
addToIndexAction = new AddToIndexAction(getCView().getSite());
}
/**
@ -205,8 +201,6 @@ public class MainActionGroup extends CViewActionGroup {
menu.add(new Separator());
buildGroup.fillContextMenu(menu);
menu.add(new Separator());
menu.add(addToIndexAction);
menu.add(new Separator());
refactorGroup.fillContextMenu(menu);
menu.add(new Separator());
importAction.selectionChanged(resources);