[Ejtools-cvs] applications/jndi.browser/src/main/org/ejtools/jndi/browser/state/rules ServerInternal
Brought to you by:
letiemble
From: <let...@us...> - 2003-12-14 09:49:35
|
Update of /cvsroot/ejtools/applications/jndi.browser/src/main/org/ejtools/jndi/browser/state/rules In directory sc8-pr-cvs1:/tmp/cvs-serv20500/jndi.browser/src/main/org/ejtools/jndi/browser/state/rules Modified Files: ServerInternalFrameRule.java ServerRule.java Log Message: Add more javadocs. Adjust workspace persistence. Index: ServerInternalFrameRule.java =================================================================== RCS file: /cvsroot/ejtools/applications/jndi.browser/src/main/org/ejtools/jndi/browser/state/rules/ServerInternalFrameRule.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** ServerInternalFrameRule.java 27 Nov 2003 01:30:29 -0000 1.1 --- ServerInternalFrameRule.java 13 Dec 2003 22:29:07 -0000 1.2 *************** *** 1,32 **** ! /* ! * EJTools, the Enterprise Java Tools ! * ! * Distributable under LGPL license. ! * See terms of license at www.gnu.org. ! */ ! package org.ejtools.jndi.browser.state.rules; ! ! import java.util.Map; ! ! import org.ejtools.jndi.browser.frame.ServerInternalFrame; ! import org.ejtools.util.state.DefaultRule; ! ! /** ! * @author letiembl ! * @version $Revision$ ! * @created 20 juin 2003 ! */ ! public class ServerInternalFrameRule extends DefaultRule ! { ! /** ! * Description of the Method ! * ! * @param context Description of the Parameter ! */ ! public void loadEnter(Map context) ! { ! ServerInternalFrame frame = new ServerInternalFrame(); ! context.put("FRAME", frame); ! context.put("HOLDER", frame); ! } ! } --- 1,32 ---- ! /* ! * EJTools, the Enterprise Java Tools ! * ! * Distributable under LGPL license. ! * See terms of license at www.gnu.org. ! */ ! package org.ejtools.jndi.browser.state.rules; ! ! import java.util.Map; ! ! import org.ejtools.jndi.browser.frame.ServerInternalFrame; ! import org.ejtools.util.state.DefaultRule; ! ! /** ! * @author letiembl ! * @version $Revision$ ! * @created 20 juin 2003 ! */ ! public class ServerInternalFrameRule extends DefaultRule ! { ! /** ! * Description of the Method ! * ! * @param context Description of the Parameter ! */ ! public void loadEnter(Map context) ! { ! ServerInternalFrame frame = new ServerInternalFrame(); ! context.put("FRAME", frame); ! context.put("HOLDER", frame); ! } ! } Index: ServerRule.java =================================================================== RCS file: /cvsroot/ejtools/applications/jndi.browser/src/main/org/ejtools/jndi/browser/state/rules/ServerRule.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** ServerRule.java 27 Nov 2003 01:30:29 -0000 1.1 --- ServerRule.java 13 Dec 2003 22:29:07 -0000 1.2 *************** *** 1,45 **** ! /* ! * Created on 20 juin 2003 ! * ! * To change this generated comment go to ! * Window>Preferences>Java>Code Generation>Code Template ! */ ! package org.ejtools.jndi.browser.state.rules; ! ! import java.beans.beancontext.BeanContextServices; ! import java.util.Map; ! ! import org.ejtools.jndi.browser.frame.ServerInternalFrame; ! import org.ejtools.jndi.browser.model.Server; ! import org.ejtools.util.state.DefaultRule; ! import org.xml.sax.Attributes; ! ! /** ! * @author letiemble ! * @created 20 juin 2003 ! * @version $Revision$ ! */ ! public class ServerRule extends DefaultRule ! { ! /** ! * Description of the Method ! * ! * @param context Description of the Parameter ! */ ! public void loadEnter(Map context) ! { ! BeanContextServices container = (BeanContextServices) context.get("CONTAINER"); ! ServerInternalFrame frame = (ServerInternalFrame) context.get("FRAME"); ! ! Server server = new Server(); ! context.put("SERVER", server); ! ! frame.setServer(server); ! container.add(frame); ! ! Attributes attrs = (Attributes) context.get("ATTRIBUTES"); ! ! String name = attrs.getValue("name"); ! server.setName(name); ! } ! } --- 1,45 ---- ! /* ! * Created on 20 juin 2003 ! * ! * To change this generated comment go to ! * Window>Preferences>Java>Code Generation>Code Template ! */ ! package org.ejtools.jndi.browser.state.rules; ! ! import java.beans.beancontext.BeanContextServices; ! import java.util.Map; ! ! import org.ejtools.jndi.browser.frame.ServerInternalFrame; ! import org.ejtools.jndi.browser.model.Server; ! import org.ejtools.util.state.DefaultRule; ! import org.xml.sax.Attributes; ! ! /** ! * @author letiemble ! * @created 20 juin 2003 ! * @version $Revision$ ! */ ! public class ServerRule extends DefaultRule ! { ! /** ! * Description of the Method ! * ! * @param context Description of the Parameter ! */ ! public void loadEnter(Map context) ! { ! BeanContextServices container = (BeanContextServices) context.get("CONTAINER"); ! ServerInternalFrame frame = (ServerInternalFrame) context.get("FRAME"); ! ! Server server = new Server(); ! context.put("SERVER", server); ! ! frame.setServer(server); ! container.add(frame); ! ! Attributes attrs = (Attributes) context.get("ATTRIBUTES"); ! ! String name = attrs.getValue("name"); ! server.setName(name); ! } ! } |