Add icon for Cd override
This commit is contained in:
parent
989301e734
commit
5927bcc74f
BIN
core/resources/pix/icons/cd-override.png
Normal file
BIN
core/resources/pix/icons/cd-override.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 5.9 KiB |
@ -49,7 +49,7 @@ public class ComponentTreeRenderer extends DefaultTreeCellRenderer {
|
|||||||
} else {
|
} else {
|
||||||
setIcon(ComponentIcons.getSmallIcon(value.getClass()));
|
setIcon(ComponentIcons.getSmallIcon(value.getClass()));
|
||||||
}
|
}
|
||||||
if (c.isMassOverridden() || c.isCGOverridden()) {
|
if (c.isMassOverridden() || c.isCGOverridden() || c.isCDOverridden()) {
|
||||||
JPanel p = new JPanel();
|
JPanel p = new JPanel();
|
||||||
p.setLayout(new FlowLayout(FlowLayout.LEFT, 1, 1));
|
p.setLayout(new FlowLayout(FlowLayout.LEFT, 1, 1));
|
||||||
p.setBackground(UIManager.getColor("Tree.textBackground"));
|
p.setBackground(UIManager.getColor("Tree.textBackground"));
|
||||||
@ -61,6 +61,10 @@ public class ComponentTreeRenderer extends DefaultTreeCellRenderer {
|
|||||||
if (c.isCGOverridden()) {
|
if (c.isCGOverridden()) {
|
||||||
p.add(new JLabel(Icons.CG_OVERRIDE));
|
p.add(new JLabel(Icons.CG_OVERRIDE));
|
||||||
}
|
}
|
||||||
|
if (c.isCDOverridden()) {
|
||||||
|
p.add(new JLabel(Icons.CD_OVERRIDE));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
if (components != null && components.size() > 1 && components.contains(c)) {
|
if (components != null && components.size() > 1 && components.contains(c)) {
|
||||||
p.setToolTipText(getToolTipMultipleComponents(components));
|
p.setToolTipText(getToolTipMultipleComponents(components));
|
||||||
|
@ -94,6 +94,7 @@ public class Icons {
|
|||||||
public static final Icon FAVORITE = loadImageIcon("pix/icons/star_gold.png", "Favorite");
|
public static final Icon FAVORITE = loadImageIcon("pix/icons/star_gold.png", "Favorite");
|
||||||
|
|
||||||
public static final Icon CG_OVERRIDE = loadImageIcon("pix/icons/cg-override.png", "CG Override");
|
public static final Icon CG_OVERRIDE = loadImageIcon("pix/icons/cg-override.png", "CG Override");
|
||||||
|
public static final Icon CD_OVERRIDE = loadImageIcon("pix/icons/cd-override.png", "CD Override");
|
||||||
public static final Icon MASS_OVERRIDE = loadImageIcon("pix/icons/mass-override.png", "Mass Override");
|
public static final Icon MASS_OVERRIDE = loadImageIcon("pix/icons/mass-override.png", "Mass Override");
|
||||||
|
|
||||||
// MANUFACTURERS ICONS
|
// MANUFACTURERS ICONS
|
||||||
|
Loading…
x
Reference in New Issue
Block a user