tn5250j/src tn5250jExternalProgram.properties,NONE,1.1 tn5250jLaunchExternalProgram.txt,NONE,1.1 tn5250jMsgs.properties,1.42,1.43

Christian Geisert <[email protected]> Fri, 09 Dec 2005 14:39:10 +0000
Newsgroups gmane.comp.java.tn5250j.cvs
Message-ID <[email protected]>
Update of /cvsroot/tn5250j/tn5250j/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14634/src

Modified Files:
	tn5250jMsgs.properties 
Added Files:
	tn5250jExternalProgram.properties 
	tn5250jLaunchExternalProgram.txt 
Log Message:
Support for launching customized external program function via hotspot
Submitted by: Richard Houston <rhouston -(at)- rlhc.net> 


--- NEW FILE: tn5250jExternalProgram.properties ---
# External Program config
etn.pgm.support.total.num=1

etn.pgm.1.command.name=PDFViewer
etn.pgm.1.command.window=java -jar Z:\\Common\\mozilla\\jack\\PDFViewer.jar
etn.pgm.1.command.unix=java -jar /mnt/UserData/Common/mozilla/jack/PDFViewer.jar 

--- NEW FILE: tn5250jLaunchExternalProgram.txt ---
  TN5250J launch Customized External Program function

requirement:
 TN5250J user want to launch Customized external program from tn5250j.

scenario:
 need following steps to finish this requirement.
 1 format Launch String to launch Customized external program.
   for example: PDFViewer:parameter1,parameter2,parameter3
         acroread Z:\share\pdf\chapter1.pdf
 
 2 make Launch String to become a hotspot.

 3 when user click hotspot, system check whether it's a Launch String, if it is a Launch String, System  
 automatically launch Customized external program with parameters which come from Launch String. 

 4 Configure Customized External Program, system allow user to configure Customized External Program name, window   
   command and unix command.

implementation:
 1: generate Launch String.
        
 2: modify ScreenPlanes.java's method checkHotSpots

        3: modify OperatingSystem.java's method displayURL

 4: modify Connect.java methods
          Connect class's Construction method, 
          CreateExternalProgramPanel,
          actionPerformed,  
             saveProps
           create ExternalProgramConfig.java
           modify tn5250jMsgs.properties
           create tn5250jExternalProgram.properties
 
Index: tn5250jMsgs.properties
===================================================================
RCS file: /cvsroot/tn5250j/tn5250j/src/tn5250jMsgs.properties,v
retrieving revision 1.42
retrieving revision 1.43
diff -C2 -d -r1.42 -r1.43
*** tn5250jMsgs.properties	8 Jul 2005 06:04:44 -0000	1.42
--- tn5250jMsgs.properties	9 Dec 2005 14:39:08 -0000	1.43
***************
*** 507,510 ****
--- 507,518 ----
  external.mailto=Execute Mail Program Command
  
+ customized.title=Customized External Programs
+ customized.execute=Execute
+ customized.command=Command
+ customized.window = Window Command
+ customized.unix = Unix Command
+ customized.name = External Program Name
+ customized.addEntryTitle = Add Customized External Program
+ customized.editEntryTitle = Edit Customized External Program
  # Message literals
  messages.saveSettings=Changes have been made to session "{0}".  Would you like to save them?



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click