01: /*******************************************************************************
02: * Copyright (c) 2000, 2006 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: *******************************************************************************/package org.eclipse.ui.internal;
11:
12: import org.eclipse.jface.action.IContributionItem;
13: import org.eclipse.jface.action.SubContributionItem;
14:
15: /**
16: * This class marks a sub contribution item as belonging to
17: * an action set.
18: */
19: public class ActionSetContributionItem extends SubContributionItem
20: implements IActionSetContributionItem {
21:
22: /**
23: * The action set id.
24: */
25: private String actionSetId;
26:
27: /**
28: * Constructs a new item
29: */
30: public ActionSetContributionItem(IContributionItem item,
31: String actionSetId) {
32: super (item);
33: this .actionSetId = actionSetId;
34: }
35:
36: /**
37: * Returns the action set id.
38: */
39: public String getActionSetId() {
40: return actionSetId;
41: }
42:
43: /**
44: * Sets the action set id.
45: */
46: public void setActionSetId(String newActionSetId) {
47: actionSetId = newActionSetId;
48: }
49: }
|