Search in sources :

Example 46 with ImageRegistry

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

the class HttpUIPlugin method createImageRegistry.

protected ImageRegistry createImageRegistry() {
    ImageRegistry registry = new ImageRegistry();
    registerImage(registry, IMG_WIZ_SERVER, URL_WIZBAN + "server_wiz.gif");
    return registry;
}
Also used : ImageRegistry(org.eclipse.jface.resource.ImageRegistry)

Example 47 with ImageRegistry

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

the class MonitorUIPlugin method createImageRegistry.

/**
 * Creates and pre-loads the image registry.
 *
 * @return ImageRegistry
 */
protected ImageRegistry createImageRegistry() {
    ImageRegistry registry = super.createImageRegistry();
    registerImage(registry, IMG_REQUEST_RESPONSE, URL_OBJ + "tcp.gif");
    registerImage(registry, IMG_RESEND_REQUEST_RESPONSE, URL_ELCL + "resendRequest.gif");
    registerImage(registry, IMG_HOST, URL_OBJ + "host.gif");
    registerImage(registry, IMG_MONITOR_ON, URL_OBJ + "monitorOn.gif");
    registerImage(registry, IMG_MONITOR_OFF, URL_OBJ + "monitorOff.gif");
    registerImage(registry, IMG_CLCL_CLEAR, URL_CLCL + "clear.gif");
    registerImage(registry, IMG_CLCL_SORT_RESPONSE_TIME, URL_CLCL + "sortResponseTime.gif");
    registerImage(registry, IMG_CLCL_HTTP_HEADER, URL_CLCL + "httpHeader.gif");
    registerImage(registry, IMG_CLCL_PIN, URL_CLCL + "pin.gif");
    registerImage(registry, IMG_ELCL_CLEAR, URL_ELCL + "clear.gif");
    registerImage(registry, IMG_ELCL_SORT_RESPONSE_TIME, URL_ELCL + "sortResponseTime.gif");
    registerImage(registry, IMG_ELCL_HTTP_HEADER, URL_ELCL + "httpHeader.gif");
    registerImage(registry, IMG_ELCL_PIN, URL_ELCL + "pin.gif");
    registerImage(registry, IMG_DLCL_CLEAR, URL_DLCL + "clear.gif");
    registerImage(registry, IMG_DLCL_SORT_RESPONSE_TIME, URL_DLCL + "sortResponseTime.gif");
    registerImage(registry, IMG_DLCL_HTTP_HEADER, URL_DLCL + "httpHeader.gif");
    registerImage(registry, IMG_DLCL_PIN, URL_DLCL + "pin.gif");
    return registry;
}
Also used : ImageRegistry(org.eclipse.jface.resource.ImageRegistry)

Example 48 with ImageRegistry

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

the class ImageResource method initializeImageRegistry.

/**
 * Initialize the image resources.
 */
