Changeset 15311 for release-kits
- Timestamp:
- 2008-04-30T17:00:38+12:00 (16 years ago)
- Location:
- release-kits/shared/ant-installer
- Files:
-
- 1 added
- 4 deleted
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
release-kits/shared/ant-installer/src/org/tp23/antinstaller/input/TargetInput.java
r14982 r15311 62 62 //targets are ordered 63 63 private int idx; 64 private String diskRequirement; 64 65 65 66 private static int globalIdx = 1; … … 90 91 } 91 92 93 public void setDiskRequirement(String diskRequirement) { 94 this.diskRequirement = diskRequirement; 95 } 96 92 97 public String getForce() { 93 98 return force; … … 98 103 } 99 104 100 101 105 public String getStrict() { 102 106 return strict; … … 113 117 public void setOsSpecific(String osSpecific) { 114 118 this.osSpecific = osSpecific; 119 } 120 121 public String getDiskRequirement() { 122 return diskRequirement; 115 123 } 116 124 -
release-kits/shared/ant-installer/src/org/tp23/antinstaller/page/SimpleInputPage.java
r14982 r15311 25 25 26 26 private String ifTarget; 27 27 private String ifProperty; 28 28 private boolean overflow; 29 29 -
release-kits/shared/ant-installer/src/org/tp23/antinstaller/renderer/swing/TargetInputRenderer.java
r15206 r15311 38 38 39 39 protected AILabel fieldLabel = new AILabel(); 40 protected AIShortLabel sizeLabel = new AIShortLabel(); 40 41 protected JCheckBox targetCheckBox = new JCheckBox(); 42 41 43 42 44 public TargetInputRenderer() { … … 80 82 private void jbInit() throws Exception { 81 83 fieldLabel.setText(outputField.getDisplayText()); 84 sizeLabel.setText(outputField.getDiskRequirement()); 85 sizeLabel.setMinimumSize( new Dimension( 80, 0 ) ); 82 86 targetCheckBox.setSelected(InputField.isTrue(outputField.getDefaultValue())); 83 87 if(InputField.isTrue(outputField.getForce())){ … … 94 98 public int addSelf(JPanel content,GBCF cf, int row,boolean overflow) { 95 99 96 JLabel h = new JLabel("help");97 h.setToolTipText(outputField.getExplanatoryText());98 100 99 JPanel p, pp; 101 JLabel hlp = new JLabel("help"); 102 hlp.setToolTipText(outputField.getExplanatoryText()); 100 103 101 pp = new JPanel(new FlowLayout(FlowLayout.LEFT)); 102 pp.add( targetCheckBox ); 103 pp.add( h ); 104 JPanel p; 104 105 105 p = new JPanel(new BorderLayout()); 106 p.add( fieldLabel, BorderLayout.WEST ); 107 p.add( pp, BorderLayout.CENTER ); 106 p = new JPanel(new FlowLayout(FlowLayout.LEFT)); 107 p.add( fieldLabel ); 108 p.add( sizeLabel ); 109 p.add( targetCheckBox ); 110 p.add( hlp ); 108 111 content.add(p); 109 112 110 p = new JPanel();111 p.setMinimumSize( new Dimension(0,1) );112 content.add(p);113 114 115 116 //if(overflow){117 // targetCheckBox.setOverflow(SizeConstants.OVERFLOW_FIELD_SIZE);118 //}119 113 return ++row; 120 114 } -
release-kits/shared/ant-installer/src/org/tp23/antinstaller/selfextract/SelfExtractor.java
r15144 r15311 125 125 File curDir = new File("t.tmp").getParentFile(); 126 126 extractDir = new File(curDir, "antinstall"); 127 int idx = 0; 128 while (extractDir.exists()) { 129 extractDir = new File(curDir, "antinstall" + (idx++)); 130 } 127 for ( int i=0; extractDir.exists(); i++) { 128 extractDir = new File(curDir, "antinstall" + i); 129 } 131 130 extractDir.mkdirs(); 132 131 extractDir.deleteOnExit();
Note:
See TracChangeset
for help on using the changeset viewer.