mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-07 17:56:01 +02:00
Fix for PR 81007
This commit is contained in:
parent
b5b9cb7f7d
commit
ed57ae9e44
1 changed files with 24 additions and 22 deletions
|
@ -54,6 +54,7 @@ public class MakefileTextHover implements ITextHover {
|
||||||
if (fEditor != null && len > -1) {
|
if (fEditor != null && len > -1) {
|
||||||
IWorkingCopyManager fManager = MakeUIPlugin.getDefault().getWorkingCopyManager();
|
IWorkingCopyManager fManager = MakeUIPlugin.getDefault().getWorkingCopyManager();
|
||||||
IMakefile makefile = fManager.getWorkingCopy(fEditor.getEditorInput());
|
IMakefile makefile = fManager.getWorkingCopy(fEditor.getEditorInput());
|
||||||
|
if (makefile != null) {
|
||||||
WordPartDetector wordPart = new WordPartDetector(textViewer, offset);
|
WordPartDetector wordPart = new WordPartDetector(textViewer, offset);
|
||||||
String name = wordPart.toString();
|
String name = wordPart.toString();
|
||||||
IMacroDefinition[] statements = null;
|
IMacroDefinition[] statements = null;
|
||||||
|
@ -80,6 +81,7 @@ public class MakefileTextHover implements ITextHover {
|
||||||
}
|
}
|
||||||
return buffer.toString();
|
return buffer.toString();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
} catch (BadLocationException e) {
|
} catch (BadLocationException e) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue