blob: ea9023c06361eebe2bc5e7ae4faed4ead91a1e7f [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2007, 2018 Borland Software Corporation and others.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v2.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v20.html
*
* Contributors:
* Borland Software Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.m2m.internal.qvt.oml.common.ui;
import java.net.URL;
public class CommonPluginImages extends PluginImages {
private CommonPluginImages() {
super(BASE_URL);
declareImages();
}
public static final String WARNING_CO = "warning-co"; //$NON-NLS-1$
public static final String ERROR_CO = "error-co"; //$NON-NLS-1$
public static final String REGISTRY = "registry"; //$NON-NLS-1$
public static final String TRANSFORMATION = "pr-Model_to_model"; //$NON-NLS-1$
public static final String COMPILED_TRANSFORMATION = "qvt_compiled_trabsformation"; //$NON-NLS-1$
public static final String METAMODELS = "metamodels"; //$NON-NLS-1$
public static final String METAMODEL_FILE = "metamodelfile"; //$NON-NLS-1$
public static final String COLLAPSE_ALL = "collapseall"; //$NON-NLS-1$
public static final String SHOW_INHERITED_FEATURES = "showinherf"; //$NON-NLS-1$
public static final String SHOW_FULL_QUALIFIED_NAMES = "showfullq"; //$NON-NLS-1$
public static final String OPEN_CLASSIFIER = "opentype"; //$NON-NLS-1$
public static final String ACTIVITY = "activity"; //$NON-NLS-1$
public static CommonPluginImages getInstance() {
return ourInstance;
}
@Override
protected void declareImages() {
declareRegistryImage(WARNING_CO, "icons/warning-co.gif"); //$NON-NLS-1$
declareRegistryImage(ERROR_CO, "icons/error-co.gif"); //$NON-NLS-1$
declareRegistryImage(REGISTRY, "icons/registry.gif"); //$NON-NLS-1$
declareRegistryImage(TRANSFORMATION, "icons/pr-Model_to_model.gif"); //$NON-NLS-1$
declareRegistryImage(COMPILED_TRANSFORMATION, "icons/qvt-compiled-transformation.gif"); //$NON-NLS-1$
declareRegistryImage(METAMODELS, "icons/metamodels.gif"); //$NON-NLS-1$
declareRegistryImage(METAMODEL_FILE, "icons/metamodelfile.gif"); //$NON-NLS-1$
declareRegistryImage(COLLAPSE_ALL, "icons/collapseall.gif"); //$NON-NLS-1$
declareRegistryImage(SHOW_INHERITED_FEATURES, "icons/showinherf.gif"); //$NON-NLS-1$
declareRegistryImage(SHOW_FULL_QUALIFIED_NAMES, "icons/showfullq.gif"); //$NON-NLS-1$
declareRegistryImage(OPEN_CLASSIFIER, "icons/opentype.gif"); //$NON-NLS-1$
declareRegistryImage(ACTIVITY, "icons/activity.gif"); //$NON-NLS-1$
}
private final static URL BASE_URL = QvtCommonUIPlugin.getDefault().getBundle().getEntry("/"); //$NON-NLS-1$
private static final CommonPluginImages ourInstance = new CommonPluginImages();
}