org.argouml.util
Class ConfigLoader
java.lang.Object
org.argouml.util.ConfigLoader
- public class ConfigLoader
- extends Object
This class loads panel classes according a certain configuration file.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOG
private static final Logger LOG
tabPath
private static String tabPath
tabPropsOrientation
private static org.tigris.swidgets.Orientation tabPropsOrientation
ConfigLoader
public ConfigLoader()
getTabPropsOrientation
public static org.tigris.swidgets.Orientation getTabPropsOrientation()
- Returns:
- the orientation
loadTabs
public static void loadTabs(Vector tabs,
String panelName,
org.tigris.swidgets.Orientation orientation)
- Load the tab panels as defined in the configuration file.
- Parameters:
tabs - the list of tabs in the panelpanelName - the panel nameorientation - the orientation
parseConfigLine
public static Class parseConfigLine(String line,
String panelName,
int lineNum,
String configFile)
- Parse a line in the text file containing
the configuration of ArgoUML, "/org/argouml/argo.ini".
- Parameters:
line - the given linepanelName - the name of the panellineNum - the number of the current lineconfigFile - the configuration file name
- Returns:
- the resulting class of the tabpanel
stripBeforeColon
public static String stripBeforeColon(String s)
- Parameters:
s - input string
- Returns:
- string with everything before (including) colon stripped