blob: 8f528658a820f672008df15d6013ee33db65ef54 [file] [log] [blame]
/*********************************************************************
* 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.palette.impl;
import java.util.ArrayList;
import java.util.List;
import org.eclipse.graphiti.features.IFeature;
import org.eclipse.graphiti.palette.ICreationToolEntry;
/**
* The Class AbstractPaletteToolEntry.
*/
public abstract class AbstractPaletteToolEntry extends AbstractPaletteEntry implements ICreationToolEntry {
/**
* The features.
*/
protected List<IFeature> features = new ArrayList<IFeature>();
private String description;
private String largeIconId = null;
/**
* Create a new {@link AbstractPaletteToolEntry}.
*
* @param label
* the label
* @param description
* the description
* @param iconId
* the icon id
* @param largeIconId
* the large icon id
*/
public AbstractPaletteToolEntry(String label, String description, String iconId, String largeIconId) {
super(label, iconId);
this.description = description;
setLargeIconId(largeIconId);
}
public String getDescription() {
return this.description;
}
/**
* Gets the features.
*
* @return the features
*/
public List<IFeature> getFeatures() {
return this.features;
}
public String getLargeIconId() {
return this.largeIconId;
}
/**
* Sets the large icon id.
*
* @param largeIconId
* the large icon id
*/
private void setLargeIconId(String largeIconId) {
this.largeIconId = largeIconId;
}
}