Skip to content

Commit

Permalink
Using eclipse icons instead
Browse files Browse the repository at this point in the history
  • Loading branch information
samuell committed Jul 15, 2013
1 parent f47132f commit f7a77e8
Show file tree
Hide file tree
Showing 10 changed files with 22 additions and 13 deletions.
6 changes: 4 additions & 2 deletions plugins/net.bioclipse.hpc/plugin.xml
Expand Up @@ -18,12 +18,14 @@
<view
class="net.bioclipse.hpc.views.projinfo.ProjInfoView"
id="net.bioclipse.hpc.views.ProjInfoView"
name="Project Info">
name="Project Info"
icon="src/net/bioclipse/hpc/images/group.gif">
</view>
<view
class="net.bioclipse.hpc.views.jobinfo.JobInfoView"
id="net.bioclipse.hpc.views.JobInfoView"
name="JobInfo">
name="JobInfo"
icon="src/net/bioclipse/hpc/images/jobs.gif">
</view>
</extension>

Expand Down
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Expand Up @@ -38,9 +38,10 @@ public class JobInfoLabelProvider implements ITableLabelProvider {
"# Nodes",
"Node list");
private HashMap<Integer,String> jobColumnLabelMap = new HashMap<Integer, String>();
private Image clockImg;
private Image cogImg;
private Image playImg;
private Image jobsPendingImg;
private Image jobPendningImg;
private Image jobsRunningImg;
private Image jobRunningImg;
private static final Logger logger = LoggerFactory.getLogger(ProjInfoView.class);

public JobInfoLabelProvider() {
Expand All @@ -51,9 +52,11 @@ public JobInfoLabelProvider() {

logger.info("Abs path: " + new File(".").getAbsolutePath());

clockImg = new Image(null, ImageRetriever.class.getResourceAsStream("clock2.png"));
cogImg = new Image(null, ImageRetriever.class.getResourceAsStream("cog.png"));
playImg = new Image(null, ImageRetriever.class.getResourceAsStream("control_play.png"));
jobsPendingImg = new Image(null, ImageRetriever.class.getResourceAsStream("jobs_pending.gif"));
jobPendningImg = new Image(null, ImageRetriever.class.getResourceAsStream("job_pending.gif"));

jobsRunningImg = new Image(null, ImageRetriever.class.getResourceAsStream("jobs_running.gif"));
jobRunningImg = new Image(null, ImageRetriever.class.getResourceAsStream("job_running.gif"));
}

/* (non-Javadoc)
Expand Down Expand Up @@ -103,12 +106,16 @@ public Image getColumnImage(Object element, int columnIndex) {
if (columnIndex == 0) {
if (element instanceof JobState) {
if (((JobState) element).getJobState().equals(JobState.STATE_RUNNING)) {
return playImg;
return jobsRunningImg;
} else if (((JobState) element).getJobState().equals(JobState.STATE_PENDING)) {
return clockImg;
return jobsPendingImg;
}
} else if (element instanceof Job) {
return cogImg;
if (((Job) element).getState().equals(JobState.STATE_PENDING)) {
return jobPendningImg;
} else if (((Job) element).getState().equals(JobState.STATE_RUNNING)) {
return jobRunningImg;
}
}
}
return null;
Expand Down
Expand Up @@ -22,8 +22,8 @@ class ProjInfoLabelProvider implements ITableLabelProvider {

// Constructs a PlayerLabelProvider
public ProjInfoLabelProvider() {
groupImg = new Image(null, ImageRetriever.class.getResourceAsStream("group.png"));
userImg = new Image(null, ImageRetriever.class.getResourceAsStream("user.png"));
groupImg = new Image(null, ImageRetriever.class.getResourceAsStream("group.gif"));
userImg = new Image(null, ImageRetriever.class.getResourceAsStream("person.gif"));
}

/**
Expand Down

0 comments on commit f7a77e8

Please sign in to comment.