[Ejtools-cvs] CVS: applications/deployment/src/main/net/sourceforge/ejtools/deploy DeploymentBrowser
Brought to you by:
letiemble
From: Laurent E. <let...@us...> - 2002-04-21 18:48:47
|
Update of /cvsroot/ejtools/applications/deployment/src/main/net/sourceforge/ejtools/deploy In directory usw-pr-cvs1:/tmp/cvs-serv19068/src/main/net/sourceforge/ejtools/deploy Added Files: DeploymentBrowser.java Log Message: Initial Import --- NEW FILE: DeploymentBrowser.java --- /* * EJTools, the Enterprise Java Tools * * Distributable under LGPL license. * See terms of license at www.gnu.org. */ package net.sourceforge.ejtools.deploy; // Standard Imports import java.beans.beancontext.BeanContextServicesSupport; import java.util.ResourceBundle; import java.util.Vector; import javax.swing.ImageIcon; // Other Imports import com.dreambean.awt.BeanContextPanel; import net.sourceforge.ejtools.awt.action.Command; import net.sourceforge.ejtools.awt.action.CommandAction; import net.sourceforge.ejtools.awt.action.file.ExitAction; import net.sourceforge.ejtools.awt.action.file.NewAction; import net.sourceforge.ejtools.awt.action.file.OpenAction; import net.sourceforge.ejtools.awt.action.file.SaveAction; import net.sourceforge.ejtools.awt.action.file.SaveAsAction; import net.sourceforge.ejtools.awt.services.AboutServiceProvider; import net.sourceforge.ejtools.awt.services.FrameServiceProvider; import net.sourceforge.ejtools.awt.services.MenuBarServiceProvider; import net.sourceforge.ejtools.awt.services.StatusBarService; import net.sourceforge.ejtools.awt.services.StatusBarServiceProvider; import net.sourceforge.ejtools.awt.services.ToolBarServiceProvider; import net.sourceforge.ejtools.deploy.model.FactoryManagerServiceProvider; import org.apache.log4j.Category; /** * Description of the Class * * @author letiembl * @created 21 mars 2002 * @todo Javadoc to complete * @todo Add log4j logs * @todo I18N to complete * @todo Clean services used */ public class DeploymentBrowser extends BeanContextServicesSupport { /** Description of the Field */ private static Category cat = Category.getInstance(DeploymentBrowser.class.getName()); /** Description of the Field */ private final static ResourceBundle res = ResourceBundle.getBundle("ApplicationResources"); /** Description of the Field */ private static Vector factories; /** Description of the Field */ CommandAction action = null; /** Description of the Field */ AboutServiceProvider aboutService; FactoryManagerServiceProvider factoryManagerService; /** Description of the Field */ FrameServiceProvider frameService; /** Description of the Field */ MenuBarServiceProvider menuBarService; /** Description of the Field */ StatusBarServiceProvider statusBarService; /** Description of the Field */ ToolBarServiceProvider toolBarService; /** Constructor for the EJX object */ public DeploymentBrowser() { SplashWindow splash = new SplashWindow("DeploymentBrowser starting...", 14); splash.show(); cat.debug("JNDIBrowser starting..."); frameService = new FrameServiceProvider("SDI"); splash.progress("Creating Frame Service..."); aboutService = new AboutServiceProvider(new AboutDialog()); splash.progress("Creating About Service..."); menuBarService = new MenuBarServiceProvider(); splash.progress("Creating MenuBar Service..."); toolBarService = new ToolBarServiceProvider(); splash.progress("Creating ToolBar Service..."); statusBarService = new StatusBarServiceProvider(); splash.progress("Creating StatusBar Service..."); factoryManagerService = new FactoryManagerServiceProvider(); try { add(menuBarService); splash.progress("Adding MenuBar Service..."); // add(toolBarService); // add(statusBarService); frameService.setTitle(res.getString("title.application")); add(factoryManagerService); factoryManagerService.loadFactories(); add(new ExitAction( new Command() { public void execute() { System.exit(0); } } )); splash.progress("Adding Exit Action..."); add(frameService); splash.progress("Adding Frame Service..."); add(aboutService); splash.progress("Adding About Service..."); splash.dispose(); } catch (RuntimeException e) { cat.warn("Error occured " + e.getMessage()); throw e; } } } |