protected static void initializeImageRegistry() {
    imageRegistry = new ImageRegistry();
    imageDescriptors = new HashMap<String, ImageDescriptor>();
    // wizard banners
    registerImage(IMG_WIZBAN_NEW_SERVER, URL_WIZBAN + "new_server_wiz.png");
    registerImage(IMG_WIZBAN_IMPORT_SERVER_CONFIGURATION, URL_WIZBAN + "import_configuration_wiz.png");
    registerImage(IMG_WIZBAN_SELECT_SERVER_CLIENT, URL_WIZBAN + "select_client_wiz.png");
    registerImage(IMG_WIZBAN_SELECT_SERVER, URL_WIZBAN + "select_server_wiz.png");
    // client images
    registerImage(IMG_ETOOL_RUN_ON_SERVER, URL_ETOOL + "run_on_server.gif");
    registerImage(IMG_ETOOL_DEBUG_ON_SERVER, URL_ETOOL + "debug_on_server.gif");
    registerImage(IMG_ETOOL_PROFILE_ON_SERVER, URL_ETOOL + "profile_on_server.gif");
    registerImage(IMG_ETOOL_MODIFY_MODULES, URL_ETOOL + "wiz_modify_modules.gif");
    registerImage(IMG_ETOOL_RESET_DEFAULT, URL_ETOOL + "clear.gif");
    registerImage(IMG_CTOOL_RUN_ON_SERVER, URL_CTOOL + "run_on_server.gif");
    registerImage(IMG_CTOOL_DEBUG_ON_SERVER, URL_CTOOL + "debug_on_server.gif");
    registerImage(IMG_CTOOL_PROFILE_ON_SERVER, URL_CTOOL + "profile_on_server.gif");
    registerImage(IMG_CTOOL_NEW_SERVER, URL_CTOOL + "wiz_new_server.gif");
    registerImage(IMG_CTOOL_NEW_SERVER_INSTANCE, URL_CTOOL + "wiz_new_instance.gif");
    registerImage(IMG_CTOOL_MODIFY_MODULES, URL_CTOOL + "wiz_modify_modules.gif");
    registerImage(IMG_DTOOL_RUN_ON_SERVER, URL_DTOOL + "run_on_server.gif");
    registerImage(IMG_DTOOL_DEBUG_ON_SERVER, URL_DTOOL + "debug_on_server.gif");
    registerImage(IMG_DTOOL_PROFILE_ON_SERVER, URL_DTOOL + "profile_on_server.gif");
    registerImage(IMG_DTOOL_MODIFY_MODULES, URL_DTOOL + "wiz_modify_modules.gif");
    registerImage(IMG_DTOOL_RESET_DEFAULT, URL_DTOOL + "clear.gif");
    // load server state images no overlay, still used in the Run On Server
    registerImage(IMG_SERVER_STATE_STARTED, URL_OBJ + "server_started.gif");
    registerImage(IMG_SERVER_STATE_STARTED_DEBUG, URL_OBJ + "server_started_debug.gif");
    registerImage(IMG_SERVER_STATE_STARTED_PROFILE, URL_OBJ + "server_started_profile.gif");
    registerImage(IMG_SERVER_STATE_STOPPED, URL_OBJ + "server_stopped.gif");
    registerImage(IMG_STATE_STARTED, URL_OBJ + "state_started.gif");
    registerImage(IMG_STATE_STOPPED, URL_OBJ + "state_stopped.gif");
    registerImage(IMG_SERVER_STATE_STARTING_1, URL_OBJ + "server_starting1.gif");
    registerImage(IMG_SERVER_STATE_STARTING_2, URL_OBJ + "server_starting2.gif");
    registerImage(IMG_SERVER_STATE_STARTING_3, URL_OBJ + "server_starting3.gif");
    registerImage(IMG_SERVER_STATE_STOPPING_1, URL_OBJ + "server_stopping1.gif");
    registerImage(IMG_SERVER_STATE_STOPPING_2, URL_OBJ + "server_stopping2.gif");
    registerImage(IMG_SERVER_STATE_STOPPING_3, URL_OBJ + "server_stopping3.gif");
    // load server state images overlay
    registerImage(IMG_SERVER_STATE_STARTED_OVERLAY, URL_OVR + "server_started_ovr.gif");
    registerImage(IMG_SERVER_STATE_STARTED_DEBUG_OVERLAY, URL_OVR + "server_started_debug_ovr.gif");
    registerImage(IMG_SERVER_STATE_STARTED_PROFILE_OVERLAY, URL_OVR + "server_started_profile_ovr.gif");
    registerImage(IMG_SERVER_STATE_STOPPED_OVERLAY, URL_OVR + "server_stopped_ovr.gif");
    registerImage(IMG_SERVER_STATE_STARTING_1_OVERLAY, URL_OVR + "server_starting1_ovr.gif");
    registerImage(IMG_SERVER_STATE_STARTING_2_OVERLAY, URL_OVR + "server_starting2_ovr.gif");
    registerImage(IMG_SERVER_STATE_STARTING_3_OVERLAY, URL_OVR + "server_starting3_ovr.gif");
    registerImage(IMG_SERVER_STATE_STOPPING_1_OVERLAY, URL_OVR + "server_stopping1_ovr.gif");
    registerImage(IMG_SERVER_STATE_STOPPING_2_OVERLAY, URL_OVR + "server_stopping2_ovr.gif");
    registerImage(IMG_SERVER_STATE_STOPPING_3_OVERLAY, URL_OVR + "server_stopping3_ovr.gif");
    // load action images
    registerImage(IMG_ELCL_PUBLISH, URL_ELCL + "launch_publish.gif");
    registerImage(IMG_ELCL_START, URL_ELCL + "launch_run.gif");
    registerImage(IMG_ELCL_START_DEBUG, URL_ELCL + "launch_debug.gif");
    registerImage(IMG_ELCL_START_PROFILE, URL_ELCL + "launch_profile.gif");
    registerImage(IMG_ELCL_STOP, URL_ELCL + "launch_stop.gif");
    registerImage(IMG_ELCL_DISCONNECT, URL_ELCL + "launch_disconnect.gif");
    registerImage(IMG_ELCL_RESTART, URL_ELCL + "launch_restart.gif");
    registerImage(IMG_CLCL_PUBLISH, URL_CLCL + "launch_publish.gif");
    registerImage(IMG_CLCL_START, URL_CLCL + "launch_run.gif");
    registerImage(IMG_CLCL_START_DEBUG, URL_CLCL + "launch_debug.gif");
    registerImage(IMG_CLCL_START_PROFILE, URL_CLCL + "launch_profile.gif");
    registerImage(IMG_CLCL_STOP, URL_CLCL + "launch_stop.gif");
    registerImage(IMG_CLCL_DISCONNECT, URL_CLCL + "launch_disconnect.gif");
    registerImage(IMG_CLCL_RESTART, URL_CLCL + "launch_restart.gif");
    registerImage(IMG_DLCL_PUBLISH, URL_DLCL + "launch_publish.gif");
    registerImage(IMG_DLCL_START, URL_DLCL + "launch_run.gif");
    registerImage(IMG_DLCL_START_DEBUG, URL_DLCL + "launch_debug.gif");
    registerImage(IMG_DLCL_START_PROFILE, URL_DLCL + "launch_profile.gif");
    registerImage(IMG_DLCL_STOP, URL_DLCL + "launch_stop.gif");
    registerImage(IMG_DLCL_DISCONNECT, URL_DLCL + "launch_disconnect.gif");
    registerImage(IMG_DLCL_RESTART, URL_DLCL + "launch_restart.gif");
    // load general object images
    registerImage(IMG_SERVER, URL_OBJ + "server.gif");
    registerImage(IMG_SERVER_CONFIGURATION_NONE, URL_OBJ + "configuration_none.gif");
    registerImage(IMG_SERVER_CONFIGURATION_MISSING, URL_OBJ + "configuration_missing.gif");
    registerImage(IMG_PROJECT_MISSING, URL_OBJ + "project_missing.gif");
    registerImage(IMG_REPAIR_CONFIGURATION, URL_OBJ + "repair_config.gif");
    registerImage(IMG_PUBLISH_ENABLED, URL_OBJ + "publish_enabled.gif");
    registerImage(IMG_PUBLISH_DISABLED, URL_OBJ + "publish_disabled.gif");
    registerImage(IMG_MONITOR_ON, URL_OBJ + "monitorOn.gif");
    registerImage(IMG_MONITOR_OFF, URL_OBJ + "monitorOff.gif");
    registerImage(IMG_DEFAULT_SERVER_OVERLAY, URL_OVR + "default_server_ovr.gif");
    // audio images
    registerImage(IMG_AUDIO_SOUND, URL_OBJ + "audio_sound.gif");
    registerImage(IMG_AUDIO_CATEGORY, URL_OBJ + "audio_category.gif");
    registerImage(IMG_DOWN_ARROW, URL_OBJ + "down_arrow.gif");
    loadServerImages();
    PlatformUI.getWorkbench().getProgressService().registerIconForFamily(getImageDescriptor(IMG_SERVER), ServerUtil.SERVER_JOB_FAMILY);
}
Also used : ImageRegistry(org.eclipse.jface.resource.ImageRegistry) ImageDescriptor(org.eclipse.jface.resource.ImageDescriptor)

