01: package com.jeta.forms.support;
02:
03: import com.jeta.forms.gui.common.FormUtils;
04:
05: /**
06: * AbeilleForms.java is an automatically generated java file. If you want to
07: * make changes, you must edit the AbeilleForms.txt file. The build script will
08: * read the file and generate the corresponding Java File
09: *
10: * Some global constants and declarations for this application.
11: *
12: * @author Jeff Tassin
13: */
14: public class AbeilleForms {
15:
16: /**
17: * @return a version string for the application
18: */
19: public static String getVersion() {
20: StringBuffer buffer = new StringBuffer();
21: // buffer.append( "Beta " );
22: buffer.append(MAJOR_VERSION);
23: buffer.append(".");
24: buffer.append(MINOR_VERSION);
25: buffer.append(".");
26: buffer.append(SUBMINOR_VERSION);
27: buffer.append(".");
28: if ((MILESTONE != null) && (!"".equals(MILESTONE))) {
29: buffer.append(" ").append(MILESTONE);
30: }
31:
32: if (FormUtils.isDebug()) {
33: buffer.append(" (debug) ");
34:
35: buffer.append("build (");
36: buffer.append(BUILD_NUMBER);
37: buffer.append(") ");
38: }
39: return buffer.toString();
40: }
41:
42: /**
43: * @return a version string for the application
44: */
45: public static String getVersionEx() {
46: StringBuffer buffer = new StringBuffer();
47: // buffer.append( "Beta " );
48: buffer.append(MAJOR_VERSION);
49: buffer.append(".");
50: buffer.append(MINOR_VERSION);
51: buffer.append(".");
52: buffer.append(SUBMINOR_VERSION);
53: if ((MILESTONE != null) && (!"".equals(MILESTONE))) {
54: buffer.append(" ").append(MILESTONE);
55: }
56: buffer.append(" (build ");
57: buffer.append(BUILD_NUMBER);
58: buffer.append(") ");
59: buffer.append(BUILD_DATE);
60: return buffer.toString();
61: }
62:
63: /**
64: * @return a version string relevant for use within a Frame's titlebar.
65: */
66: public static String getVersionTitle() {
67: StringBuffer buffer = new StringBuffer();
68: buffer.append(MAJOR_VERSION);
69: buffer.append(".");
70: buffer.append(MINOR_VERSION);
71: buffer.append(".");
72: buffer.append(SUBMINOR_VERSION);
73: if ((MILESTONE != null) && (!"".equals(MILESTONE))) {
74: buffer.append(" ").append(MILESTONE);
75: }
76: return buffer.toString();
77: }
78:
79: /* do not add anything below this line - auto generated by build script */
80:
81: public static int MAJOR_VERSION = 2;
82: public static int MINOR_VERSION = 1;
83: public static int SUBMINOR_VERSION = 0;
84: public static String MILESTONE = "M3";
85: public static int BUILD_NUMBER = 129;
86: public static String DATE_FORMAT = "MM-dd-yyyy HH:mm:ss";
87: public static String BUILD_DATE = "02-14-2008 13:06:02";
88:
89: }
|