Class PredecessorSelectionDialog


  • public class PredecessorSelectionDialog
    extends org.eclipse.swt.widgets.Dialog
    Dialog for (de-)selecting predecessor projects.
    Author:
    Crowder, Schniedermeyer, Hundt, El-Sharkawy
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private org.eclipse.jface.viewers.CheckboxTableViewer predecessorList  
      private java.lang.String projectID  
      private java.util.ArrayList<java.lang.String> result  
    • Constructor Summary

      Constructors 
      Constructor Description
      PredecessorSelectionDialog​(org.eclipse.swt.widgets.Shell parent, int style, java.lang.String projectID)
      Sole constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private void createContents​(org.eclipse.swt.widgets.Shell shell)
      Creates the dialog's contents.
      java.util.ArrayList<java.lang.String> open()
      Opens the dialog and returns the input.
      void refreshData()
      Sets the input of the CheckboxTableViewer to refresh the contents of the view.
      • Methods inherited from class org.eclipse.swt.widgets.Dialog

        checkSubclass, getParent, getStyle, getText, setText
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • result

        private java.util.ArrayList<java.lang.String> result
      • predecessorList

        private org.eclipse.jface.viewers.CheckboxTableViewer predecessorList
      • projectID

        private java.lang.String projectID
    • Constructor Detail

      • PredecessorSelectionDialog

        public PredecessorSelectionDialog​(org.eclipse.swt.widgets.Shell parent,
                                          int style,
                                          java.lang.String projectID)
        Sole constructor.
        Parameters:
        parent - The parent shell
        style - The style
        projectID - The id of current plp
    • Method Detail

      • open

        public java.util.ArrayList<java.lang.String> open()
        Opens the dialog and returns the input.
        Returns:
        String
      • createContents

        private void createContents​(org.eclipse.swt.widgets.Shell shell)
        Creates the dialog's contents.
        Parameters:
        shell - the dialog window
      • refreshData

        public void refreshData()
        Sets the input of the CheckboxTableViewer to refresh the contents of the view.