net.sf.tm.plugin.actions
Class ReloadContextAction

java.lang.Object
  extended byorg.eclipse.jface.action.Action
      extended bynet.sf.tm.plugin.actions.AbstractAction
          extended bynet.sf.tm.plugin.actions.AbstractBackgroundAction
              extended bynet.sf.tm.plugin.actions.ReloadContextAction
All Implemented Interfaces:
IAction, IActionDelegate, IWorkbenchWindowActionDelegate

public class ReloadContextAction
extends AbstractBackgroundAction
implements IWorkbenchWindowActionDelegate

Action for reloading a context on a server. The context has to be started to be reloaded.

Version:
$Id: ReloadContextAction.java,v 1.10 2004/02/23 19:19:35 apataki Exp $
Author:
Andreas Pataki

Field Summary
 
Fields inherited from interface org.eclipse.jface.action.IAction
AS_CHECK_BOX, AS_DROP_DOWN_MENU, AS_PUSH_BUTTON, AS_RADIO_BUTTON, CHECKED, DESCRIPTION, ENABLED, IMAGE, TEXT, TOOL_TIP_TEXT
 
Constructor Summary
ReloadContextAction(WebContextView parentView)
          Constructor for this action.
 
Method Summary
 void dispose()
           
 void init(IWorkbenchWindow window)
           
 void run()
          On excecution the run method changes the icon state, then splits of another thread to do the actual excecution with a busy indicator.
 void run(IAction action)
           
 void selectionChanged(IAction action, ISelection selection)
           
 
Methods inherited from class net.sf.tm.plugin.actions.AbstractBackgroundAction
runInBackground, runInUIThread
 
Methods inherited from class net.sf.tm.plugin.actions.AbstractAction
getLocalizedString, getLocalizedString, getLocalizedString
 
Methods inherited from class org.eclipse.jface.action.Action
addPropertyChangeListener, convertAccelerator, convertAccelerator, findKeyCode, findKeyString, findModifier, findModifierString, firePropertyChange, firePropertyChange, getAccelerator, getActionDefinitionId, getDescription, getDisabledImageDescriptor, getHelpListener, getHoverImageDescriptor, getId, getImageDescriptor, getMenuCreator, getStyle, getText, getToolTipText, isChecked, isEnabled, removeAcceleratorText, removePropertyChangeListener, runWithEvent, setAccelerator, setActionDefinitionId, setChecked, setDescription, setDisabledImageDescriptor, setEnabled, setHelpListener, setHoverImageDescriptor, setId, setImageDescriptor, setMenuCreator, setText, setToolTipText
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReloadContextAction

public ReloadContextAction(WebContextView parentView)
Constructor for this action. The text and image settings are initialized.

Parameters:
parentView - Parent view which created this action.
Method Detail

run

public void run()
On excecution the run method changes the icon state, then splits of another thread to do the actual excecution with a busy indicator.

Specified by:
run in interface IAction
See Also:
IAction.run()

dispose

public void dispose()
Specified by:
dispose in interface IWorkbenchWindowActionDelegate
See Also:
IWorkbenchWindowActionDelegate.dispose()

init

public void init(IWorkbenchWindow window)
Specified by:
init in interface IWorkbenchWindowActionDelegate
See Also:
IWorkbenchWindowActionDelegate.init(org.eclipse.ui.IWorkbenchWindow)

run

public void run(IAction action)
Specified by:
run in interface IActionDelegate
See Also:
IActionDelegate.run(org.eclipse.jface.action.IAction)

selectionChanged

public void selectionChanged(IAction action,
                             ISelection selection)
Specified by:
selectionChanged in interface IActionDelegate
See Also:
IActionDelegate.selectionChanged(org.eclipse.jface.action.IAction, org.eclipse.jface.viewers.ISelection)


Copyright © 2003-2004 Andreas Pataki. All Rights Reserved.