IconManager.java
Go to the documentation of this file.00001 package edu.rice.cs.hpc.traceviewer.icon;
00002
00003 import org.eclipse.jface.resource.ImageDescriptor;
00004 import org.eclipse.jface.resource.ImageRegistry;
00005
00006 import edu.rice.cs.hpc.common.ui.BaseIconManager;
00007
00008 public class IconManager extends BaseIconManager
00009 {
00010
00011 final static public String HOME = "home-screen.png";
00012 final static public String ZOOM_IN_H = "zoom-in-time.png";
00013 final static public String ZOOM_IN_V = "zoom-in-process.png";
00014 final static public String ZOOM_OUT_H = "zoom-out-time.png";
00015 final static public String ZOOM_OUT_V = "zoom-out-process.png";
00016 final static public String GO_EAST = "go-east.png";
00017 final static public String GO_WEST = "go-west.png";
00018 final static public String GO_NORTH = "go-north.png";
00019 final static public String GO_SOUTH = "go-south.png";
00020 final static public String UNDO = "undo.png";
00021 final static public String REDO = "redo.png";
00022 final static public String SAVE = "save.png";
00023 final static public String OPEN = "open.png";
00024
00025
00026 public void init(ImageRegistry registry)
00027 {
00028 registerImage(registry, getClass(), HOME);
00029 registerImage(registry, getClass(), ZOOM_IN_H);
00030 registerImage(registry, getClass(), ZOOM_IN_V);
00031 registerImage(registry, getClass(), ZOOM_OUT_H);
00032 registerImage(registry, getClass(), ZOOM_OUT_V);
00033 registerImage(registry, getClass(), GO_EAST);
00034 registerImage(registry, getClass(), GO_WEST);
00035 registerImage(registry, getClass(), GO_NORTH);
00036 registerImage(registry, getClass(), GO_SOUTH);
00037 registerImage(registry, getClass(), UNDO);
00038 registerImage(registry, getClass(), REDO);
00039 registerImage(registry, getClass(), SAVE);
00040 registerImage(registry, getClass(), OPEN);
00041 }
00042
00043 public ImageDescriptor getObjectDescriptor(String title)
00044 {
00045 return ImageDescriptor.createFromFile(getClass(), title);
00046 }
00047 }