tn5250j/src/org/tn5250j SessionPopup.java,1.4,1.5 TN5250jConstants.java,1.48,1.49

[email protected]
Newsgroups gmane.comp.java.tn5250j.cvs
Message-ID <[email protected]>
Update of /cvsroot/tn5250j/tn5250j/src/org/tn5250j
In directory sc8-pr-cvs1:/tmp/cvs-serv29038/src/org/tn5250j

Modified Files:
	SessionPopup.java TN5250jConstants.java 
Log Message:
Update related to quick-email-feature

Index: SessionPopup.java
===================================================================
RCS file: /cvsroot/tn5250j/tn5250j/src/org/tn5250j/SessionPopup.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** SessionPopup.java	2 Dec 2003 13:14:47 -0000	1.4
--- SessionPopup.java	12 Dec 2003 07:24:54 -0000	1.5
***************
*** 184,210 ****
           createKeyboardItem(kbMenu,MNEMONIC_ATTN);
  
- //         action = new AbstractAction(LangTool.getString("key.[attn]")) {
- //               public void actionPerformed(ActionEvent e) {
- //                  screen.sendKeys("[attn]");
- //               }
- //           };
- //
- //         kbMenu.add(createMenuItem(action,MNEMONIC_ATTN));
- 
           createKeyboardItem(kbMenu,MNEMONIC_RESET);
- //         action = new AbstractAction(LangTool.getString("key.[reset]")) {
- //               public void actionPerformed(ActionEvent e) {
- //                  screen.sendKeys("[reset]");
- //               }
- //           };
- //         kbMenu.add(createMenuItem(action,MNEMONIC_RESET));
  
           createKeyboardItem(kbMenu,MNEMONIC_SYSREQ);
