/*
* Created on 16.04.2004
*
* To change the template for this generated file go to
* Window>Preferences>Java>Code Generation>Code and Comments
*/
package org.jboss.tools.jsf.ui;
import java.net.MalformedURLException;
import java.net.URL;
import org.eclipse.jface.resource.ImageDescriptor;
import org.jboss.tools.common.model.ui.ModelUIImages;
/**
* @author Eskimo
*
*/
public class JsfUiImages extends ModelUIImages {
public static String JSF_IMPORT_PROJECT_ACTION = "wizards/import_jsf_project.gif"; //$NON-NLS-1$
public static String JSF_CREATE_PROJECT_ACTION = "wizards/new_jsf_project.gif"; //$NON-NLS-1$
public static String JSF_PROJECT_WIZARD = "wizards/JSFProjectWizBan.png"; //$NON-NLS-1$
public static String IMPORT_JSF_PROJECT_WIZARD = "wizards/ImportJSFProjectWizBan.png"; //$NON-NLS-1$
public static String FACES_CONFIG_WIZARD = "wizards/FacesConfigWizBan.png"; //$NON-NLS-1$
private static JsfUiImages INSTANCE;
static {
try {
if(JsfUiPlugin.isDebugEnabled()) {
JsfUiPlugin.getPluginLog().logError("Trying activate plugin images."); //$NON-NLS-1$
}
INSTANCE =
new JsfUiImages(
new URL(JsfUiPlugin.getDefault().getBundle().getEntry("/"), "images/xstudio/"), //$NON-NLS-1$ //$NON-NLS-2$
ModelUIImages.getInstance()
);
} catch (MalformedURLException e) {
JsfUiPlugin.getPluginLog().logError(e);
}
}
public static ImageDescriptor getImageDescriptor(String key) {
return INSTANCE.getOrCreateImageDescriptor(key);
}
/**
* @param registryUrl
* @param parent
*/
public JsfUiImages(URL registryUrl, ModelUIImages parent) {
super(registryUrl, parent);
if(JsfUiPlugin.isDebugEnabled()) {
JsfUiPlugin.getPluginLog().logInfo("Create JsfUiImages class."); //$NON-NLS-1$
JsfUiPlugin.getPluginLog().logInfo("RegistryUrl = " + registryUrl); //$NON-NLS-1$
JsfUiPlugin.getPluginLog().logInfo("parent = " + parent.getClass().getName()); //$NON-NLS-1$
}
}
}