blob: f6efbfa4487546233949444ca6ff169d1d9591b9 [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.ui;
import java.net.URL;
import org.eclipse.m2m.internal.qvt.oml.common.ui.PluginImages;
public class QvtPluginImages extends PluginImages {
private QvtPluginImages() {
super(BASE_URL);
declareImages();
}
public static final String NEW_WIZARD = "new_wizard"; //$NON-NLS-1$
public static final String ATTRIBUTE_VARIABLE = "attribute_variable"; //$NON-NLS-1$
public static final String REFERENCE_VARIABLE = "reference_variable"; //$NON-NLS-1$
public static final String COLLECTION_ENTRY_VARIABLE = "collection_entry_variable"; //$NON-NLS-1$
public static final String QVT_LIBRARY = "qvt_library"; //$NON-NLS-1$
public static final String METAMODEL = "metamodel"; //$NON-NLS-1$
public static final String PARAM_IN = "transf-param-in"; //$NON-NLS-1$
public static final String PARAM_INOUT = "transf-param-inout"; //$NON-NLS-1$
public static final String PARAM_OUT = "transf-param-out"; //$NON-NLS-1$
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 NEW_PROJECT_WIZARD = "new_project_wizard"; //$NON-NLS-1$
public static final String CU_NAMESPACE = "cu_namespace"; //$NON-NLS-1$
public static final String SRC_CONTAINER = "src_container"; //$NON-NLS-1$
public static final String UNB0UND_QVT_CU = "unbound_qvt_cu"; //$NON-NLS-1$
public static QvtPluginImages getInstance() {
return ourInstance;
}
@Override
protected void declareImages() {
declareRegistryImage(NEW_WIZARD, "icons/pr-Model_to_model_wizard.gif"); //$NON-NLS-1$
declareRegistryImage(ATTRIBUTE_VARIABLE, "icons/EAttribute.gif"); //$NON-NLS-1$
declareRegistryImage(REFERENCE_VARIABLE, "icons/EReference.gif"); //$NON-NLS-1$
declareRegistryImage(COLLECTION_ENTRY_VARIABLE, "icons/cat-coll-entry.gif"); //$NON-NLS-1$
declareRegistryImage(QVT_LIBRARY, "icons/qvt-library.gif"); //$NON-NLS-1$
declareRegistryImage(METAMODEL, "icons/metamodel.gif"); //$NON-NLS-1$
declareRegistryImage(PARAM_IN, "icons/transf_param_in.gif"); //$NON-NLS-1$
declareRegistryImage(PARAM_INOUT, "icons/transf_param_inout.gif"); //$NON-NLS-1$
declareRegistryImage(PARAM_OUT, "icons/transf_param_out.gif"); //$NON-NLS-1$
declareRegistryImage(WARNING_CO, "icons/warning-co.gif"); //$NON-NLS-1$
declareRegistryImage(ERROR_CO, "icons/error-co.gif"); //$NON-NLS-1$
declareRegistryImage(NEW_PROJECT_WIZARD, "icons/pr-MDA_wizard.gif"); //$NON-NLS-1$
declareRegistryImage(CU_NAMESPACE, "icons/cu_namespace.gif"); //$NON-NLS-1$
declareRegistryImage(UNB0UND_QVT_CU, "icons/unbound_qvt_cu.gif"); //$NON-NLS-1$
declareRegistryImage(SRC_CONTAINER, "icons/src_container.gif"); //$NON-NLS-1$
}
private final static URL BASE_URL = QVTUIPlugin.getDefault().getBundle().getEntry("/"); //$NON-NLS-1$
private static final QvtPluginImages ourInstance = new QvtPluginImages();
}