|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.colby.cs.JeSS.actions.JeSScanAction
This class tracks the selection of the current user environment and sends the selected items along to the JeSSClearingHouse to determine their type and proper processing path for a Security Audit
IWorkbenchWindowActionDelegate
Nested Class Summary | |
private class |
JeSScanAction.JeSSRunnable
|
Field Summary | |
private org.eclipse.ui.IWorkbenchWindow |
window
|
private org.eclipse.ui.IWorkbenchPart |
workbenchPart
|
Constructor Summary | |
JeSScanAction()
The constructor - does Nothing |
Method Summary | |
void |
dispose()
Eclipse Generated Code - Does Nothing |
private org.eclipse.jface.viewers.StructuredSelection |
getStructuredSelection()
Uses the current active workbench part to determine the current selected objects. |
private org.eclipse.ui.IWorkbenchPart |
getWorkbenchPart()
|
void |
init(org.eclipse.ui.IWorkbenchWindow window)
Caches window object and calls refreshActivePart() to store the currently active workbench part |
private void |
refreshActivePart()
Stores the currently active workbench part in the local variable workbenchPart |
void |
run(org.eclipse.jface.action.IAction action)
Sets up a runnable action so all resource changes are grouped together when the scan is run and show the progress of the scan using the status bar on the workbench window |
private void |
runJeSS(org.eclipse.core.runtime.IProgressMonitor monitor)
The current selection is then determined and the objects that comprise that selection are passed along to the JeSSClearingHouse one at at time to determine their type and proper processing path. |
void |
selectionChanged(org.eclipse.jface.action.IAction action,
org.eclipse.jface.viewers.ISelection selection)
Eclipse Generated Code - Does Nothing |
private void |
showMessage(java.lang.String message)
A helper method to display a "JeSS Plug-in" titled message dialog with the passed string as the message |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private org.eclipse.ui.IWorkbenchWindow window
private org.eclipse.ui.IWorkbenchPart workbenchPart
Constructor Detail |
public JeSScanAction()
Method Detail |
public void run(org.eclipse.jface.action.IAction action)
run
in interface org.eclipse.ui.IActionDelegate
IActionDelegate.run(org.eclipse.jface.action.IAction)
private void runJeSS(org.eclipse.core.runtime.IProgressMonitor monitor)
monitor
- - the progress monitor to be used to display the progress
of the scanprivate void showMessage(java.lang.String message)
message
- -
the string to be displayedprivate org.eclipse.ui.IWorkbenchPart getWorkbenchPart()
private org.eclipse.jface.viewers.StructuredSelection getStructuredSelection()
public void init(org.eclipse.ui.IWorkbenchWindow window)
init
in interface org.eclipse.ui.IWorkbenchWindowActionDelegate
IWorkbenchWindowActionDelegate.init(org.eclipse.ui.IWorkbenchWindow)
private void refreshActivePart()
public void selectionChanged(org.eclipse.jface.action.IAction action, org.eclipse.jface.viewers.ISelection selection)
selectionChanged
in interface org.eclipse.ui.IActionDelegate
IActionDelegate.selectionChanged(org.eclipse.jface.action.IAction, org.eclipse.jface.viewers.ISelection)
public void dispose()
dispose
in interface org.eclipse.ui.IWorkbenchWindowActionDelegate
IWorkbenchWindowActionDelegate.dispose()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |