Changeset 15210
- Timestamp:
- 2008-04-24T13:40:21+12:00 (15 years ago)
- Location:
- release-kits/shared/ant-installer
- Files:
-
- 58 edited
Legend:
- Unmodified
- Added
- Removed
-
release-kits/shared/ant-installer/src/org/tp23/antinstaller/antmod/FeedbackListener.java
r14982 r15210 35 35 36 36 private final SwingInstallerContext swingCtx; 37 private static final ResourceBundle res = ResourceBundle.getBundle(" org.tp23.antinstaller.renderer.Res");37 private static final ResourceBundle res = ResourceBundle.getBundle("resources.LanguagePack"); 38 38 39 39 public FeedbackListener(SwingInstallerContext swingCtx) { -
release-kits/shared/ant-installer/src/org/tp23/antinstaller/input/AppRootInput.java
r14982 r15210 36 36 extends DirectoryInput { 37 37 38 private static final ResourceBundle res = ResourceBundle.getBundle(" org.tp23.antinstaller.renderer.Res");38 private static final ResourceBundle res = ResourceBundle.getBundle("resources.LanguagePack"); 39 39 40 40 -
release-kits/shared/ant-installer/src/org/tp23/antinstaller/input/DirectoryInput.java
r14982 r15210 34 34 extends OSSpecific { 35 35 36 private static final ResourceBundle res = ResourceBundle.getBundle(" org.tp23.antinstaller.renderer.Res");36 private static final ResourceBundle res = ResourceBundle.getBundle("resources.LanguagePack"); 37 37 38 38 -
release-kits/shared/ant-installer/src/org/tp23/antinstaller/page/Page.java
r14982 r15210 46 46 // i18n support 47 47 private static ResourceBundle langPack = null; 48 //private static ResourceBundle otherLangPack = null; 48 49 static{ 49 50 try { 50 langPack = ResourceBundle.getBundle(" LanguagePack");51 langPack = ResourceBundle.getBundle("resources.LanguagePack"); 51 52 } catch (MissingResourceException e) { 52 53 // ignore, signifies no lang packs installed … … 78 79 79 80 public String getDisplayText() { 80 if( langPack != null){81 return langPack.getString("page." + getName() + ".displayText") ;82 } 83 return displayText ;81 if( langPack != null){ 82 return langPack.getString("page." + getName() + ".displayText") + "r"; 83 } 84 return displayText + "c"; 84 85 } 85 86 -
release-kits/shared/ant-installer/src/org/tp23/antinstaller/renderer/Res.properties
r14982 r15210 1 # org.tp23.antinstaller.renderer.Res1 #resources.LanguagePack 2 2 #Wed Nov 10 01:06:42 CET 2004 3 3 -
release-kits/shared/ant-installer/src/org/tp23/antinstaller/renderer/Res_de.properties
r14982 r15210 1 # org.tp23.antinstaller.renderer.Res1 #resources.LanguagePack 2 2 #Wed Nov 10 01:06:42 CET 2004 3 3 -
release-kits/shared/ant-installer/src/org/tp23/antinstaller/renderer/Res_es.properties
r14982 r15210 1 # org.tp23.antinstaller.renderer.Res1 #resources.LanguagePack 2 2 #Wed Nov 10 01:06:42 CET 2004 3 3 -
release-kits/shared/ant-installer/src/org/tp23/antinstaller/renderer/Res_es_EU.properties
r14982 r15210 1 # org.tp23.antinstaller.renderer.Res1 #resources.LanguagePack 2 2 #Wed Nov 10 01:06:42 CET 2004 3 3 -
release-kits/shared/ant-installer/src/org/tp23/antinstaller/renderer/swing/ConditionalFieldRenderer.java
r14982 r15210 36 36 public class ConditionalFieldRenderer extends SwingOutputFieldRenderer { 37 37 38 private ResourceBundleHelper resHelper = new ResourceBundleHelper( " org.tp23.antinstaller.renderer.Res" );38 private ResourceBundleHelper resHelper = new ResourceBundleHelper( "resources.LanguagePack" ); 39 39 private ConditionalField condField; 40 40 private ArrayList renderers = new ArrayList( ); -
release-kits/shared/ant-installer/src/org/tp23/antinstaller/renderer/swing/ConfirmPasswordTextInputRenderer.java
r14982 r15210 20 20 public class ConfirmPasswordTextInputRenderer extends PasswordTextInputRenderer{ 21 21 22 private static final ResourceBundle res = ResourceBundle.getBundle(" org.tp23.antinstaller.renderer.Res");22 private static final ResourceBundle res = ResourceBundle.getBundle("resources.LanguagePack"); 23 23 24 24 protected String getErrorMessage(){ -
release-kits/shared/ant-installer/src/org/tp23/antinstaller/renderer/swing/DateInputRenderer.java
r14982 r15210 33 33 extends SwingOutputFieldRenderer { 34 34 35 private static final ResourceBundle res = ResourceBundle.getBundle(" org.tp23.antinstaller.renderer.Res");35 private static final ResourceBundle res = ResourceBundle.getBundle("resources.LanguagePack"); 36 36 37 37 protected DateInput inputField; -
release-kits/shared/ant-installer/src/org/tp23/antinstaller/renderer/swing/DirectoryInputRenderer.java
r15206 r15210 37 37 extends SwingOutputFieldRenderer { 38 38 39 private static final ResourceBundle res = ResourceBundle.getBundle(" org.tp23.antinstaller.renderer.Res");39 private static final ResourceBundle res = ResourceBundle.getBundle("resources.LanguagePack"); 40 40 41 41 private static final String EMPTY_STRING = ""; -
release-kits/shared/ant-installer/src/org/tp23/antinstaller/renderer/swing/FileInputRenderer.java
r14982 r15210 37 37 extends SwingOutputFieldRenderer { 38 38 39 private static final ResourceBundle res = ResourceBundle.getBundle(" org.tp23.antinstaller.renderer.Res");39 private static final ResourceBundle res = ResourceBundle.getBundle("resources.LanguagePack"); 40 40 41 41 protected FileInput inputField; -
release-kits/shared/ant-installer/src/org/tp23/antinstaller/renderer/swing/LargeSelectInputRenderer.java
r14982 r15210 31 31 extends SwingOutputFieldRenderer { 32 32 33 private static final ResourceBundle res = ResourceBundle.getBundle(" org.tp23.antinstaller.renderer.Res");33 private static final ResourceBundle res = ResourceBundle.getBundle("resources.LanguagePack"); 34 34 35 35 protected LargeSelectInput inputField; -
release-kits/shared/ant-installer/src/org/tp23/antinstaller/renderer/swing/LicensePageRenderer.java
r14982 r15210 43 43 extends SwingPageRenderer { 44 44 45 private static final ResourceBundle res = ResourceBundle.getBundle(" org.tp23.antinstaller.renderer.Res");45 private static final ResourceBundle res = ResourceBundle.getBundle("resources.LanguagePack"); 46 46 47 47 private JTextArea licenseTextArea = new JTextArea(); … … 59 59 InputStream licensein = this.getClass().getResourceAsStream(resource); 60 60 if (licensein == null) { 61 //delete me 62 System.out.println( "licensein is null" ); 61 63 throw new ConfigurationException("License resource '" + resource + "' is missing from installer"); 62 64 } … … 79 81 scrollPane.getViewport().add(licenseTextArea); 80 82 scrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS); 81 scrollPane.setBorder(BorderFactory.createCompoundBorder( 82 BorderFactory.createEmptyBorder(4, 4, 4, 4), 83 BorderFactory.createEtchedBorder())); 83 84 scrollPane.setBorder( 85 BorderFactory.createCompoundBorder( 86 BorderFactory.createEmptyBorder(4, 4, 4, 4), 87 BorderFactory.createEtchedBorder() 88 ) 89 ); 84 90 this.add(scrollPane, BorderLayout.CENTER); 85 91 86 87 88 92 getNextButton().setText( res.getString( "license.next.text" ) ); 93 getNextButton().setIcon(getImage("/resources/icons/ok.png")); 94 getCancelButton().setText( res.getString( "license.cancel.text" ) ); 89 95 90 96 } -
release-kits/shared/ant-installer/src/org/tp23/antinstaller/renderer/swing/PasswordTextInputRenderer.java
r14982 r15210 28 28 public class PasswordTextInputRenderer extends ValidatedTextInputRenderer{ 29 29 30 private static final ResourceBundle res = ResourceBundle.getBundle(" org.tp23.antinstaller.renderer.Res");30 private static final ResourceBundle res = ResourceBundle.getBundle("resources.LanguagePack"); 31 31 32 32 public PasswordTextInputRenderer() { -
release-kits/shared/ant-installer/src/org/tp23/antinstaller/renderer/swing/ProgressPageRenderer.java
r14982 r15210 47 47 implements AntOutputRenderer { 48 48 49 private static final ResourceBundle res = ResourceBundle.getBundle(" org.tp23.antinstaller.renderer.Res");49 private static final ResourceBundle res = ResourceBundle.getBundle("resources.LanguagePack"); 50 50 private static final int MESSAGE_PANEL_HEIGHT = 30; 51 51 -
release-kits/shared/ant-installer/src/org/tp23/antinstaller/renderer/swing/SelectInputRenderer.java
r14982 r15210 33 33 extends SwingOutputFieldRenderer { 34 34 35 private static final ResourceBundle res = ResourceBundle.getBundle(" org.tp23.antinstaller.renderer.Res");35 private static final ResourceBundle res = ResourceBundle.getBundle("resources.LanguagePack"); 36 36 37 37 protected SelectInput inputField; -
release-kits/shared/ant-installer/src/org/tp23/antinstaller/renderer/swing/SwingPageRenderer.java
r15206 r15210 49 49 extends JPanel { 50 50 51 private static final ResourceBundle res = ResourceBundle.getBundle(" org.tp23.antinstaller.renderer.Res");51 private static final ResourceBundle res = ResourceBundle.getBundle("resources.LanguagePack"); 52 52 53 53 // gui components … … 135 135 titleLayout.setRows(2); 136 136 titleLayout.setVgap(2); 137 //titlePanel.setMinimumSize(new Dimension(SizeConstants.PAGE_WIDTH, SizeConstants.TITLE_PANEL_HEIGHT));138 //titlePanel.setMaximumSize(new Dimension(SizeConstants.PAGE_WIDTH, SizeConstants.TITLE_PANEL_HEIGHT));139 //titlePanel.setPreferredSize(new Dimension(SizeConstants.PAGE_WIDTH, SizeConstants.TITLE_PANEL_HEIGHT));137 titlePanel.setMinimumSize(new Dimension(SizeConstants.PAGE_WIDTH, SizeConstants.TITLE_PANEL_HEIGHT)); 138 titlePanel.setMaximumSize(new Dimension(SizeConstants.PAGE_WIDTH, SizeConstants.TITLE_PANEL_HEIGHT)); 139 titlePanel.setPreferredSize(new Dimension(SizeConstants.PAGE_WIDTH, SizeConstants.TITLE_PANEL_HEIGHT)); 140 140 141 141 titleLabel.setText(page.getDisplayText()); 142 142 titleLabel.setFont(titleFont); 143 143 setImage(page.getImageResource()); 144 //imagePanel.setMinimumSize(new Dimension(SizeConstants.PAGE_WIDTH, SizeConstants.TITLE_IMAGE_HEIGHT));145 //imagePanel.setMaximumSize(new Dimension(SizeConstants.PAGE_WIDTH, SizeConstants.TITLE_IMAGE_HEIGHT));146 //imagePanel.setPreferredSize(new Dimension(SizeConstants.PAGE_WIDTH, SizeConstants.TITLE_IMAGE_HEIGHT));144 imagePanel.setMinimumSize(new Dimension(SizeConstants.PAGE_WIDTH, SizeConstants.TITLE_IMAGE_HEIGHT)); 145 imagePanel.setMaximumSize(new Dimension(SizeConstants.PAGE_WIDTH, SizeConstants.TITLE_IMAGE_HEIGHT)); 146 imagePanel.setPreferredSize(new Dimension(SizeConstants.PAGE_WIDTH, SizeConstants.TITLE_IMAGE_HEIGHT)); 147 147 148 148 // Ctrl Panel -
release-kits/shared/ant-installer/src/org/tp23/antinstaller/renderer/swing/ValidatedTextInputRenderer.java
r14982 r15210 33 33 public class ValidatedTextInputRenderer extends SwingOutputFieldRenderer { 34 34 35 private static final ResourceBundle res = ResourceBundle.getBundle(" org.tp23.antinstaller.renderer.Res");35 private static final ResourceBundle res = ResourceBundle.getBundle("resources.LanguagePack"); 36 36 37 37 protected ValidatedTextInput inputField; -
release-kits/shared/ant-installer/src/org/tp23/antinstaller/renderer/text/ConfirmPasswordTextInputRenderer.java
r14982 r15210 5 5 public class ConfirmPasswordTextInputRenderer extends PasswordTextInputRenderer { 6 6 7 private static final ResourceBundle res = ResourceBundle.getBundle(" org.tp23.antinstaller.renderer.Res");7 private static final ResourceBundle res = ResourceBundle.getBundle("resources.LanguagePack"); 8 8 9 9 protected String getErrorMessage(){ -
release-kits/shared/ant-installer/src/org/tp23/antinstaller/runtime/ExecInstall.java
r14982 r15210 49 49 public class ExecInstall { 50 50 51 private static final ResourceBundle res = ResourceBundle.getBundle(" org.tp23.antinstaller.renderer.Res");51 private static final ResourceBundle res = ResourceBundle.getBundle("resources.LanguagePack"); 52 52 public static final String CONFIG_RESOURCE = "/org/tp23/antinstaller/runtime/exe/script.fconfig"; 53 53 -
release-kits/shared/ant-installer/src/org/tp23/antinstaller/runtime/SwingRunner.java
r15206 r15210 54 54 public class SwingRunner extends AntRunner implements Runner, PageCompletionListener { 55 55 56 private static final ResourceBundle res = ResourceBundle.getBundle(" org.tp23.antinstaller.renderer.Res");56 private static final ResourceBundle res = ResourceBundle.getBundle("resources.LanguagePack"); 57 57 58 58 -
release-kits/shared/ant-installer/src/org/tp23/antinstaller/runtime/TextRunner.java
r14982 r15210 47 47 implements Runner { 48 48 49 private static final ResourceBundle res = ResourceBundle.getBundle(" org.tp23.antinstaller.renderer.Res");49 private static final ResourceBundle res = ResourceBundle.getBundle("resources.LanguagePack"); 50 50 51 51 protected final InstallerContext ctx; -
release-kits/shared/ant-installer/src/org/tp23/antinstaller/runtime/exe/AntLauncherFilter.java
r14982 r15210 38 38 public class AntLauncherFilter implements ExecuteFilter { 39 39 40 private static final ResourceBundleHelper resHelper = new ResourceBundleHelper(" org.tp23.antinstaller.renderer.Res");40 private static final ResourceBundleHelper resHelper = new ResourceBundleHelper("resources.LanguagePack"); 41 41 42 42 -
release-kits/shared/ant-installer/src/org/tp23/antinstaller/runtime/exe/LoadConfigFilter.java
r14982 r15210 279 279 */ 280 280 private OutputField getOutputFieldType(String type, Element field) throws ConfigurationException { 281 281 282 if (type.equalsIgnoreCase("text")) { 282 283 return new UnvalidatedTextInput(); -
release-kits/shared/ant-installer/src/org/tp23/antinstaller/runtime/exe/PropertyLoaderFilter.java
r14982 r15210 60 60 public class PropertyLoaderFilter implements ExecuteFilter { 61 61 62 private static final ResourceBundle res = ResourceBundle.getBundle(" org.tp23.antinstaller.renderer.Res");62 private static final ResourceBundle res = ResourceBundle.getBundle("resources.LanguagePack"); 63 63 64 64 public static final String LOAD = "true"; -
release-kits/shared/ant-installer/src/org/tp23/antinstaller/selfextract/ProgressIndicator.java
r14982 r15210 52 52 53 53 public static final String IMAGE_RESOURCE = "/resources/extract-image.png"; 54 private static final ResourceBundle res = ResourceBundle.getBundle(" org.tp23.antinstaller.renderer.Res");54 private static final ResourceBundle res = ResourceBundle.getBundle("resources.LanguagePack"); 55 55 56 56 private JPanel jPanel1 = new JPanel(); -
release-kits/shared/ant-installer/src_ext/org/tp23/antinstaller/taskdefs/Installer.java
r14982 r15210 335 335 } 336 336 catch (Exception ex) { 337 log("validation failed"); 337 338 ex.printStackTrace(); 338 339 err();
Note:
See TracChangeset
for help on using the changeset viewer.