mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +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();
|
||||
page.bringToTop(part);
|
||||
if (obj instanceof ISourceReference) {
|
||||
if (obj instanceof ICElement) {
|
||||
if (obj instanceof ICElement && !(obj instanceof ITranslationUnit)) {
|
||||
EditorUtility.revealInEditor(part, (ICElement) obj);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue