1
0
Fork 0
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:
John Dallaway 2023-09-24 17:37:47 +01:00
parent 54568402dc
commit 5c73848e2a

View file

@ -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) {