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: /**
13: * Contribution item for actions provided by plugins via workbench
14: * action extension points.
15: */
16: public class PluginActionCoolBarContributionItem extends
17: PluginActionContributionItem implements
18: IActionSetContributionItem {
19: private String actionSetId;
20:
21: /**
22: * Creates a new contribution item from the given action.
23: * The id of the action is used as the id of the item.
24: *
25: * @param action the action
26: */
27: public PluginActionCoolBarContributionItem(PluginAction action) {
28: super (action);
29: setActionSetId(((WWinPluginAction) action).getActionSetId());
30: }
31:
32: public String getActionSetId() {
33: return actionSetId;
34: }
35:
36: public void setActionSetId(String id) {
37: this.actionSetId = id;
38: }
39:
40: }
|