Class GUIRunner.ClassChooser

  • Enclosing class:
    GUIRunner

    class GUIRunner.ClassChooser
    extends java.lang.Object
    Provides a method to choose a test class. This is triggered by clicking on the 'open' icon in the enclosing GUIRunner. Class ClassChooser is based on the JFileChooser clsFileChooser It is not static because of its access to GUIRunner.frame.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private javax.swing.JFileChooser clsFileChooser
      File chooser for class files representing test classes.
      private eu.simuline.util.JavaPath clsPath
      The class path for test classes.
    • Constructor Summary

      Constructors 
      Constructor Description
      ClassChooser()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) java.lang.String getChosenClass()
      Opens the class chooser dialog and returns the choosen class or null if either no file was selected, a file is selected which does not exist or does not represent a java class file.
      • Methods inherited from class java.lang.Object

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

      • clsFileChooser

        private final javax.swing.JFileChooser clsFileChooser
        File chooser for class files representing test classes.
      • clsPath

        private final eu.simuline.util.JavaPath clsPath
        The class path for test classes.
    • Constructor Detail

      • ClassChooser

        ClassChooser()
    • Method Detail

      • getChosenClass

        java.lang.String getChosenClass()
        Opens the class chooser dialog and returns the choosen class or null if either no file was selected, a file is selected which does not exist or does not represent a java class file.