KickJava   Java API By Example, From Geeks To Geeks.

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


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 package org.eclipse.ui.internal;
12
13 import org.eclipse.jface.action.IContributionItem;
14 import org.eclipse.jface.action.SubContributionItem;
15
16 /**
17  * This class marks a sub contribution item as belonging to
18  * an action set.
19  */

20 public class ActionSetContributionItem extends SubContributionItem implements
21         IActionSetContributionItem {
22
23     /**
24      * The action set id.
25      */

26     private String JavaDoc actionSetId;
27
28     /**
29      * Constructs a new item
30      */

31     public ActionSetContributionItem(IContributionItem item, String JavaDoc actionSetId) {
32         super(item);
33         this.actionSetId = actionSetId;
34     }
35
36     /**
37      * Returns the action set id.
38      */

39     public String JavaDoc getActionSetId() {
40         return actionSetId;
41     }
42
43     /**
44      * Sets the action set id.
45      */

46     public void setActionSetId(String JavaDoc newActionSetId) {
47         actionSetId = newActionSetId;
48     }
49 }
50
Popular Tags