001 package com.sptci.system;
002
003 import nextapp.echo2.app.Window;
004
005 import com.sptci.echo2.Configuration;
006 import com.sptci.echo2.ErrorPane;
007 import com.sptci.system.style.StyleSheet;
008
009 /**
010 * The global application instance used to display the password change
011 * application to user.
012 *
013 * <p>Copyright 2007 Sans Pareil Technologies, Inc.</p>
014 * @author Rakesh Vidyadharan 2007-04-21
015 * @version $Id: Application.java 3250 2007-05-12 13:04:48Z rakesh $
016 */
017 public class Application extends com.sptci.echo2.Application
018 {
019 /**
020 * The command executor used to interact with the system.
021 */
022 final CommandExecutor executor;
023
024 /**
025 * Convenience method to return the active password application as a
026 * <code>Application</code>.
027 *
028 * @return The currently active <code>Application</code> instance.
029 */
030 @Override
031 public static Application getApplication()
032 {
033 return (Application) getActive();
034 }
035
036 /**
037 * Create a new instance of the class using the specified directory to
038 * initialise the {@link #executor}.
039 */
040 public Application()
041 {
042 executor = new CommandExecutor();
043 }
044 }