Skip to content

Commit

Permalink
Merge pull request #438 from bpindelski/icon_fix_develop
Browse files Browse the repository at this point in the history
Fix Import Project/Dataset icon (See #9774)
  • Loading branch information
jburel committed Oct 29, 2012
2 parents 8cc2e98 + d7cc39f commit 5349e23
Showing 1 changed file with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,18 +58,19 @@ public class FileTableRenderer
/** Reference to the <code>File</code> icon. */
private static final Icon FILE_ICON;

/** Reference to the <code>Project</code> icon. */
private static final Icon PROJECT_ICON;

/** Reference to the <code>Project</code> icon. */
/** Reference to the <code>Screen</code> icon. */
private static final Icon SCREEN_ICON;

/** Reference to the <code>Dataset</code> icon. */
private static final Icon DATASET_ICON;


static {
IconManager icons = IconManager.getInstance();
DIRECTORY_ICON = icons.getIcon(IconManager.DIRECTORY);
FILE_ICON = icons.getIcon(IconManager.IMAGE);
PROJECT_ICON = icons.getIcon(IconManager.PROJECT);
SCREEN_ICON = icons.getIcon(IconManager.SCREEN);
DATASET_ICON = icons.getIcon(IconManager.DATASET);
}

/** Creates a default instance. */
Expand Down Expand Up @@ -104,7 +105,7 @@ public Component getTableCellRendererComponent(JTable table, Object value,
Boolean b = n.isHCSContainer();
if (b != null) {
if (b.booleanValue()) setIcon(SCREEN_ICON);
else setIcon(PROJECT_ICON);
else setIcon(DATASET_ICON);
}
}
return this;
Expand Down

0 comments on commit 5349e23

Please sign in to comment.