com.ibm.jdg2e.actions.ide
Class CloseUnmodifiedWorkbenchAction

java.lang.Object
  extended bycom.ibm.jdg2e.actions.ide.CloseUnmodified
      extended bycom.ibm.jdg2e.actions.ide.CloseUnmodifiedWorkbenchAction
All Implemented Interfaces:
org.eclipse.ui.IActionDelegate, org.eclipse.ui.IWorkbenchWindowActionDelegate

public class CloseUnmodifiedWorkbenchAction
extends CloseUnmodified
implements org.eclipse.ui.IWorkbenchWindowActionDelegate

This workbench action displays in the File pulldown menu and closes all open files that have no unsaved changes. See Chapter 21 for a discussion of the implementation.


Constructor Summary
CloseUnmodifiedWorkbenchAction()
           
 
Method Summary
 void dispose()
           
 void init(org.eclipse.ui.IWorkbenchWindow window)
           
 void run(org.eclipse.jface.action.IAction action)
          Close unmodified files using execute method in superclass CloseUnmodified.
 void selectionChanged(org.eclipse.jface.action.IAction action, org.eclipse.jface.viewers.ISelection selection)
           
 
Methods inherited from class com.ibm.jdg2e.actions.ide.CloseUnmodified
execute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CloseUnmodifiedWorkbenchAction

public CloseUnmodifiedWorkbenchAction()
Method Detail

dispose

public void dispose()
Specified by:
dispose in interface org.eclipse.ui.IWorkbenchWindowActionDelegate

init

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

run

public void run(org.eclipse.jface.action.IAction action)
Close unmodified files using execute method in superclass CloseUnmodified.

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

selectionChanged

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