Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Import Project/Dataset icon (See #9774) #438

Merged
merged 1 commit into from
Oct 29, 2012
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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