1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-06 01:06:01 +02:00

Show in include browser for external files with multiple projects, bug 230032.

This commit is contained in:
Markus Schorn 2008-05-06 10:45:56 +00:00
parent 4bf9d0cd24
commit 94d7f9594a
4 changed files with 6 additions and 6 deletions

View file

@ -175,7 +175,7 @@ public class CHViewPart extends ViewPart {
public void reportNotIndexed(ICElement input) {
if (input != null && getInput() == input) {
setMessage(IndexUI.getFleNotIndexedMessage(input));
setMessage(IndexUI.getFileNotIndexedMessage(input));
}
}

View file

@ -210,12 +210,12 @@ public class IBViewPart extends ViewPart
@Override
protected IStatus run(IProgressMonitor monitor) {
try {
IIndex index= CCorePlugin.getIndexManager().getIndex(input.getCProject());
final ICProject[] projects= CoreModel.getDefault().getCModel().getCProjects();
IIndex index= CCorePlugin.getIndexManager().getIndex(projects);
index.acquireReadLock();
try {
if (!IndexUI.isIndexed(index, input)) {
final String msg = IndexUI
.getFleNotIndexedMessage(input);
final String msg = IndexUI.getFileNotIndexedMessage(input);
display.asyncExec(new Runnable() {
public void run() {
if (fTreeViewer.getInput() == input) {

View file

@ -319,7 +319,7 @@ class THHierarchyModel {
fGraph= graph;
THGraphNode inputNode= fGraph.getInputNode();
if (!fGraph.isFileIndexed()) {
fView.setMessage(IndexUI.getFleNotIndexedMessage(fInput));
fView.setMessage(IndexUI.getFileNotIndexedMessage(fInput));
}
else if (inputNode == null) {
fView.setMessage(Messages.THHierarchyModel_errorComputingHierarchy);

View file

@ -394,7 +394,7 @@ public class IndexUI {
return result[0];
}
public static String getFleNotIndexedMessage(ICElement input) {
public static String getFileNotIndexedMessage(ICElement input) {
ITranslationUnit tu= null;
if (input instanceof ISourceReference) {
ISourceReference ref= (ISourceReference) input;