- //         action = new AbstractAction(LangTool.getString("key.[sysreq]")) {
- //               public void actionPerformed(ActionEvent e) {
- //                  screen.sendKeys("[sysreq]");
- //               }
- //           };
- //         kbMenu.add(createMenuItem(action,MNEMONIC_SYSREQ));
  
           if (screen.isMessageWait() &&
--- 184,190 ----
***************
*** 224,278 ****
           createKeyboardItem(kbMenu,MNEMONIC_DUP_FIELD);
  
- //         action = new AbstractAction(LangTool.getString("key.[dupfield]")) {
- //               public void actionPerformed(ActionEvent e) {
- //                  screen.sendKeys("[dupfield]");
- //               }
- //           };
- //         kbMenu.add(createMenuItem(action,MNEMONIC_DUP_FIELD));
- 
           createKeyboardItem(kbMenu,MNEMONIC_HELP);
- //         action = new AbstractAction(LangTool.getString("key.[help]")) {
- //               public void actionPerformed(ActionEvent e) {
- //                  screen.sendKeys("[help]");
- //               }
- //           };
- //         kbMenu.add(createMenuItem(action,MNEMONIC_HELP));
  
           createKeyboardItem(kbMenu,MNEMONIC_ERASE_EOF);
- //         action = new AbstractAction(LangTool.getString("key.[eraseeof]")) {
- //               public void actionPerformed(ActionEvent e) {
- //                  screen.sendKeys("[eraseeof]");
- //               }
- //           };
- //         kbMenu.add(createMenuItem(action,MNEMONIC_ERASE_EOF));
  
           createKeyboardItem(kbMenu,MNEMONIC_FIELD_PLUS);
  
- //         action = new AbstractAction(LangTool.getString("key.[field+]")) {
- //               public void actionPerformed(ActionEvent e) {
- //                  screen.sendKeys("[field+]");
- //               }
- //           };
- //         kbMenu.add(createMenuItem(action,MNEMONIC_FIELD_PLUS));
- 
- 
           createKeyboardItem(kbMenu,MNEMONIC_FIELD_MINUS);
  
- //         action = new AbstractAction(LangTool.getString("key.[field-]")) {
- //               public void actionPerformed(ActionEvent e) {
- //                  screen.sendKeys("[field-]");
- //               }
- //           };
- //         kbMenu.add(createMenuItem(action,MNEMONIC_FIELD_MINUS));
- 
- 
           createKeyboardItem(kbMenu,MNEMONIC_NEW_LINE);
- //         action = new AbstractAction(LangTool.getString("key.[newline]")) {
- //               public void actionPerformed(ActionEvent e) {
- //                  screen.sendKeys("[newline]");
- //               }
- //           };
- //         kbMenu.add(createMenuItem(action,MNEMONIC_NEW_LINE));
- 
  
           if (OptionAccessFactory.getInstance().isValidOption(MNEMONIC_PRINT)) {
--- 204,216 ----
***************
*** 402,413 ****
           popup.add(sendMenu);
  
! 		   action = new AbstractAction(LangTool.getString("popup.quickmail")) {
!                public void actionPerformed(ActionEvent e) {
!                  sendQuickEMail();
!                  session.getFocusForMe();
!                }
!             };
  
- 		   sendMenu.add(action);
  
           if (OptionAccessFactory.getInstance().isValidOption(MNEMONIC_E_MAIL)) {
--- 340,354 ----
           popup.add(sendMenu);
  
!          if (OptionAccessFactory.getInstance().isValidOption(MNEMONIC_QUICK_MAIL)) {
! 
!             action = new AbstractAction(LangTool.getString("popup.quickmail")) {
!                   public void actionPerformed(ActionEvent e) {
!                     sendQuickEMail();
!                     session.getFocusForMe();
!                   }
!                };
!    		   sendMenu.add(createMenuItem(action,MNEMONIC_QUICK_MAIL));
!          }
  
  
           if (OptionAccessFactory.getInstance().isValidOption(MNEMONIC_E_MAIL)) {
***************
*** 416,420 ****
                    public void actionPerformed(ActionEvent e) {
                       sendScreenEMail();
!                     session.getFocusForMe();
                    }
                };
--- 357,361 ----
                    public void actionPerformed(ActionEvent e) {
                       sendScreenEMail();
!                      session.getFocusForMe();
                    }
                };

Index: TN5250jConstants.java
===================================================================
RCS file: /cvsroot/tn5250j/tn5250j/src/org/tn5250j/TN5250jConstants.java,v
retrieving revision 1.48
retrieving revision 1.49
diff -C2 -d -r1.48 -r1.49
*** TN5250jConstants.java	6 Dec 2003 08:25:26 -0000	1.48
--- TN5250jConstants.java	12 Dec 2003 07:24:54 -0000	1.49
***************
*** 150,153 ****
--- 150,155 ----
     public static final int E_MAIL = 5013;
     public static final int RUN_SCRIPT = 5014;
+    public static final int SPOOL_FILE = 5015;
+    public static final int QUICK_MAIL = 5016;
  
  
***************
*** 197,201 ****
          "[opennew]","[togcon]","[hotspots]","[gui]","[dspmsgs]",
          "[dspattr]","[print]","[cursor]","[debug]","[close]",
!         "[transfer]","[e-mail]","[runscript]","[spoolfile]"
     };
  
--- 199,203 ----
          "[opennew]","[togcon]","[hotspots]","[gui]","[dspmsgs]",
          "[dspattr]","[print]","[cursor]","[debug]","[close]",
!         "[transfer]","[e-mail]","[runscript]","[spoolfile]","[quick-mail]"
     };
  
***************
*** 219,223 ****
          5002, 5003, 5004, 5005, 5006,
          5007, 5008, 5009, 5010, 5011,
!         5012, 5013, 5014, 5015
     };
  
--- 221,225 ----
          5002, 5003, 5004, 5005, 5006,
          5007, 5008, 5009, 5010, 5011,
!         5012, 5013, 5014, 5015, 5016
     };
  
***************
*** 314,317 ****
--- 316,320 ----
     public static final String MNEMONIC_RUN_SCRIPT   =  "[runscript]";
     public static final String MNEMONIC_SPOOL_FILE   =  "[spoolfile]";
+    public static final String MNEMONIC_QUICK_MAIL   =  "[quick-mail]";
  
  




-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.