mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-21 21:52:10 +02:00
Adorn images for external translation unit elements
This commit is contained in:
parent
54568402dc
commit
5c73848e2a
1 changed files with 5 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2005, 2015 IBM Corporation and others.
|
||||
* Copyright (c) 2005, 2023 IBM Corporation and others.
|
||||
*
|
||||
* This program and the accompanying materials
|
||||
* are made available under the terms of the Eclipse Public License 2.0
|
||||
|
@ -13,6 +13,7 @@
|
|||
* QNX Software System
|
||||
* Markus Schorn (Wind River Systems)
|
||||
* Anton Leherbauer (Wind River Systems)
|
||||
* John Dallaway - use external file adornment (#563)
|
||||
*******************************************************************************/
|
||||
package org.eclipse.cdt.internal.ui.viewsupport;
|
||||
|
||||
|
@ -596,6 +597,9 @@ public class CElementImageProvider {
|
|||
flags |= CElementImageDescriptor.WARNING;
|
||||
}
|
||||
}
|
||||
if ((element instanceof ITranslationUnit) && (null == element.getResource())) {
|
||||
flags |= CElementImageDescriptor.EXTERNAL_FILE;
|
||||
}
|
||||
}
|
||||
}
|
||||
} catch (CModelException e) {
|
||||
|
|
Loading…
Add table
Reference in a new issue