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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Collection<org.eclipse.jdt.core.IJavaProject> compute the java projects represented by the current selectionstatic AnalysisScopecomputeScope(org.eclipse.jface.viewers.IStructuredSelection selection) Compute an analysis scope for the current selectionstatic AnalysisScopecomputeScope(org.eclipse.jface.viewers.IStructuredSelection selection, EclipseProjectPath.AnalysisScopeType scopeType) Compute an analysis scope for the current selectionorg.eclipse.jface.viewers.ISelectionvoidrun(org.eclipse.jface.action.IAction action) voidselectionChanged(org.eclipse.jface.action.IAction action, org.eclipse.jface.viewers.ISelection selection) voidsetActivePart(org.eclipse.jface.action.IAction action, org.eclipse.ui.IWorkbenchPart targetPart) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
setActivePartin 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:
runin interfaceorg.eclipse.ui.IActionDelegate- See Also:
-
selectionChanged
public void selectionChanged(org.eclipse.jface.action.IAction action, org.eclipse.jface.viewers.ISelection selection) - Specified by:
selectionChangedin interfaceorg.eclipse.ui.IActionDelegate- See Also:
-
getCurrentSelection
public org.eclipse.jface.viewers.ISelection getCurrentSelection()- Returns:
- The current
ISelectionhighlighted in the Eclipse workspace
-