Example 49 with ImageRegistry

use of org.eclipse.jface.resource.ImageRegistry in project epp.mpc by eclipse.

the class CatalogToolTip method createIcon.

private void createIcon(Composite parent) {
    image = label.getImage();
    if (image == null) {
        ImageRegistry registry = MarketplaceClientUiPlugin.getInstance().getImageRegistry();
        image = registry.get(MarketplaceClientUiPlugin.NO_ICON_PROVIDED_CATALOG);
    }
    Label iconLabel = new Label(parent, SWT.NULL);
    iconLabel.setImage(image);
    iconLabel.setBackground(null);
    GridDataFactory.swtDefaults().align(SWT.CENTER, SWT.BEGINNING).span(1, 2).applyTo(iconLabel);
}
Also used : ImageRegistry(org.eclipse.jface.resource.ImageRegistry) Label(org.eclipse.swt.widgets.Label)

Example 50 with ImageRegistry

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

the class TomcatUIPlugin method createImageRegistry.

protected ImageRegistry createImageRegistry() {
    ImageRegistry registry = new ImageRegistry();
    registerImage(registry, IMG_WIZ_TOMCAT, URL_WIZBAN + "tomcat_wiz.png");
    registerImage(registry, IMG_WEB_MODULE, URL_OBJ + "web_module.gif");
    registerImage(registry, IMG_MIME_MAPPING, URL_OBJ + "mime_mapping.gif");
    registerImage(registry, IMG_MIME_EXTENSION, URL_OBJ + "mime_extension.gif");
    registerImage(registry, IMG_PORT, URL_OBJ + "port.gif");
    registerImage(registry, IMG_PROJECT_MISSING, URL_OBJ + "project_missing.gif");
    return registry;
}
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