/***************************************************************************** * Copyright (c) 2009 CEA LIST. * * 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: * Remi Schnekenburger (CEA LIST) remi.schnekenburger@cea.fr - Initial API and implementation * *****************************************************************************/ package org.eclipse.papyrus.customization.palette.dialog; import org.eclipse.papyrus.customization.palette.dialog.LocalPaletteContentPage.EntryType; import org.eclipse.papyrus.uml.diagram.common.Activator; import org.eclipse.swt.graphics.Image; /** * proxy for a local separator */ public class PaletteLocalSeparatorProxy extends PaletteEntryProxy { /** id of this separator */ protected String id; /** icon for separators */ public static String SEPARATOR_ICON = "/icons/separator.gif"; /** * Creates a new PaletteLocalEntryProxy */ public PaletteLocalSeparatorProxy(String id) { super(null); this.id = id; } /** * {@inheritDoc} */ @Override public EntryType getType() { return EntryType.SEPARATOR; } /** * {@inheritDoc} */ @Override public String getLabel() { return "-------------"; } /** * {@inheritDoc} */ @Override public String getId() { return id; } /** * {@inheritDoc} */ @Override public Image getImage() { return Activator.getPluginIconImage(Activator.ID, SEPARATOR_ICON); } }