| /********************************************************************* |
| * Copyright (c) 2005, 2019 SAP SE |
| * |
| * This program and the accompanying materials are made |
| * available under the terms of the Eclipse Public License 2.0 |
| * which is available at https://www.eclipse.org/legal/epl-2.0/ |
| * |
| * Contributors: |
| * SAP SE - initial API, implementation and documentation |
| * Felix Velasco (mwenz) - Bug 323351 - Enable to suppress/reactivate the speed buttons |
| * |
| * SPDX-License-Identifier: EPL-2.0 |
| **********************************************************************/ |
| package org.eclipse.graphiti.ui.platform; |
| |
| import org.eclipse.graphiti.platform.IPlatformImageConstants; |
| |
| /** |
| * The Class PlatformImageProvider. |
| * |
| * @noinstantiate This class is not intended to be instantiated by clients. |
| * @noextend This class is not intended to be subclassed by clients. |
| */ |
| public class PlatformImageProvider extends AbstractImageProvider { |
| |
| private static final String ROOT_FOLDER_FOR_IMG = "icons/"; //$NON-NLS-1$ |
| |
| public final static String ID = "org.eclipse.graphiti.ui.platform.PlatformImageProvider"; //$NON-NLS-1$ |
| |
| /** |
| * Creates a new {@link PlatformImageProvider}. |
| */ |
| public PlatformImageProvider() { |
| super(); |
| } |
| |
| @Override |
| protected void addAvailableImages() { |
| addImageFilePath(IPlatformImageConstants.IMG_EDIT_COLLAPSE, ROOT_FOLDER_FOR_IMG + "edit/collapse.gif"); //$NON-NLS-1$ |
| addImageFilePath(IPlatformImageConstants.IMG_EDIT_COLLAPSEALL, ROOT_FOLDER_FOR_IMG + "edit/collapseall.gif"); //$NON-NLS-1$ |
| addImageFilePath(IPlatformImageConstants.IMG_EDIT_EXPAND, ROOT_FOLDER_FOR_IMG + "edit/expand.gif"); //$NON-NLS-1$ |
| addImageFilePath(IPlatformImageConstants.IMG_EDIT_EXPANDALL, ROOT_FOLDER_FOR_IMG + "edit/expandall.gif"); //$NON-NLS-1$ |
| addImageFilePath(IPlatformImageConstants.IMG_EDIT_REFRESH, ROOT_FOLDER_FOR_IMG + "edit/refresh.gif"); //$NON-NLS-1$ |
| addImageFilePath(IPlatformImageConstants.IMG_EDIT_DELETE, ROOT_FOLDER_FOR_IMG + "edit/delete.gif"); //$NON-NLS-1$ |
| addImageFilePath(IPlatformImageConstants.IMG_EDIT_REMOVE, ROOT_FOLDER_FOR_IMG + "edit/remove.gif"); //$NON-NLS-1$ |
| |
| addImageFilePath(IPlatformImageConstants.IMG_ECLIPSE_ERROR, ROOT_FOLDER_FOR_IMG + "eclipse/error.gif"); //$NON-NLS-1$ |
| addImageFilePath(IPlatformImageConstants.IMG_ECLIPSE_ERROR_TSK, ROOT_FOLDER_FOR_IMG + "eclipse/error_tsk.gif"); //$NON-NLS-1$ |
| addImageFilePath(IPlatformImageConstants.IMG_ECLIPSE_INFORMATION, ROOT_FOLDER_FOR_IMG + "eclipse/information.gif"); //$NON-NLS-1$ |
| addImageFilePath(IPlatformImageConstants.IMG_ECLIPSE_INFORMATION_TSK, ROOT_FOLDER_FOR_IMG + "eclipse/info_tsk.gif"); //$NON-NLS-1$ |
| addImageFilePath(IPlatformImageConstants.IMG_ECLIPSE_QUICKASSIST, ROOT_FOLDER_FOR_IMG + "eclipse/quickassist.gif"); //$NON-NLS-1$ |
| addImageFilePath(IPlatformImageConstants.IMG_ECLIPSE_WARNING, ROOT_FOLDER_FOR_IMG + "eclipse/warning.gif"); //$NON-NLS-1$ |
| addImageFilePath(IPlatformImageConstants.IMG_ECLIPSE_WARNING_TSK, ROOT_FOLDER_FOR_IMG + "eclipse/warn_tsk.gif"); //$NON-NLS-1$ |
| |
| addImageFilePath(IPlatformImageConstants.IMG_DIAGRAM, ROOT_FOLDER_FOR_IMG + "diagram.gif"); //$NON-NLS-1$ |
| |
| addImageFilePath(IPlatformImageConstants.IMG_TOGGLE_PAD, ROOT_FOLDER_FOR_IMG + "toggleShowContextButtons.png"); //$NON-NLS-1$ |
| } |
| } |