tn5250j/src/org/tn5250j/beans ProtocolBean.java,1.2,1.3

"Kenneth J. Pouncey" <[email protected]> Fri, 30 Jul 2004 04:52:47 +0000
Newsgroups gmane.comp.java.tn5250j.cvs
Message-ID <[email protected]>
Update of /cvsroot/tn5250j/tn5250j/src/org/tn5250j/beans
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31333/src/org/tn5250j/beans

Modified Files:
	ProtocolBean.java 
Log Message:
When initiating a protocol bean add code to add the session instance to SessionManager

Index: ProtocolBean.java
===================================================================
RCS file: /cvsroot/tn5250j/tn5250j/src/org/tn5250j/beans/ProtocolBean.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** ProtocolBean.java	26 Jul 2004 20:39:30 -0000	1.2
--- ProtocolBean.java	30 Jul 2004 04:52:45 -0000	1.3
***************
*** 51,54 ****
--- 51,55 ----
  import org.tn5250j.TN5250jConstants;
  import org.tn5250j.SessionConfig;
+ import org.tn5250j.framework.common.*;
  
  
***************
*** 76,96 ****
           new SessionConfig(configurationResource, sessionName));
        this.sessionProperties = sessionProperties;
! //      session.getScreen().addScreenListener(this);
    }
  
    public Session5250 getSession() {
!      
       return session;
!      
    }
- //   public void onScreenSizeChanged(int sr, int sc) {
- //
- //   }
- //
- //   public void onScreenChanged(int which, int sr, int sc, int er, int ec) {
- //
- //      String s = new String(session.getScreen().getScreenAsChars());
- //      System.out.println(s);
- //   }
  
    // ===========================================================================
--- 77,88 ----
           new SessionConfig(configurationResource, sessionName));
        this.sessionProperties = sessionProperties;
!       SessionManager.instance().addSession(session);
    }
  
    public Session5250 getSession() {
! 
       return session;
! 
    }
  
    // ===========================================================================



-------------------------------------------------------
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. www.ostg.com