01: /*
02: * Gruntspud
03: *
04: * Copyright (C) 2002 Brett Smith.
05: *
06: * Written by: Brett Smith <t_magicthize@users.sourceforge.net>
07: *
08: * This program is free software; you can redistribute it and/or
09: * modify it under the terms of the GNU Library General Public License
10: * as published by the Free Software Foundation; either version 2 of
11: * the License, or (at your option) any later version.
12: * This program is distributed in the hope that it will be useful,
13: * but WITHOUT ANY WARRANTY; without even the implied warranty of
14: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15: * GNU Library General Public License for more details.
16: *
17: * You should have received a copy of the GNU Library General Public
18: * License along with this program; if not, write to the Free Software
19: * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20: */
21:
22: package gruntspud;
23:
24: /**
25: * This holds everything about a single node in the file heirarchy such if it is in CVS (or not),
26: * all of its children (if any), its status, if it has a file that exists associated with it etc etc.
27: * If the node can have children, the list is not actually loaded until a client requests for the
28: * number of children available. This prevents the entire directory structure from being loaded upon
29: * creation of the root node, nodes are only loaded when the parent is expanded by the user.
30: *
31: *@author magicthize
32: *@created 26 May 2002
33: */
34: public class VersionInfo {
35: private final static String TAG = "$Name: R0_4_6-beta $";
36:
37: /**
38: * DOCUMENT ME!
39: *
40: * @return DOCUMENT ME!
41: */
42: public static String getVersion() {
43: return TAG.equals("$Nam" + "e: $") ? "HEAD"
44: : ((TAG.length() > 7) ? TAG.substring(7,
45: TAG.length() - 1).replace('_', '.') : "N/A");
46: }
47: }
|