| /********************************************************************* |
| * 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 |
| * |
| * SPDX-License-Identifier: EPL-2.0 |
| **********************************************************************/ |
| package org.eclipse.graphiti.ui.platform; |
| |
| import org.eclipse.graphiti.platform.IExtension; |
| |
| /** |
| * The interface IImageProvider. |
| * |
| * Instead of implementing this interface directly the clients should extend the |
| * class <code>AbstractImageProvider</code>. |
| * |
| * @noimplement This interface is not intended to be implemented by clients. |
| * @noextend This interface is not intended to be extended by clients. |
| * |
| */ |
| public interface IImageProvider extends IExtension { |
| |
| /** |
| * @param pluginId |
| * The pluginId of the plug-in containing the image files |
| * provided by this image-provider |
| */ |
| void setPluginId(String pluginId); |
| |
| /** |
| * @return The pluginId of the plug-in containing the image files provided |
| * by this image-provider |
| */ |
| String getPluginId(); |
| |
| /** |
| * This is a method simply returns the location of the image file in the |
| * plug-in. The path is relative to the root of the plug-in. The path must |
| * not have a leading "." or path separator. Clients should use a path like |
| * "icons/mysample.gif" rather than "./icons/mysample.gif" or |
| * "/icons/mysample.gif". </p> |
| * |
| * @return imageFilePath the relative path of the image file, relative to |
| * the root of the plug-in; the path must be legal |
| */ |
| String getImageFilePath(String imageId); |
| } |