/** * Create the singleton instance of the Main GUI. * * @param args commandline options */ public static void createSingleton(String[] args) { if (m_MainSingleton == null) { m_MainSingleton = new Main(); } // set options try { m_MainSingleton.setOptions(args); } catch (Exception e) { e.printStackTrace(); } // notify listeners (if any) for (int i = 0; i < m_StartupListeners.size(); i++) { m_StartupListeners.elementAt(i).startUpComplete(); } }
/** * Create the singleton instance of the Main GUI. * * @param args commandline options */ public static void createSingleton(String[] args) { if (m_MainSingleton == null) { m_MainSingleton = new Main(); } // set options try { m_MainSingleton.setOptions(args); } catch (Exception e) { e.printStackTrace(); } // notify listeners (if any) for (int i = 0; i < m_StartupListeners.size(); i++) { m_StartupListeners.elementAt(i).startUpComplete(); } }
System.out.println(); Enumeration<Option> enu = new Main().listOptions(); while (enu.hasMoreElements()) { Option option = enu.nextElement();
System.out.println(); Enumeration<Option> enu = new Main().listOptions(); while (enu.hasMoreElements()) { Option option = enu.nextElement();