mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 22:52:11 +02:00
bug 298540: The overlay icon for custom resource settings is misleading
This commit is contained in:
parent
6386479b1a
commit
790a689a5c
4 changed files with 18 additions and 8 deletions
BIN
core/org.eclipse.cdt.ui/icons/ovr16/setting_nav.gif
Normal file
BIN
core/org.eclipse.cdt.ui/icons/ovr16/setting_nav.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 151 B |
|
@ -287,7 +287,8 @@ public class CPluginImages {
|
|||
public static final ImageDescriptor DESC_OVR_READ_WRITE_ACCESS= create(T_OVR, "readwrite.gif"); //$NON-NLS-1$
|
||||
public static final ImageDescriptor DESC_OVR_WRITE_ACCESS= create(T_OVR, "write.gif"); //$NON-NLS-1$
|
||||
public static final ImageDescriptor DESC_OVR_EXTERNAL_FILE= create(T_OVR, "external_file.gif"); //$NON-NLS-1$
|
||||
|
||||
public static final ImageDescriptor DESC_OVR_SETTING= create(T_OVR, "setting_nav.gif"); //$NON-NLS-1$
|
||||
|
||||
public static final ImageDescriptor DESC_OVR_WARNING= create(T_OVR, "warning_co.gif"); //$NON-NLS-1$
|
||||
public static final ImageDescriptor DESC_OVR_ERROR= create(T_OVR, "error_co.gif"); //$NON-NLS-1$
|
||||
|
||||
|
|
|
@ -92,7 +92,7 @@ public class ProblemsLabelDecorator implements ILabelDecorator, ILightweightLabe
|
|||
|
||||
private static final int ERRORTICK_WARNING= CElementImageDescriptor.WARNING;
|
||||
private static final int ERRORTICK_ERROR= CElementImageDescriptor.ERROR;
|
||||
private static final int TICK_CONFIGURATION = CElementImageDescriptor.SYSTEM_INCLUDE;
|
||||
private static final int TICK_CONFIGURATION = CElementImageDescriptor.SETTINGS;
|
||||
|
||||
private ImageDescriptorRegistry fRegistry;
|
||||
private boolean fUseNewRegistry= false;
|
||||
|
@ -360,7 +360,7 @@ public class ProblemsLabelDecorator implements ILabelDecorator, ILightweightLabe
|
|||
int adornmentFlags= computeAdornmentFlags(element);
|
||||
|
||||
if ((adornmentFlags & TICK_CONFIGURATION) != 0) {
|
||||
decoration.addOverlay(CPluginImages.DESC_OVR_SYSTEM_INCLUDE);
|
||||
decoration.addOverlay(CPluginImages.DESC_OVR_SETTING);
|
||||
adornmentFlags &= ~TICK_CONFIGURATION;
|
||||
}
|
||||
|
||||
|
|
|
@ -104,6 +104,10 @@ public class CElementImageDescriptor extends CompositeImageDescriptor {
|
|||
/** Flag to render the 'external file' adornment for translation units */
|
||||
public static final int EXTERNAL_FILE = 0x40000;
|
||||
|
||||
/** Flag to render the 'custom settings' adornment
|
||||
* @since 5.2 */
|
||||
public final static int SETTINGS= 0x80000;
|
||||
|
||||
private ImageDescriptor fBaseImage;
|
||||
private int fFlags;
|
||||
private Point fSize;
|
||||
|
@ -234,11 +238,16 @@ public class CElementImageDescriptor extends CompositeImageDescriptor {
|
|||
x-= data.width;
|
||||
drawImage(data, x, 0);
|
||||
}
|
||||
if ((fFlags & SYSTEM_INCLUDE) != 0) {
|
||||
data= CPluginImages.DESC_OVR_SYSTEM_INCLUDE.getImageData();
|
||||
x-= data.width;
|
||||
drawImage(data, x, 0);
|
||||
}
|
||||
if ((fFlags & SYSTEM_INCLUDE) != 0) {
|
||||
data = CPluginImages.DESC_OVR_SYSTEM_INCLUDE.getImageData();
|
||||
x -= data.width;
|
||||
drawImage(data, x, 0);
|
||||
}
|
||||
if ((fFlags & SETTINGS) != 0) {
|
||||
data = CPluginImages.DESC_OVR_SETTING.getImageData();
|
||||
x -= data.width;
|
||||
drawImage(data, x, 0);
|
||||
}
|
||||
}
|
||||
|
||||
private void drawBottomRight() {
|
||||
|
|
Loading…
Add table
Reference in a new issue