package org.codefaces.ui.internal;
import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.swt.graphics.Image;
/**
* Ref: http://xantorohara.110mb.com/core-icons/Eclipse-16x16.html
*
* @author kklo
*
*/
public class Images {
private Images() {
}
/**
* Here are the image stored in the image registry. These images will never be disposed.
*/
public static final String IMG_BRANCHES = "IMG_BRANCHES";
public static final String IMG_ERRORS = "IMG_ERRORS";
public static final String IMG_REPOSITORY = "IMG_REPOSITORY";
public static final String IMG_REPO_FOLDER_ROOT = "IMG_REPO_FOLDER_ROOT";
public static final String IMG_NAVIGATOR = "IMG_NAVIGATOR";
public static final String IMG_WELCOME = "IMG_WELCOME";
public static final String IMG_CONNECTION = "IMG_CONNECTION";
public static final String IMG_FAVICON_48 = "IMG_FAVICON_48";
public static ImageDescriptor getImageDescriptorFromRegistry(String imageId) {
return CodeFacesUIActivator.getDefault().getImageRegistry()
.getDescriptor(imageId);
}
public static Image getImageFromRegistry(String imageId) {
return CodeFacesUIActivator.getDefault().getImageRegistry()
.get(imageId);
}
}