コード例 #1
0
 @Inject
 protected void setImages(PluginImageHelper imageHelper) {
   setImageDescriptor(
       ImageDescriptor.createFromImage(imageHelper.getImage("elcl16/arrangeall.gif")));
   setDisabledImageDescriptor(
       ImageDescriptor.createFromImage(imageHelper.getImage("dlcl16/arrangeall.gif")));
 }
コード例 #2
0
 @Override
 public Image getColumnImage(Object element, int columnIndex) {
   DirectoryPath path = (DirectoryPath) element;
   String imageName = (path.isWorkspacePath()) ? "workspace.gif" : "folder.gif";
   return imageHelper.getImage(imageName);
 }