Interface MCommand

All Superinterfaces:
MApplicationElement, MLocalizable
All Known Implementing Classes:
CommandImpl

public interface MCommand extends MApplicationElement, MLocalizable
A representation of the model object 'Command'.

A Command represents a logical operation within the applicaiton. The implementation is provided by an MHandler chosen by examining all the candidate's enablement.

Since:
1.0
Restriction:
This interface is not intended to be implemented by clients.

The following features are supported:

  • Method Details

    • getCommandName

      String getCommandName()
      Returns the value of the 'Command Name' attribute.

      This field holds the command's name, used in the UI by default when there are menu or toolbar items representing this command.

      Returns:
      the value of the 'Command Name' attribute.
      See Also:
    • setCommandName

      void setCommandName(String value)
      Sets the value of the 'Command Name' attribute.
      Parameters:
      value - the new value of the 'Command Name' attribute.
      See Also:
    • getDescription

      String getDescription()
      Returns the value of the 'Description' attribute.

      This field holds the command's description, used in the UI when the commands being shown in dialogs....

      Returns:
      the value of the 'Description' attribute.
      See Also:
    • setDescription

      void setDescription(String value)
      Sets the value of the 'Description' attribute.
      Parameters:
      value - the new value of the 'Description' attribute.
      See Also:
    • getParameters

      List<MCommandParameter> getParameters()
      Returns the value of the 'Parameters' containment reference list. The list contents are of type MCommandParameter.

      This list defines the ste of parameters that this command expects to have defined during execution.

      Returns:
      the value of the 'Parameters' containment reference list.
    • getCategory

      MCategory getCategory()
      Returns the value of the 'Category' reference.

      Developers: Add more detailed documentation by editing this comment in org.eclipse.ui.model.workbench/model/UIElements.ecore. There is a GenModel/documentation node under each type and attribute.

      Returns:
      the value of the 'Category' reference.
      See Also:
    • setCategory

      void setCategory(MCategory value)
      Sets the value of the 'Category' reference.
      Parameters:
      value - the new value of the 'Category' reference.
      See Also:
    • getCommandIconURI

      String getCommandIconURI()
      Returns the value of the 'Command Icon URI' attribute.

      This field contains a fully qualified URL defining the path to an Image to display for this element.

      Returns:
      the value of the 'Command Icon URI' attribute.
      Since:
      2.4
      See Also:
    • setCommandIconURI

      void setCommandIconURI(String value)
      Sets the value of the 'Command Icon URI' attribute.
      Parameters:
      value - the new value of the 'Command Icon URI' attribute.
      Since:
      2.4
      See Also:
    • getLocalizedCommandName

      String getLocalizedCommandName()
      Returns the value of the 'Localized Command Name' attribute.
      Returns:
      the value of the 'Localized Command Name' attribute.
    • getLocalizedDescription

      String getLocalizedDescription()
      Returns the value of the 'Localized Description' attribute.
      Returns:
      the value of the 'Localized Description' attribute.