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 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 interface org.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

      protected Collection<org.eclipse.jdt.core.IJavaProject> computeJavaProjects()
      compute the java projects represented by the current selection
    • run

      public void run(org.eclipse.jface.action.IAction action)
      Specified by:
      run in interface org.eclipse.ui.IActionDelegate
      See Also:
      • IActionDelegate.run(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
      See Also:
      • IActionDelegate.selectionChanged(IAction, ISelection)
    • getCurrentSelection

      public org.eclipse.jface.viewers.ISelection getCurrentSelection()
      Returns:
      The current ISelection highlighted in the Eclipse workspace