KickJava   Java API By Example, From Geeks To Geeks.

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


1 /*******************************************************************************
2  * Copyright (c) 2000, 2003 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Common Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/cpl-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.Action;
14 import org.eclipse.ui.internal.decorators.*;
15
16 /**
17  * The LabelDecoratorAction is an action that toggles the
18  * enabled state of a decorator.
19  *
20  * @since 2.0
21  * @deprecated this action is no longer in use
22  */

23 public class LabelDecoratorAction extends Action {
24
25     private DecoratorDefinition decorator;
26
27     /**
28      * Constructor for LabelDecoratorAction.
29      * @param text
30      */

31     public LabelDecoratorAction(DecoratorDefinition definition) {
32         super(definition.getName());
33         decorator = definition;
34         setChecked(decorator.isEnabled());
35     }
36
37     /*
38      * see @Action.run()
39      */

40     public void run() {}
41
42 }
43
Popular Tags