Example usage for org.eclipse.jface.action Action getDisabledImageDescriptor

List of usage examples for org.eclipse.jface.action Action getDisabledImageDescriptor

Introduction

In this page you can find the example usage for org.eclipse.jface.action Action getDisabledImageDescriptor.

Prototype

@Override
    public ImageDescriptor getDisabledImageDescriptor() 

Source Link

Usage

From source file:org.fusesource.ide.foundation.ui.actions.ToggleAction.java

License:Open Source License

public void setCurrentAction(Action currentAction) {
    this.currentAction = currentAction;

    setText(currentAction.getText());//from w  w w. j a v a 2s  .  c  o  m
    setToolTipText(currentAction.getToolTipText());
    setDescription(currentAction.getDescription());
    setHoverImageDescriptor(currentAction.getHoverImageDescriptor());
    setImageDescriptor(currentAction.getImageDescriptor());
    setDisabledImageDescriptor(currentAction.getDisabledImageDescriptor());
    setEnabled(currentAction.isEnabled());
    setChecked(currentAction.isChecked());
}