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

Fix for 66273: Opening declaration causes stack overflow

This commit is contained in:
Bogdan Gheorghe 2004-06-09 14:46:20 +00:00
parent de67e84c2f
commit 7f558ffc16

View file

@ -110,17 +110,17 @@ public class EditorUtility {
}
}
// private static IEditorPart openInEditor(IFile file, boolean activate) throws PartInitException {
// if (file != null) {
// IWorkbenchPage p= CUIPlugin.getActivePage();
// if (p != null) {
// IEditorPart editorPart = IDE.openEditor(p, file, activate);
// initializeHighlightRange(editorPart);
// return editorPart;
// }
// }
// return null;
// }
private static IEditorPart openInEditor(IFile file, boolean activate) throws PartInitException {
if (file != null) {
try {
IEditorInput input = getEditorInput(file);
if (input != null) {
return openInEditor(input, getEditorID(input, file), activate);
}
} catch (CModelException e) {}
}
return null;
}
private static IEditorPart openInEditor(IEditorInput input, String editorID, boolean activate) throws PartInitException {
if (input != null) {