com.altair.hwm.toolkit.beans
Class HWMCategoryLoader
java.lang.Object
com.altair.hwm.toolkit.beans.HWMCategoryLoader
public class HWMCategoryLoader
- extends java.lang.Object
Title: HWMCategoryLoader
Description: This class acts like a utility which will provide
functionality like:
Given a base directory, return all the categories (with
their beans)
Given a base directory, add all the jars in the categories
to the classpath of the given class loader
Company: Altair Engineering, Inc.
Method Summary |
void |
AddJarsToCP(java.lang.String strDirPath,
HWMClassLoader hwmClassLoader)
Given a directory name, find the controls directory and add all the jars
to the given class loader's CP. |
javax.swing.tree.DefaultTreeModel |
BuildCategories(java.lang.String strDirPath,
HWMClassLoader hwmClassLoader)
Given a directory name, find the controls directory and return all the
jars present in different categories. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HWMCategoryLoader
public HWMCategoryLoader()
AddJarsToCP
public void AddJarsToCP(java.lang.String strDirPath,
HWMClassLoader hwmClassLoader)
throws java.lang.Exception
- Given a directory name, find the controls directory and add all the jars
to the given class loader's CP. This is used in the app mode.
- Parameters:
strDirPath
- The dir name under which the controls directory can be
foundhwmClassLoader
- The class loader to which these pmt specific jars
should be added to
- Throws:
java.lang.Exception
BuildCategories
public javax.swing.tree.DefaultTreeModel BuildCategories(java.lang.String strDirPath,
HWMClassLoader hwmClassLoader)
throws java.lang.Exception
- Given a directory name, find the controls directory and return all the
jars present in different categories. This is used in the dsgn mode.
- Parameters:
strDirPath
- The dir name under which the controls directory can be
foundhwmClassLoader
- The class loader to which these pmt specific jars
should be added to
- Returns:
- DefaultTreeModel The tree model that represents the different
categories and beans in them
- Throws:
java.lang.Exception