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


Java Version类代码示例

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


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

示例1: InstallerGUI

import lombok.core.Version; //导入依赖的package包/类
/**
 * Creates a new installer that starts out invisible.
 * Call the {@link #show()} method on a freshly created installer to render it.
 */
public InstallerGUI() {
	appWindow = new JFrame(String.format("Project Lombok v%s - Installer", Version.getVersion()));
	
	appWindow.setLocationByPlatform(true);
	appWindow.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
	appWindow.setResizable(false);
	appWindow.setIconImage(Toolkit.getDefaultToolkit().getImage(Installer.class.getResource("lombokIcon.png")));
	
	try {
		javacArea = buildJavacArea();
		ideArea = buildIdeArea();
		uninstallArea = buildUninstallArea();
		uninstallArea.setVisible(false);
		howIWorkArea = buildHowIWorkArea();
		howIWorkArea.setVisible(false);
		buildChrome(appWindow.getContentPane());
		appWindow.pack();
	} catch (Throwable t) {
		handleException(t);
	}
}
 
开发者ID:git03394538,项目名称:lombok-ianchiu,代码行数:26,代码来源:InstallerGUI.java

示例2: InstallerGUI

import lombok.core.Version; //导入依赖的package包/类
/**
 * Creates a new installer that starts out invisible.
 * Call the {@link #show()} method on a freshly created installer to render it.
 */
public InstallerGUI() {
	appWindow = new JFrame(String.format("Project Lombok v%s - Installer", Version.getVersion()));
	
	appWindow.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
	appWindow.setResizable(false);
	appWindow.setIconImage(Toolkit.getDefaultToolkit().getImage(Installer.class.getResource("lombokIcon.png")));
	
	try {
		javacArea = buildJavacArea();
		ideArea = buildIdeArea();
		uninstallArea = buildUninstallArea();
		uninstallArea.setVisible(false);
		howIWorkArea = buildHowIWorkArea();
		howIWorkArea.setVisible(false);
		buildChrome(appWindow.getContentPane());
		appWindow.pack();
	} catch (Throwable t) {
		handleException(t);
	}
}
 
开发者ID:redundent,项目名称:lombok,代码行数:25,代码来源:InstallerGUI.java

示例3: printHeadlessInfo

import lombok.core.Version; //导入依赖的package包/类
/**
 * If run in headless mode, the installer can't show its fancy GUI. There's little point in running
 * the installer without a GUI environment, as Eclipse doesn't run in headless mode either, so
 * we'll make do with showing some basic info on Lombok as well as instructions for using lombok with javac.
 */
private static void printHeadlessInfo() {
	System.out.printf("About lombok v%s\n" +
			"Lombok makes java better by providing very spicy additions to the Java programming language," +
			"such as using @Getter to automatically generate a getter method for any field.\n\n" +
			"Browse to %s for more information. To install lombok on Eclipse, re-run this jar file on a " +
			"graphical computer system - this message is being shown because your terminal is not graphics capable.\n" +
			"Alternatively, use the command line installer (java -jar lombok.jar install --help).\n" +
			"If you are just using 'javac' or a tool that calls on javac, no installation is neccessary; just " +
			"make sure lombok.jar is in the classpath when you compile. Example:\n\n" +
			"   java -cp lombok.jar MyCode.java\n",
			Version.getVersion(), ABOUT_LOMBOK_URL);
}
 
开发者ID:git03394538,项目名称:lombok-ianchiu,代码行数:18,代码来源:Installer.java

示例4: logIntro

import lombok.core.Version; //导入依赖的package包/类
private static void logIntro() {
	if (loggedIntro.getAndSet(true)) return;
	
	String version;
	try {
		version = Version.getFullVersion();
	} catch (Exception e) {
		version = Version.getVersion();
	}
	
	logToFile(String.format("{%s} [%s -- START %s]\n", PROCESS_ID, new Date(), version));
}
 
开发者ID:git03394538,项目名称:lombok-ianchiu,代码行数:13,代码来源:AssertionLogger.java

示例5: addLombokNotesToEclipseAboutDialog

import lombok.core.Version; //导入依赖的package包/类
public static String addLombokNotesToEclipseAboutDialog(String origReturnValue, String key) {
	if ("aboutText".equals(key)) {
		return origReturnValue + "\n\nLombok " + Version.getFullVersion() + " is installed. http://projectlombok.org/";
	}
	
	return origReturnValue;
}
 
开发者ID:redundent,项目名称:lombok,代码行数:8,代码来源:PatchFixes.java

示例6: addLombokNotesToEclipseAboutDialog

import lombok.core.Version; //导入依赖的package包/类
public static String addLombokNotesToEclipseAboutDialog(String origReturnValue, String key) {
	if ("aboutText".equals(key)) {
		return origReturnValue + "\n\nLombok " + Version.getFullVersion() + " is installed. https://projectlombok.org/";
	}
	return origReturnValue;
}
 
开发者ID:git03394538,项目名称:lombok-ianchiu,代码行数:7,代码来源:PatchFixesShadowLoaded.java


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