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


Java Version.versionString方法代码示例

本文整理汇总了Java中net.sourceforge.plantuml.version.Version.versionString方法的典型用法代码示例。如果您正苦于以下问题:Java Version.versionString方法的具体用法?Java Version.versionString怎么用?Java Version.versionString使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在net.sourceforge.plantuml.version.Version的用法示例。


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

示例1: execute

import net.sourceforge.plantuml.version.Version; //导入方法依赖的package包/类
public CommandExecutionResult execute(S system, BlocLines lines) {
	try {
		final CommandExecutionResult result = cmd.execute(system, lines);
		// if (result.isOk()) {
		// // TRACECOMMAND
		// System.err.println("CMD = " + cmd.getClass());
		// }
		return result;
	} catch (Throwable t) {
		Log.error("Error " + t);
		t.printStackTrace();
		String msg = "You should send a mail to [email protected] or post to http://plantuml.com/qa with this log (V" + Version.versionString()
				+ ")";
		Log.error(msg);
		msg += " " + t.toString();
		return CommandExecutionResult.error(msg, t);
	}
}
 
开发者ID:Banno,项目名称:sbt-plantuml-plugin,代码行数:19,代码来源:ProtectedCommand.java

示例2: execute

import net.sourceforge.plantuml.version.Version; //导入方法依赖的package包/类
public CommandExecutionResult execute(S system, List<String> lines) {
		try {
			final CommandExecutionResult result = cmd.execute(system, lines);
//			if (result.isOk()) {
//				// TRACECOMMAND
//				System.err.println("CMD = " + cmd.getClass());
//			}
			return result;
		} catch (Throwable t) {
			t.printStackTrace();
			final ByteArrayOutputStream baos = new ByteArrayOutputStream();
			final PrintWriter pw = new PrintWriter(baos);
			t.printStackTrace(pw);
			Log.error("Error " + t);
			String msg = "You should send a mail to [email protected] with this log (V" + Version.versionString()
					+ ")";
			Log.error(msg);
			msg += " " + new String(baos.toByteArray());
			return CommandExecutionResult.error(msg);
		}
	}
 
开发者ID:mar9000,项目名称:plantuml,代码行数:22,代码来源:ProtectedCommand.java

示例3: getNorthLabel

import net.sourceforge.plantuml.version.Version; //导入方法依赖的package包/类
private JComponent getNorthLabel() {
	final JLabel text = new JLabel("PlantUML (" + Version.versionString() + ")");
	final Font font = text.getFont().deriveFont(Font.BOLD, (float) 20.0);
	text.setFont(font);
	final JPanel ptext = new JPanel();
	ptext.add(text);

	final JLabel icon = new JLabel(new ImageIcon(PSystemVersion.getPlantumlImage()));

	final JPanel result = new JPanel(new BorderLayout());
	result.add(ptext, BorderLayout.CENTER);
	result.add(icon, BorderLayout.EAST);

	return result;
}
 
开发者ID:Banno,项目名称:sbt-plantuml-plugin,代码行数:16,代码来源:LicenseWindow.java

示例4: EpsGraphics

import net.sourceforge.plantuml.version.Version; //导入方法依赖的package包/类
public EpsGraphics() {
	header.append("%!PS-Adobe-3.0 EPSF-3.0\n");
	String v = Version.versionString();
	if (v.endsWith("beta") == false) {
		v += "    ";
	}
	header.append("%%Creator: PlantUML v" + v + "\n");
	header.append("%%Title: noTitle\n");
	// header.append("%%CreationDate: " + new Date() + "\n");
	setcolorgradient.add(new PostScriptCommandRaw("3 index 7 index sub 1 index mul 7 index add", true));
	setcolorgradient.add(new PostScriptCommandRaw("3 index 7 index sub 2 index mul 7 index add", true));
	setcolorgradient.add(new PostScriptCommandRaw("3 index 7 index sub 3 index mul 7 index add", true));
	setcolorgradient.add(new PostScriptCommandRaw("setrgbcolor", true));
	// setcolorgradient.add(new PostScriptCommandRaw("0 7 1 {pop} for"));
	setcolorgradient.add(new PostScriptCommandRaw("pop pop pop pop pop pop pop ", true));

	simplerect.add(new PostScriptCommandRaw("newpath moveto 1 index 0 rlineto", true));
	simplerect.add(new PostScriptCommandRaw("0 exch rlineto", true));
	simplerect.add(new PostScriptCommandRaw("neg 0 rlineto", true));

	roundrect.add(new PostScriptCommandRaw("newpath", true));
	roundrect.add(new PostScriptCommandRaw("dup 3 index add 2 index 2 index add 2 index 180 270 arc", true));
	roundrect.add(new PostScriptCommandRaw("2 index 5 index add 1 index sub 2 index 2 index add 2 index 270 0 arc",
			true));
	roundrect.add(new PostScriptCommandRaw(
			"2 index 5 index add 1 index sub 2 index 5 index add 2 index sub 2 index 0 90 arc", true));
	roundrect.add(new PostScriptCommandRaw("dup 3 index add 2 index 5 index add 2 index sub 2 index 90 180 arc",
			true));
	roundrect.add(new PostScriptCommandRaw("pop pop pop pop pop ", true));
}
 
开发者ID:mar9000,项目名称:plantuml,代码行数:31,代码来源:EpsGraphics.java

示例5: determinePlantumlVersion

import net.sourceforge.plantuml.version.Version; //导入方法依赖的package包/类
/**
 * Use reflection to determine the plantuml version that is available on the classpath.
 *
 * @return The plant UML version or the empty String (<code>""</code>) if not found.
 */
private static synchronized String determinePlantumlVersion() {
    return Version.versionString();
}
 
开发者ID:talsma-ict,项目名称:umldoclet,代码行数:9,代码来源:PlantumlSupport.java


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