Class SWTTreeViewer<T>

java.lang.Object
com.ibm.wala.ide.ui.AbstractJFaceRunner
com.ibm.wala.ide.ui.SWTTreeViewer<T>

public class SWTTreeViewer<T> extends AbstractJFaceRunner
A class to view a WALA Graph with an SWT TreeViewer
  • Field Details

    • graphInput

      protected Graph<T> graphInput
    • rootsInput

      protected Collection<?> rootsInput
    • nodeDecoratorInput

      protected NodeDecorator<Object> nodeDecoratorInput
    • popUpActions

      protected final List<org.eclipse.jface.action.IAction> popUpActions
  • Constructor Details

    • SWTTreeViewer

      public SWTTreeViewer()
  • Method Details

    • getGraphInput

      public Graph<T> getGraphInput()
    • setGraphInput

      public void setGraphInput(Graph<T> newGraphInput)
    • getRootsInput

      public Collection<?> getRootsInput()
    • setRootsInput

      public void setRootsInput(Collection<?> newRootsInput)
    • getNodeDecoratorInput

      public NodeDecorator<Object> getNodeDecoratorInput()
    • setNodeDecoratorInput

      public void setNodeDecoratorInput(NodeDecorator<Object> newNodeDecoratorInput)
    • getPopUpActions

      public List<org.eclipse.jface.action.IAction> getPopUpActions()
    • toString

      public String toString()
      Overrides:
      toString in class AbstractJFaceRunner
    • run

      public void run() throws WalaException
      Throws:
      WalaException
    • justOpenForTest

      public void justOpenForTest() throws WalaException
      For testing purposes, open the tree viewer window and then immediately close it. Useful for testing that there is no failure while opening the window.
      Throws:
      WalaException
    • getSelection

      public org.eclipse.jface.viewers.IStructuredSelection getSelection() throws IllegalStateException
      Throws:
      IllegalStateException