当前位置: 首页>>代码示例>>Java>>正文


Java VersionInfo类代码示例

本文整理汇总了Java中net.sf.launch4j.config.VersionInfo的典型用法代码示例。如果您正苦于以下问题:Java VersionInfo类的具体用法?Java VersionInfo怎么用?Java VersionInfo使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


VersionInfo类属于net.sf.launch4j.config包,在下文中一共展示了VersionInfo类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: VersionInfoFormImpl

import net.sf.launch4j.config.VersionInfo; //导入依赖的package包/类
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)
	;
}
 
开发者ID:beast-dev,项目名称:beast-mcmc,代码行数:18,代码来源:VersionInfoFormImpl.java

示例2: VersionInfoFormImpl

import net.sf.launch4j.config.VersionInfo; //导入依赖的package包/类
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);
}
 
开发者ID:clidev,项目名称:spike.x,代码行数:14,代码来源:VersionInfoFormImpl.java

示例3: addVersionInfo

import net.sf.launch4j.config.VersionInfo; //导入依赖的package包/类
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}");     
}
 
开发者ID:clidev,项目名称:spike.x,代码行数:30,代码来源:RcBuilder.java

示例4: addVersionInfo

import net.sf.launch4j.config.VersionInfo; //导入依赖的package包/类
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}");
}
 
开发者ID:beast-dev,项目名称:beast-mcmc,代码行数:35,代码来源:RcBuilder.java

示例5: addVersionInfo

import net.sf.launch4j.config.VersionInfo; //导入依赖的package包/类
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}");     
}
 
开发者ID:p4553d,项目名称:carPirate,代码行数:28,代码来源:RcBuilder.java

示例6: addVersionInfo

import net.sf.launch4j.config.VersionInfo; //导入依赖的package包/类
public void addVersionInfo(VersionInfo versionInfo) {
	checkNull(getVersionInfo(), "versionInfo");
	setVersionInfo(versionInfo);
}
 
开发者ID:clidev,项目名称:spike.x,代码行数:5,代码来源:AntConfig.java


注:本文中的net.sf.launch4j.config.VersionInfo类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。