java.lang.Objectorg.eclipse.ui.actions.ActionDelegate
com.ibm.jdg2e.actions.ide.ShowModifiedAction
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.
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 |
public ShowModifiedAction()
| Method Detail |
public void dispose()
dispose in interface org.eclipse.ui.IActionDelegate2IActionDelegate2.dispose()public void init(org.eclipse.ui.IViewPart view)
init in interface org.eclipse.ui.IViewActionDelegateIViewActionDelegate.init(org.eclipse.ui.IViewPart)public void resourceChanged(org.eclipse.core.resources.IResourceChangeEvent event)
resourceChanged in interface org.eclipse.core.resources.IResourceChangeListenerIResourceChangeListener.resourceChanged(org.eclipse.core.resources.IResourceChangeEvent)public void run(org.eclipse.jface.action.IAction action)
run in interface org.eclipse.ui.IActionDelegateIActionDelegate.run(org.eclipse.jface.action.IAction)