[Jtreeview-cvs] jtreeview commit notification
Brought to you by:
alokito
|
From: Alok S. <al...@us...> - 2004-06-29 18:44:32
|
Update of /cvsroot/jtreeview/LinkedView/src/edu/stanford/genetics/treeview/app In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19454/src/edu/stanford/genetics/treeview/app Modified Files: TreeViewApp.java Log Message: added support for -t flag, to specify what type of frame should be opened on the command line. Index: TreeViewApp.java =================================================================== RCS file: /cvsroot/jtreeview/LinkedView/src/edu/stanford/genetics/treeview/app/TreeViewApp.java,v retrieving revision 1.28 retrieving revision 1.29 diff -C2 -d -r1.28 -r1.29 *** TreeViewApp.java 21 Jun 2004 16:57:29 -0000 1.28 --- TreeViewApp.java 29 Jun 2004 18:44:23 -0000 1.29 *************** *** 284,287 **** --- 284,291 ---- * Main method for TreeView application. * + * Usage: java -jar treeview.jar -r <my cdt> -t [auto|classic|kmeans|linked]. + * + * uses auto by default. + * * @param astring Standard argument string. */ *************** *** 299,302 **** --- 303,307 ---- int arg; String sFilePath = null; + String frameType = "auto"; for (arg = 0; arg < astring.length; arg++) { // -r specifies a resource to be loaded at startup *************** *** 307,310 **** --- 312,322 ---- } } + // -t specifies a file, but is deprecated. + if (astring[arg].equals("-t")) { + if (astring.length > arg + 1) { + frameType = astring[arg + 1]; + arg++; + } + } // -f specifies a file, but is deprecated. if (astring[arg].equals("-f")) { *************** *** 324,327 **** --- 336,340 ---- fileSet = new FileSet(file.getName(), file.getParent()+File.separator); } + fileSet.setStyle(frameType); /* TreeViewFrame tvFrame = new TreeViewFrame(treeView); |