mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-05 08:46:02 +02:00
Fix for 183482: C Editor always re-opens file which was alreay open
This commit is contained in:
parent
b48dbe507a
commit
dcc302a00d
1 changed files with 1 additions and 1 deletions
|
@ -882,7 +882,7 @@ public class CView extends ViewPart implements ISetSelectionTarget, IPropertyCha
|
||||||
IWorkbenchPage page = getSite().getPage();
|
IWorkbenchPage page = getSite().getPage();
|
||||||
page.bringToTop(part);
|
page.bringToTop(part);
|
||||||
if (obj instanceof ISourceReference) {
|
if (obj instanceof ISourceReference) {
|
||||||
if (obj instanceof ICElement) {
|
if (obj instanceof ICElement && !(obj instanceof ITranslationUnit)) {
|
||||||
EditorUtility.revealInEditor(part, (ICElement) obj);
|
EditorUtility.revealInEditor(part, (ICElement) obj);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue