net.sf.launch4j.config.VersionInfo Java Examples
The following examples show how to use
net.sf.launch4j.config.VersionInfo.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: VersionInfoFormImpl.java From beast-mcmc with GNU Lesser General Public License v2.1 | 6 votes |
public VersionInfoFormImpl(Bindings bindings, JFileChooser fc) { _languageCombo.setModel(new DefaultComboBoxModel(LanguageID.sortedValues())); bindings.addOptComponent("versionInfo", VersionInfo.class, _versionInfoCheck) .add("versionInfo.fileVersion", _fileVersionField) .add("versionInfo.productVersion", _productVersionField) .add("versionInfo.fileDescription", _fileDescriptionField) .add("versionInfo.internalName", _internalNameField) .add("versionInfo.originalFilename", _originalFilenameField) .add("versionInfo.productName", _productNameField) .add("versionInfo.txtFileVersion", _txtFileVersionField) .add("versionInfo.txtProductVersion", _txtProductVersionField) .add("versionInfo.companyName", _companyNameField) .add("versionInfo.copyright", _copyrightField) .add("versionInfo.trademarks", _trademarksField) .add("versionInfo.languageIndex", _languageCombo, VersionInfo.DEFAULT_LANGUAGE_INDEX) ; }
Example #2
Source File: VersionInfoFormImpl.java From jmkvpropedit with BSD 2-Clause "Simplified" License | 6 votes |
public VersionInfoFormImpl(Bindings bindings, JFileChooser fc) { _languageCombo.setModel(new DefaultComboBoxModel(LanguageID.sortedValues())); bindings.addOptComponent("versionInfo", VersionInfo.class, _versionInfoCheck) .add("versionInfo.fileVersion", _fileVersionField) .add("versionInfo.productVersion", _productVersionField) .add("versionInfo.fileDescription", _fileDescriptionField) .add("versionInfo.internalName", _internalNameField) .add("versionInfo.originalFilename", _originalFilenameField) .add("versionInfo.productName", _productNameField) .add("versionInfo.txtFileVersion", _txtFileVersionField) .add("versionInfo.txtProductVersion", _txtProductVersionField) .add("versionInfo.companyName", _companyNameField) .add("versionInfo.copyright", _copyrightField) .add("versionInfo.trademarks", _trademarksField) .add("versionInfo.languageIndex", _languageCombo, VersionInfo.DEFAULT_LANGUAGE_INDEX) ; }
Example #3
Source File: RcBuilder.java From beast-mcmc with GNU Lesser General Public License v2.1 | 5 votes |
private void addVersionInfo(VersionInfo v) { if (v == null) { return; } _sb.append("1 VERSIONINFO\n"); _sb.append("FILEVERSION "); _sb.append(v.getFileVersion().replaceAll("\\.", ", ")); _sb.append("\nPRODUCTVERSION "); _sb.append(v.getProductVersion().replaceAll("\\.", ", ")); _sb.append("\nFILEFLAGSMASK 0\n" + "FILEOS 0x40000\n" + "FILETYPE 1\n" + "{\n" + " BLOCK \"StringFileInfo\"\n" + " {\n" + " BLOCK \""); _sb.append(String.format("%04X%04X", v.getLanguage().getId(), CharsetID.MULTILINGUAL.getId())); _sb.append("\"\n" + " {\n"); addVerBlockValue("CompanyName", v.getCompanyName()); addVerBlockValue("FileDescription", v.getFileDescription()); addVerBlockValue("FileVersion", v.getTxtFileVersion()); addVerBlockValue("InternalName", v.getInternalName()); addVerBlockValue("LegalCopyright", v.getCopyright()); addVerBlockValue("LegalTrademarks", v.getTrademarks()); addVerBlockValue("OriginalFilename", v.getOriginalFilename()); addVerBlockValue("ProductName", v.getProductName()); addVerBlockValue("ProductVersion", v.getTxtProductVersion()); _sb.append(" }\n }\nBLOCK \"VarFileInfo\"\n{\nVALUE \"Translation\", "); _sb.append(String.format("0x%04X, 0x%04X", v.getLanguage().getId(), CharsetID.MULTILINGUAL.getId())); _sb.append("\n}\n}"); }
Example #4
Source File: VersionInfoFormImpl.java From PyramidShader with GNU General Public License v3.0 | 5 votes |
public VersionInfoFormImpl(Bindings bindings, JFileChooser fc) { bindings.addOptComponent("versionInfo", VersionInfo.class, _versionInfoCheck) .add("versionInfo.fileVersion", _fileVersionField) .add("versionInfo.productVersion", _productVersionField) .add("versionInfo.fileDescription", _fileDescriptionField) .add("versionInfo.internalName", _internalNameField) .add("versionInfo.originalFilename", _originalFilenameField) .add("versionInfo.productName", _productNameField) .add("versionInfo.txtFileVersion", _txtFileVersionField) .add("versionInfo.txtProductVersion", _txtProductVersionField) .add("versionInfo.companyName", _companyNameField) .add("versionInfo.copyright", _copyrightField); }
Example #5
Source File: RcBuilder.java From PyramidShader with GNU General Public License v3.0 | 5 votes |
private void addVersionInfo(VersionInfo v) { if (v == null) { return; } _sb.append("1 VERSIONINFO\n"); _sb.append("FILEVERSION "); _sb.append(v.getFileVersion().replaceAll("\\.", ", ")); _sb.append("\nPRODUCTVERSION "); _sb.append(v.getProductVersion().replaceAll("\\.", ", ")); _sb.append("\nFILEFLAGSMASK 0\n" + "FILEOS 0x40000\n" + "FILETYPE 1\n" + "{\n" + " BLOCK \"StringFileInfo\"\n" + " {\n" + " BLOCK \"040904E4\"\n" + // English " {\n"); addVerBlockValue("CompanyName", v.getCompanyName()); addVerBlockValue("FileDescription", v.getFileDescription()); addVerBlockValue("FileVersion", v.getTxtFileVersion()); addVerBlockValue("InternalName", v.getInternalName()); addVerBlockValue("LegalCopyright", v.getCopyright()); addVerBlockValue("OriginalFilename", v.getOriginalFilename()); addVerBlockValue("ProductName", v.getProductName()); addVerBlockValue("ProductVersion", v.getTxtProductVersion()); _sb.append(" }\n }\nBLOCK \"VarFileInfo\"\n{\nVALUE \"Translation\", 0x0409, 0x04E4\n}\n}"); }
Example #6
Source File: RcBuilder.java From jmkvpropedit with BSD 2-Clause "Simplified" License | 5 votes |
private void addVersionInfo(VersionInfo v) { if (v == null) { return; } _sb.append("1 VERSIONINFO\n"); _sb.append("FILEVERSION "); _sb.append(v.getFileVersion().replaceAll("\\.", ", ")); _sb.append("\nPRODUCTVERSION "); _sb.append(v.getProductVersion().replaceAll("\\.", ", ")); _sb.append("\nFILEFLAGSMASK 0\n" + "FILEOS 0x40000\n" + "FILETYPE 1\n" + "{\n" + " BLOCK \"StringFileInfo\"\n" + " {\n" + " BLOCK \""); _sb.append(String.format("%04X%04X", v.getLanguage().getId(), CharsetID.MULTILINGUAL.getId())); _sb.append("\"\n" + " {\n"); addVerBlockValue("CompanyName", v.getCompanyName()); addVerBlockValue("FileDescription", v.getFileDescription()); addVerBlockValue("FileVersion", v.getTxtFileVersion()); addVerBlockValue("InternalName", v.getInternalName()); addVerBlockValue("LegalCopyright", v.getCopyright()); addVerBlockValue("LegalTrademarks", v.getTrademarks()); addVerBlockValue("OriginalFilename", v.getOriginalFilename()); addVerBlockValue("ProductName", v.getProductName()); addVerBlockValue("ProductVersion", v.getTxtProductVersion()); _sb.append(" }\n }\nBLOCK \"VarFileInfo\"\n{\nVALUE \"Translation\", "); _sb.append(String.format("0x%04X, 0x%04X", v.getLanguage().getId(), CharsetID.MULTILINGUAL.getId())); _sb.append("\n}\n}"); }
Example #7
Source File: AntConfig.java From beast-mcmc with GNU Lesser General Public License v2.1 | 4 votes |
public void addVersionInfo(VersionInfo versionInfo) { checkNull(getVersionInfo(), "versionInfo"); setVersionInfo(versionInfo); }
Example #8
Source File: AntConfig.java From PyramidShader with GNU General Public License v3.0 | 4 votes |
public void addVersionInfo(VersionInfo versionInfo) { checkNull(getVersionInfo(), "versionInfo"); setVersionInfo(versionInfo); }
Example #9
Source File: AntConfig.java From jmkvpropedit with BSD 2-Clause "Simplified" License | 4 votes |
public void addVersionInfo(VersionInfo versionInfo) { checkNull(getVersionInfo(), "versionInfo"); setVersionInfo(versionInfo); }