package nl.tudelft.dsol.introspection; import org.djutils.logger.CategoryLogger; import org.pmw.tinylog.Level; import nl.tudelft.dsol.introspection.beans.GUIBean; import nl.tudelft.simulation.dsol.swing.introspection.gui.IntrospectionDialog; import nl.tudelft.simulation.dsol.swing.introspection.gui.ObjectTableModel; import nl.tudelft.simulation.introspection.beans.BeanIntrospector; /** * An interactive test program for the introspection GUI package. *
* (c) 2002-2018-2004 Delft University of Technology , the Netherlands.
* See for project information www.simulation.tudelft.nl .
*
* Copyright (c) 2002-2019 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved. See * for project information https://simulation.tudelft.nl. The DSOL * project is distributed under a three-clause BSD-style license, which can be found at * * https://simulation.tudelft.nl/dsol/3.0/license.html. *
* @author Niels Lang * Peter Jacobs * @since 1.5 */ public final class PTestGUI { /** * constructs a new PTestGUI. */ private PTestGUI() { super(); // unreachable code } /** * executes the PTestSorter * @param args the command-line arguments */ public static void main(final String[] args) { CategoryLogger.setAllLogLevel(Level.TRACE); Object introspected = new GUIBean(); // new IntrospectionDialog("Test Field introspector", new ObjectTableModel(introspected, new FieldIntrospector())); new IntrospectionDialog("Test Bean introspector", new ObjectTableModel(introspected, new BeanIntrospector())); } }