Humboldt Alignment Editor 2.5.0

eu.esdihumboldt.hale.ui.util.swing
Class RcpActionAdapter

java.lang.Object
  extended by org.eclipse.core.commands.common.EventManager
      extended by org.eclipse.jface.action.AbstractAction
          extended by org.eclipse.jface.action.Action
              extended by eu.esdihumboldt.hale.ui.util.swing.RcpActionAdapter
All Implemented Interfaces:
PropertyChangeListener, EventListener, org.eclipse.jface.action.IAction

public class RcpActionAdapter
extends org.eclipse.jface.action.Action
implements PropertyChangeListener

This class provides a SWT Adapter for Swing Actions.

Author:
Simon Templer, Thorsten Reitz
Partner:
01 / Fraunhofer Institute for Computer Graphics Research

Field Summary
protected  org.eclipse.swt.widgets.Display display
          The display
 
Fields inherited from interface org.eclipse.jface.action.IAction
AS_CHECK_BOX, AS_DROP_DOWN_MENU, AS_PUSH_BUTTON, AS_RADIO_BUTTON, AS_UNSPECIFIED, CHECKED, DESCRIPTION, ENABLED, HANDLED, IMAGE, RESULT, TEXT, TOOL_TIP_TEXT
 
Constructor Summary
RcpActionAdapter(Action action)
          Creates an ActionAdapter
RcpActionAdapter(Action action, int style)
          Creates an ActionAdapter
 
Method Summary
 String getDescription()
           
 String getText()
           
 String getToolTipText()
           
 boolean isEnabled()
           
 void propertyChange(PropertyChangeEvent evt)
           
 void run()
           
 void setEnabled(boolean enabled)
           
 void setText(String text)
           
 void setToolTipText(String toolTipText)
           
 
Methods inherited from class org.eclipse.jface.action.Action
convertAccelerator, convertAccelerator, findKeyCode, findKeyString, findModifier, findModifierString, getAccelerator, getActionDefinitionId, getDisabledImageDescriptor, getHelpListener, getHoverImageDescriptor, getId, getImageDescriptor, getMenuCreator, getStyle, isChecked, isHandled, notifyResult, removeAcceleratorText, removeMnemonics, runWithEvent, setAccelerator, setActionDefinitionId, setChecked, setDescription, setDisabledImageDescriptor, setHelpListener, setHoverImageDescriptor, setId, setImageDescriptor, setMenuCreator
 
Methods inherited from class org.eclipse.jface.action.AbstractAction
addPropertyChangeListener, firePropertyChange, firePropertyChange, removePropertyChangeListener
 
Methods inherited from class org.eclipse.core.commands.common.EventManager
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.jface.action.IAction
addPropertyChangeListener, removePropertyChangeListener
 

Field Detail

display

protected final org.eclipse.swt.widgets.Display display
The display

Constructor Detail

RcpActionAdapter

public RcpActionAdapter(Action action)
Creates an ActionAdapter

Parameters:
action - the Swing action to wrap

RcpActionAdapter

public RcpActionAdapter(Action action,
                        int style)
Creates an ActionAdapter

Parameters:
action - the Swing action to wrap
style - the JFace action style
See Also:
Action.Action(String, int)
Method Detail

getDescription

public String getDescription()
Specified by:
getDescription in interface org.eclipse.jface.action.IAction
Overrides:
getDescription in class org.eclipse.jface.action.Action

getText

public String getText()
Specified by:
getText in interface org.eclipse.jface.action.IAction
Overrides:
getText in class org.eclipse.jface.action.Action

getToolTipText

public String getToolTipText()
Specified by:
getToolTipText in interface org.eclipse.jface.action.IAction
Overrides:
getToolTipText in class org.eclipse.jface.action.Action

isEnabled

public boolean isEnabled()
Specified by:
isEnabled in interface org.eclipse.jface.action.IAction
Overrides:
isEnabled in class org.eclipse.jface.action.Action

setEnabled

public void setEnabled(boolean enabled)
Specified by:
setEnabled in interface org.eclipse.jface.action.IAction
Overrides:
setEnabled in class org.eclipse.jface.action.Action

setText

public void setText(String text)
Specified by:
setText in interface org.eclipse.jface.action.IAction
Overrides:
setText in class org.eclipse.jface.action.Action

setToolTipText

public void setToolTipText(String toolTipText)
Specified by:
setToolTipText in interface org.eclipse.jface.action.IAction
Overrides:
setToolTipText in class org.eclipse.jface.action.Action

run

public void run()
Specified by:
run in interface org.eclipse.jface.action.IAction
Overrides:
run in class org.eclipse.jface.action.Action

propertyChange

public void propertyChange(PropertyChangeEvent evt)
Specified by:
propertyChange in interface PropertyChangeListener

Humboldt Alignment Editor 2.5.0

Build 2012-12-03_12-30-59
Revision 9d2dd4b0318cda9f1393b1ddd390f7f792d70a2d