Search in sources :

Example 51 with ImageRegistry

use of org.eclipse.jface.resource.ImageRegistry in project webtools.servertools by eclipse.

the class GenericUiPlugin method createImageRegistry.

protected ImageRegistry createImageRegistry() {
    ImageRegistry registry = new ImageRegistry();
    // $NON-NLS-1$
    ImageDescriptor desc = ImageDescriptor.createFromURL(getDefault().getBundle().getEntry("/icons/wizban/new_server_wiz.png"));
    registry.put(WIZBAN_IMAGE, desc);
    return registry;
}
Also used : ImageRegistry(org.eclipse.jface.resource.ImageRegistry) ImageDescriptor(org.eclipse.jface.resource.ImageDescriptor)

Example 52 with ImageRegistry

use of org.eclipse.jface.resource.ImageRegistry in project liferay-ide by liferay.

the class KaleoImages method _create.

private static ImageDescriptor _create(String key) {
    try {
        ImageDescriptor imageDescriptor = _createDescriptor(key);
        ImageRegistry imageRegistry = _getImageRegistry();
        if (imageRegistry != null) {
            imageRegistry.put(key, imageDescriptor);
        }
        return imageDescriptor;
    } catch (Exception ex) {
        KaleoUI.logError(ex);
        return null;
    }
}
Also used : ImageRegistry(org.eclipse.jface.resource.ImageRegistry) ImageDescriptor(org.eclipse.jface.resource.ImageDescriptor)

Example 53 with ImageRegistry

use of org.eclipse.jface.resource.ImageRegistry in project liferay-ide by liferay.

the class KaleoImages method _createImage.

private static Image _createImage(String key) {
    _create(key);
    ImageRegistry imageRegistry = _getImageRegistry();
    if (imageRegistry == null) {
        return null;
    }
    return imageRegistry.get(key);
}
Also used : ImageRegistry(org.eclipse.jface.resource.ImageRegistry)

Example 54 with ImageRegistry

use of org.eclipse.jface.resource.ImageRegistry in project liferay-ide by liferay.

the class BundlesImages method create.

private static ImageDescriptor create(String key) {
    try {
        ImageDescriptor imageDescriptor = createDescriptor(key);
        ImageRegistry imageRegistry = getImageRegistry();
        if (imageRegistry != null) {
            imageRegistry.put(key, imageDescriptor);
        }
        return imageDescriptor;
    } catch (Exception ex) {
        LiferayServerUI.logError(ex);
        return null;
    }
}
Also used : ImageRegistry(org.eclipse.jface.resource.ImageRegistry) ImageDescriptor(org.eclipse.jface.resource.ImageDescriptor)

Example 55 with ImageRegistry

use of org.eclipse.jface.resource.ImageRegistry in project liferay-ide by liferay.

the class BundlesImages method createImage.

private static Image createImage(String key) {
    create(key);
    ImageRegistry imageRegistry = getImageRegistry();
    return imageRegistry == null ? null : imageRegistry.get(key);
}
Also used : ImageRegistry(org.eclipse.jface.resource.ImageRegistry)

Aggregations

ImageRegistry (org.eclipse.jface.resource.ImageRegistry)63 ImageDescriptor (org.eclipse.jface.resource.ImageDescriptor)25 Image (org.eclipse.swt.graphics.Image)22 URL (java.net.URL)4 ResourceBundle (java.util.ResourceBundle)4 Before (org.junit.Before)4 CoreRuntimePlugin (org.talend.core.runtime.CoreRuntimePlugin)4 CompositeMultiImageDescriptor (com.archimatetool.editor.ui.components.CompositeMultiImageDescriptor)3 ResourceImageDescriptor (de.jaret.util.ui.ResourceImageDescriptor)3 CompositeImageDescriptor (org.eclipse.jface.resource.CompositeImageDescriptor)3 Label (org.eclipse.swt.widgets.Label)3 RepositoryContext (org.talend.core.context.RepositoryContext)3 Project (org.talend.core.model.general.Project)3 User (org.talend.core.model.properties.User)3 IRepositoryFactory (org.talend.core.repository.model.IRepositoryFactory)3 ProxyRepositoryFactory (org.talend.core.repository.model.ProxyRepositoryFactory)3 XmiResourceManager (org.talend.core.repository.utils.XmiResourceManager)3 IRepositoryNodeConfiguration (org.talend.mdm.repository.core.IRepositoryNodeConfiguration)3 IRepositoryNodeResourceProvider (org.talend.mdm.repository.core.IRepositoryNodeResourceProvider)3 RecycleBinNodeConfiguration (org.talend.mdm.repository.core.impl.recyclebin.RecycleBinNodeConfiguration)3