com.ibm.jdg2e.actions.ide
Class ShowModifiedAction

java.lang.Object
  extended byorg.eclipse.ui.actions.ActionDelegate
      extended bycom.ibm.jdg2e.actions.ide.ShowModifiedAction
All Implemented Interfaces:
java.util.EventListener, org.eclipse.ui.IActionDelegate, org.eclipse.ui.IActionDelegate2, org.eclipse.core.resources.IResourceChangeListener, org.eclipse.ui.IViewActionDelegate

public class ShowModifiedAction
extends org.eclipse.ui.actions.ActionDelegate
implements org.eclipse.ui.IViewActionDelegate, org.eclipse.core.resources.IResourceChangeListener

This Resource Navigator view action toggles on and off a viewer filter that displays only projects that contain modified resources. All unmodified projects are hidden. Only files modified since the view was opened are visible. See Chapter 21 for a discussion of the implementation.

See Also:
IViewActionDelegate

Constructor Summary
ShowModifiedAction()
           
 
Method Summary
 void dispose()
          Remove resource change listener.
 void init(org.eclipse.ui.IViewPart view)
          Initialize variables and add a resource change listener.
 void resourceChanged(org.eclipse.core.resources.IResourceChangeEvent event)
          Refresh the view content when a resource changes because the project this resource belongs to needs to be shown in the view.
 void run(org.eclipse.jface.action.IAction action)
          Toggle the ShowModifiedFilter on/off.
 
Methods inherited from class org.eclipse.ui.actions.ActionDelegate
init, runWithEvent, selectionChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.ui.IActionDelegate
selectionChanged
 

Constructor Detail

ShowModifiedAction

public ShowModifiedAction()
Method Detail

dispose

public void dispose()
Remove resource change listener.

Specified by:
dispose in interface org.eclipse.ui.IActionDelegate2
See Also:
IActionDelegate2.dispose()

init

public void init(org.eclipse.ui.IViewPart view)
Initialize variables and add a resource change listener.

Specified by:
init in interface org.eclipse.ui.IViewActionDelegate
See Also:
IViewActionDelegate.init(org.eclipse.ui.IViewPart)

resourceChanged

public void resourceChanged(org.eclipse.core.resources.IResourceChangeEvent event)
Refresh the view content when a resource changes because the project this resource belongs to needs to be shown in the view.

Specified by:
resourceChanged in interface org.eclipse.core.resources.IResourceChangeListener
See Also:
IResourceChangeListener.resourceChanged(org.eclipse.core.resources.IResourceChangeEvent)

run

public void run(org.eclipse.jface.action.IAction action)
Toggle the ShowModifiedFilter on/off.

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