KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > ui > internal > PluginActionCoolBarContributionItem


1 /*******************************************************************************
2  * Copyright (c) 2000, 2006 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11
12 package org.eclipse.ui.internal;
13
14 /**
15  * Contribution item for actions provided by plugins via workbench
16  * action extension points.
17  */

18 public class PluginActionCoolBarContributionItem extends
19         PluginActionContributionItem implements IActionSetContributionItem {
20     private String JavaDoc actionSetId;
21
22     /**
23      * Creates a new contribution item from the given action.
24      * The id of the action is used as the id of the item.
25      *
26      * @param action the action
27      */

28     public PluginActionCoolBarContributionItem(PluginAction action) {
29         super(action);
30         setActionSetId(((WWinPluginAction) action).getActionSetId());
31     }
32
33     public String JavaDoc getActionSetId() {
34         return actionSetId;
35     }
36
37     public void setActionSetId(String JavaDoc id) {
38         this.actionSetId = id;
39     }
40
41 }
42
Popular Tags