[Ejtools-cvs] applications/jndi.browser/src/main/org/ejtools/jndi/browser/frame ServerInternalFrame.
Brought to you by:
letiemble
From: <let...@us...> - 2003-11-27 01:31:02
|
Update of /cvsroot/ejtools/applications/jndi.browser/src/main/org/ejtools/jndi/browser/frame In directory sc8-pr-cvs1:/tmp/cvs-serv17169/jndi.browser/src/main/org/ejtools/jndi/browser/frame Modified Files: ServerInternalFrame.java Log Message: Address Todo #755528 Address Todo #800902 Index: ServerInternalFrame.java =================================================================== RCS file: /cvsroot/ejtools/applications/jndi.browser/src/main/org/ejtools/jndi/browser/frame/ServerInternalFrame.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** ServerInternalFrame.java 3 Mar 2003 20:34:49 -0000 1.4 --- ServerInternalFrame.java 27 Nov 2003 01:30:28 -0000 1.5 *************** *** 25,28 **** --- 25,29 ---- import org.ejtools.jndi.browser.model.service.JMSConnectionServiceProvider; import org.ejtools.util.service.Profile; + import org.ejtools.util.service.ProfileHolder; /** *************** *** 30,37 **** * * @author <a href="mailto:let...@us...">Laurent Etiemble</a> - * @created 5 septembre 2002 * @version $Revision$ */ ! public class ServerInternalFrame extends BeanContextInternalFrame { /** Description of the Field */ --- 31,38 ---- * * @author <a href="mailto:let...@us...">Laurent Etiemble</a> * @version $Revision$ + * @created 5 septembre 2002 */ ! public class ServerInternalFrame extends BeanContextInternalFrame implements ProfileHolder { /** Description of the Field */ *************** *** 50,53 **** --- 51,63 ---- private static ResourceBundle resources = ResourceBundle.getBundle("org.ejtools.jndi.browser.Resources"); + public void setProfile(Profile profile) + { + this.profile = profile; + } + + public Profile getProfile() + { + return this.profile; + } /** *************** *** 56,70 **** * @param profile Description of the Parameter */ ! public ServerInternalFrame(Profile profile) { super(); ! ! this.profile = profile; ! this.connectionProvider = new JMSConnectionServiceProvider(); this.menubarProvider = new MenuBarServiceProvider(); this.toolbarProvider = new ToolBarServiceProvider(); ! this.server = new Server(); this.server.setProfile(profile); --- 66,81 ---- * @param profile Description of the Parameter */ ! public ServerInternalFrame() { super(); ! } ! ! public void setServer(Server server) ! { this.connectionProvider = new JMSConnectionServiceProvider(); this.menubarProvider = new MenuBarServiceProvider(); this.toolbarProvider = new ToolBarServiceProvider(); ! this.server = server; this.server.setProfile(profile); *************** *** 94,98 **** } } ! )); this.add(new SelectFactoryAction("action.options.selectTopicFactory", --- 105,109 ---- } } ! )); this.add(new SelectFactoryAction("action.options.selectTopicFactory", *************** *** 104,108 **** } } ! )); BeanContextTreePanel panel = new BeanContextTreePanel(this.server); --- 115,119 ---- } } ! )); BeanContextTreePanel panel = new BeanContextTreePanel(this.server); *************** *** 135,141 **** // Hack to update the window title ! String name = this.server.getName(); ! this.server.setName(""); ! this.server.setName(resources.getString("connection.text.untitled")); } --- 146,151 ---- // Hack to update the window title ! this.server.setName(""); ! this.server.setName(resources.getString("connection.text.untitled")); } |