KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > emf > edit > command > CommandActionDelegate


1 /**
2  * <copyright>
3  *
4  * Copyright (c) 2002-2004 IBM Corporation and others.
5  * All rights reserved. This program and the accompanying materials
6  * are made available under the terms of the Eclipse Public License v1.0
7  * which accompanies this distribution, and is available at
8  * http://www.eclipse.org/legal/epl-v10.html
9  *
10  * Contributors:
11  * IBM - Initial API and implementation
12  *
13  * </copyright>
14  *
15  * $Id: CommandActionDelegate.java,v 1.2 2005/06/08 06:17:05 nickb Exp $
16  */

17 package org.eclipse.emf.edit.command;
18
19
20 /**
21  * This is the interface used by a CommandAction to delegate all of the set methods of an IAction to a {@link org.eclipse.emf.common.command.Command}.
22  */

23 public interface CommandActionDelegate
24 {
25   /**
26    * This returns whether the action should be enabled.
27    */

28   public boolean canExecute();
29
30   /**
31    * This returns the decoration, if any, of the action.
32    */

33   public Object JavaDoc getImage();
34
35   /**
36    * This returns the menu text, if any, of the action.
37    */

38   public String JavaDoc getText();
39
40   /**
41    * This returns the description, if any, of the action.
42    */

43   public String JavaDoc getDescription();
44
45   /**
46    * This returns the tool tip text, if any, of the action.
47    */

48   public String JavaDoc getToolTipText();
49 }
50
Popular Tags