tn5250j/src/org/tn5250j/tools XTFRFile.java,1.21,1.22

Christian Geisert <[email protected]> Mon, 26 Sep 2005 10:18:23 +0000
Newsgroups gmane.comp.java.tn5250j.cvs
Message-ID <[email protected]>
Update of /cvsroot/tn5250j/tn5250j/src/org/tn5250j/tools
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14610/src/org/tn5250j/tools

Modified Files:
	XTFRFile.java 
Log Message:
save field description (full or internal) setting at datatransfer


Index: XTFRFile.java
===================================================================
RCS file: /cvsroot/tn5250j/tn5250j/src/org/tn5250j/tools/XTFRFile.java,v
retrieving revision 1.21
retrieving revision 1.22
diff -C2 -d -r1.21 -r1.22
*** XTFRFile.java	10 Nov 2004 11:39:43 -0000	1.21
--- XTFRFile.java	26 Sep 2005 10:18:20 -0000	1.22
***************
*** 907,910 ****
--- 907,918 ----
  		}
  
+ 		if (props.containsKey("xtfr.intDesc")) {
+ 			if (props.getProperty("xtfr.intDesc").equals("true")) {
+ 				intDesc.setSelected(true);
+ 			} else {
+ 				intDesc.setSelected(false);
+ 			}
+ 		}
+ 
  		if (props.containsKey("xtfr.fileFormat"))
  			fileFormat.setSelectedItem(props.getProperty("xtfr.fileFormat"));
***************
*** 924,972 ****
  		Properties props = config.getProperties();
  
!       saveXTFRFields(props);
! //		if (hostFile.getText().trim().length() > 0)
! //			props.setProperty("xtfr.fileName", hostFile.getText().trim());
! //		else
! //			props.remove("xtfr.fileName");
! //
! //		if (user.getText().trim().length() > 0)
! //			props.setProperty("xtfr.user", user.getText().trim());
! //		else
! //			props.remove("xtfr.user");
! //
! //		if (useQuery.isSelected())
! //			props.setProperty("xtfr.useQuery", "true");
! //		else
! //			props.remove("xtfr.useQuery");
! //
! //		if (queryStatement.getText().trim().length() > 0)
! //			props.setProperty(
! //				"xtfr.queryStatement",
! //				queryStatement.getText().trim());
! //		else
! //			props.remove("xtfr.queryStatement");
! //
! //		if (allFields.isSelected())
! //			props.setProperty("xtfr.allFields", "true");
! //		else
! //			props.remove("xtfr.allFields");
! //
! //		if (txtDesc.isSelected())
! //			props.setProperty("xtfr.txtDesc", "true");
! //		else
! //			props.remove("xtfr.txtDesc");
! //
! //		props.setProperty(
! //			"xtfr.fileFormat",
! //			(String) fileFormat.getSelectedItem());
! //
! //		if (localFile.getText().trim().length() > 0)
! //			props.setProperty("xtfr.localFile", localFile.getText().trim());
! //		else
! //			props.remove("xtfr.localFile");
! //
! //		props.setProperty(
! //			"xtfr.decimalSeparator",
! //			(String) decimalSeparator.getSelectedItem());
  
  		config.setModified();
--- 932,936 ----
  		Properties props = config.getProperties();
  
! 		saveXTFRFields(props);
  
  		config.setModified();
***************
*** 1003,1010 ****
--- 967,979 ----
  			props.remove("xtfr.allFields");
  
+         // TODO: save Fielddesc state as one propertyvalue (xtfr.fieldDesc=txt|int)  
  		if (txtDesc.isSelected())
  			props.setProperty("xtfr.txtDesc", "true");
  		else
  			props.remove("xtfr.txtDesc");
+ 		if (intDesc.isSelected())
+ 			props.setProperty("xtfr.intDesc", "true");
+ 		else
+ 			props.remove("xtfr.intDesc");
  
  		props.setProperty(



-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. 
Download it for free - -and be entered to win a 42" plasma tv or your very
own Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php