Class AbstractJavaAnalysisAction
java.lang.Object
com.ibm.wala.ide.AbstractJavaAnalysisAction
- All Implemented Interfaces:
org.eclipse.jface.operation.IRunnableWithProgress
,org.eclipse.ui.IActionDelegate
,org.eclipse.ui.IObjectActionDelegate
public abstract class AbstractJavaAnalysisAction
extends Object
implements org.eclipse.ui.IObjectActionDelegate, org.eclipse.jface.operation.IRunnableWithProgress
An Eclipse action that analyzes a Java selection
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected Collection
<org.eclipse.jdt.core.IJavaProject> compute the java projects represented by the current selectionstatic AnalysisScope
computeScope
(org.eclipse.jface.viewers.IStructuredSelection selection) Compute an analysis scope for the current selectionstatic AnalysisScope
computeScope
(org.eclipse.jface.viewers.IStructuredSelection selection, EclipseProjectPath.AnalysisScopeType scopeType) Compute an analysis scope for the current selectionorg.eclipse.jface.viewers.ISelection
void
run
(org.eclipse.jface.action.IAction action) void
selectionChanged
(org.eclipse.jface.action.IAction action, org.eclipse.jface.viewers.ISelection selection) void
setActivePart
(org.eclipse.jface.action.IAction action, org.eclipse.ui.IWorkbenchPart targetPart) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.eclipse.jface.operation.IRunnableWithProgress
run
-
Constructor Details
-
AbstractJavaAnalysisAction
public AbstractJavaAnalysisAction()
-
-
Method Details
-
setActivePart
public void setActivePart(org.eclipse.jface.action.IAction action, org.eclipse.ui.IWorkbenchPart targetPart) - Specified by:
setActivePart
in interfaceorg.eclipse.ui.IObjectActionDelegate
-
computeScope
public static AnalysisScope computeScope(org.eclipse.jface.viewers.IStructuredSelection selection) throws IOException Compute an analysis scope for the current selection- Throws:
IOException
-
computeScope
public static AnalysisScope computeScope(org.eclipse.jface.viewers.IStructuredSelection selection, EclipseProjectPath.AnalysisScopeType scopeType) throws IOException Compute an analysis scope for the current selection- Parameters:
scopeType
- should analysis use the source files in the Eclipse projects rather than the class files.- Throws:
IOException
-
computeJavaProjects
compute the java projects represented by the current selection -
run
public void run(org.eclipse.jface.action.IAction action) - Specified by:
run
in interfaceorg.eclipse.ui.IActionDelegate
- See Also:
-
selectionChanged
public void selectionChanged(org.eclipse.jface.action.IAction action, org.eclipse.jface.viewers.ISelection selection) - Specified by:
selectionChanged
in interfaceorg.eclipse.ui.IActionDelegate
- See Also:
-
getCurrentSelection
public org.eclipse.jface.viewers.ISelection getCurrentSelection()- Returns:
- The current
ISelection
highlighted in the Eclipse workspace
-