diff options
Diffstat (limited to 'plugins/org.eclipse.sirius.diagram/specific/org/eclipse/sirius/diagram/business/api/image/ImageSelector.java')
-rw-r--r-- | plugins/org.eclipse.sirius.diagram/specific/org/eclipse/sirius/diagram/business/api/image/ImageSelector.java | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/plugins/org.eclipse.sirius.diagram/specific/org/eclipse/sirius/diagram/business/api/image/ImageSelector.java b/plugins/org.eclipse.sirius.diagram/specific/org/eclipse/sirius/diagram/business/api/image/ImageSelector.java new file mode 100644 index 0000000000..51a5d4256f --- /dev/null +++ b/plugins/org.eclipse.sirius.diagram/specific/org/eclipse/sirius/diagram/business/api/image/ImageSelector.java @@ -0,0 +1,38 @@ +/******************************************************************************* + * Copyright (c) 2012 THALES GLOBAL SERVICES. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Obeo - initial API and implementation + *******************************************************************************/ +package org.eclipse.sirius.diagram.business.api.image; + +import org.eclipse.sirius.BasicLabelStyle; + +/** + * A interface use to select a image from a image source (workspace, CDO repo, + * ...). + * + * @author <a href="mailto:esteban.dugueperoux@obeo.fr">Esteban Dugueperoux</a> + */ +public interface ImageSelector { + + /** + * The name of the CDOResource containing shared images at the top level of + * the repo. + */ + String IMAGES_RESOURCE_NAME = "images"; + + /** + * Get a image. + * + * @param basicLabelStyle + * the {@link BasicLabelStyle} to use + * @return the image path selected + */ + String selectImage(BasicLabelStyle basicLabelStyle); + +} |