[opencoe-cvs] coekernel/src/COE/src/COE/java/org/opencoe/coe/kernel/util _OpenCOEApp.java,1.1.1.1,1.
Status: Alpha
Brought to you by:
rbroberg
From: <rbr...@us...> - 2003-11-15 19:49:38
|
Update of /cvsroot/opencoe/coekernel/src/COE/src/COE/java/org/opencoe/coe/kernel/util In directory sc8-pr-cvs1:/tmp/cvs-serv25433/java/org/opencoe/coe/kernel/util Modified Files: _OpenCOEApp.java Log Message: [ 841518 ] COESegInstall incorrectly parses args in Icons [ 841521 ] ApplicationManager mishandles arguments for commands Index: _OpenCOEApp.java =================================================================== RCS file: /cvsroot/opencoe/coekernel/src/COE/src/COE/java/org/opencoe/coe/kernel/util/_OpenCOEApp.java,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** _OpenCOEApp.java 19 Apr 2002 15:18:00 -0000 1.1.1.1 --- _OpenCOEApp.java 15 Nov 2003 19:49:35 -0000 1.2 *************** *** 1,91 **** /** ! * Copyright (C) 2002, Federal Linux Systems ! * ! * The project home for this software is http://www.opencoe.org ! * ! * This segment is free software; you can redistribute it and/or ! * modify it under the terms of the GNU Lesser General Public ! * License as published by the Free Software Foundation; either ! * version 2.1 of the License, or (at your option) any later version. ! * ! * This segment is distributed in the hope that it will be useful, ! * but WITHOUT ANY WARRANTY; without even the implied warranty of ! * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ! * Lesser General Public License for more details. ! * ! * You should have received a copy of the GNU Lesser General Public * License along with this segment; if not, write to the Free Software ! * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ! * ! **/ ! package org.opencoe.coe.kernel.util; import javax.swing.Icon; import javax.swing.ImageIcon; public class _OpenCOEApp { ! private String label; ! private String name; ! private String acctgrp; ! private String iconpath = new String("/h/COE/data/Icons/gnome-run.png"); ! private String execpath; ! private String args; ! private ImageIcon icon = new ImageIcon("/h/COE/data/Icons/gnome-run.png"); /// constructor methods /////////////////////////////////// ! public _OpenCOEApp(String name) { ! this.name = name; ! this.label = name; ! } ! public _OpenCOEApp(String label, String name, String acctgrp, String iconpath) { ! this.label = label; ! this.name = name; ! this.acctgrp = acctgrp; ! this.iconpath = iconpath; ! this.icon = new ImageIcon(iconpath); ! } - public _OpenCOEApp(String label, String name, String acctgrp, - String iconpath , String execpath) { - this.label = label; - this.name = name; - this.acctgrp = acctgrp; - this.iconpath = iconpath; - this.icon = new ImageIcon(iconpath); - this.execpath = execpath; - } ! public _OpenCOEApp(String label, String name, String acctgrp, ! String iconpath , String execpath, String args) { ! this.label = label; ! this.name = name; ! this.acctgrp = acctgrp; ! this.iconpath = iconpath; ! this.icon = new ImageIcon(iconpath); ! this.execpath = execpath; ! this.args = args; ! } /// setter methods /////////////////////////////////// ! public void setLabel(String label) { this.label = label; } ! public void setAcctGrp(String acctGrp) { this.acctgrp = acctgrp; } ! public void setExecPath(String execpath) { this.execpath = execpath; } ! public void setArgs(String args) { this.args = args; } ! public void setIconPath(String iconpath) { this.iconpath = iconpath; ! this.icon = new ImageIcon(iconpath); } /// getter methods /////////////////////////////////// ! public String toString() { return name; } ! public String getName() { return name; } ! public String getLabel() { return label; } ! public String getIconPath() { return iconpath; } ! public ImageIcon getIcon() { return icon; } ! public String getExecPath() { return execpath; } ! public String getArgs() { return args; } } --- 1,254 ---- /** ! * Copyright (C) 2002, Federal Linux Systems The project home for this software ! * is http://www.opencoe.org This segment is free software; you can ! * redistribute it and/or modify it under the terms of the GNU Lesser General ! * Public License as published by the Free Software Foundation; either version ! * 2.1 of the License, or (at your option) any later version. This segment is ! * distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; ! * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A ! * PARTICULAR PURPOSE. See the GNU Lesser General Public License for more ! * details. You should have received a copy of the GNU Lesser General Public * License along with this segment; if not, write to the Free Software ! * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ! */ ! package org.opencoe.coe.kernel.util; import javax.swing.Icon; import javax.swing.ImageIcon; + /** + * Description of the Class + * + *@author rbroberg + *@created November 14, 2003 + */ public class _OpenCOEApp { ! private String label; ! private String name; ! private String acctgrp; ! private String iconpath = new String("/h/COE/data/Icons/gnome-run.png"); ! private String execpath; ! private String args; ! private ImageIcon icon = new ImageIcon("/h/COE/data/Icons/gnome-run.png"); ! private String initclass; ! /// constructor methods /////////////////////////////////// ! /** ! * Constructor for the _OpenCOEApp object ! ! *@param name Description of the Parameter ! */ ! public _OpenCOEApp(String name) { ! this.name = name; ! this.label = name; ! } ! ! /** ! * Constructor for the _OpenCOEApp object ! * ! *@param label Description of the Parameter ! *@param name Description of the Parameter ! *@param acctgrp Description of the Parameter ! *@param iconpath Description of the Parameter ! */ ! public _OpenCOEApp(String label, String name, String acctgrp, String iconpath) { ! this.label = label; ! this.name = name; ! this.acctgrp = acctgrp; ! this.iconpath = iconpath; ! this.icon = new ImageIcon(iconpath); ! } ! /** ! * Constructor for the _OpenCOEApp object ! * ! *@param label Description of the Parameter ! *@param name Description of the Parameter ! *@param acctgrp Description of the Parameter ! *@param iconpath Description of the Parameter ! *@param execpath Description of the Parameter ! */ ! public _OpenCOEApp(String label, String name, String acctgrp, ! String iconpath, String execpath) { ! this.label = label; ! this.name = name; ! this.acctgrp = acctgrp; ! this.iconpath = iconpath; ! this.icon = new ImageIcon(iconpath); ! this.execpath = execpath; ! } ! ! ! /** ! * Constructor for the _OpenCOEApp object ! * ! *@param label Description of the Parameter ! *@param name Description of the Parameter ! *@param acctgrp Description of the Parameter ! *@param iconpath Description of the Parameter ! *@param execpath Description of the Parameter ! *@param args Description of the Parameter ! */ ! public _OpenCOEApp(String label, String name, String acctgrp, ! String iconpath, String execpath, String args) { ! this.label = label; ! this.name = name; ! this.acctgrp = acctgrp; ! this.iconpath = iconpath; ! this.icon = new ImageIcon(iconpath); ! this.execpath = execpath; ! this.args = args; ! } ! /// setter methods /////////////////////////////////// ! /** ! * Sets the label attribute of the _OpenCOEApp object ! * ! *@param label The new label value ! */ ! public void setLabel(String label) { ! this.label = label; ! } ! ! ! /** ! * Sets the acctGrp attribute of the _OpenCOEApp object ! * ! *@param acctGrp The new acctGrp value ! */ ! public void setAcctGrp(String acctGrp) { ! this.acctgrp = acctgrp; ! } ! ! ! /** ! * Sets the execPath attribute of the _OpenCOEApp object ! * ! *@param execpath The new execPath value ! */ ! public void setExecPath(String execpath) { ! this.execpath = execpath; ! } ! ! ! /** ! * Sets the args attribute of the _OpenCOEApp object ! * ! *@param args The new args value ! */ ! public void setArgs(String args) { ! this.args = args; ! } ! ! ! /** ! * Sets the iconPath attribute of the _OpenCOEApp object ! * ! *@param iconpath The new iconPath value ! */ ! public void setIconPath(String iconpath) { ! this.iconpath = iconpath; ! this.icon = new ImageIcon(iconpath); ! } ! ! ! /** ! * Sets the initClass attribute of the _OpenCOEApp object ! * ! *@param initclass The new initPath value ! */ ! public void setInitClass(String initclass) { ! System.out.println("_OpenCOEApp::setInitClass::"+initclass); ! this.initclass = initclass; ! } ! /// getter methods /////////////////////////////////// ! /** ! * Description of the Method ! * ! *@return Description of the Return Value ! */ ! public String toString() { ! return name; ! } ! ! ! /** ! * Gets the name attribute of the _OpenCOEApp object ! * ! *@return The name value ! */ ! public String getName() { ! return name; ! } ! ! ! /** ! * Gets the label attribute of the _OpenCOEApp object ! * ! *@return The label value ! */ ! public String getLabel() { ! return label; ! } ! ! ! /** ! * Gets the iconPath attribute of the _OpenCOEApp object ! * ! *@return The iconPath value ! */ ! public String getIconPath() { ! return iconpath; ! } ! ! ! /** ! * Gets the icon attribute of the _OpenCOEApp object ! * ! *@return The icon value ! */ ! public ImageIcon getIcon() { ! return icon; ! } ! ! ! /** ! * Gets the execPath attribute of the _OpenCOEApp object ! * ! *@return The execPath value ! */ ! public String getExecPath() { ! return execpath; ! } ! ! ! /** ! * Gets the args attribute of the _OpenCOEApp object ! * ! *@return The args value ! */ ! public String getArgs() { ! return args; ! } ! ! /** ! * Gets the initclass attribute of the _OpenCOEApp object ! * ! *@return The initClass value ! */ ! public String getInitClass() { ! return initclass; ! } } + |