Package jadex.tools.testcenter
Class TestCenterPlugin
- java.lang.Object
- 
- jadex.base.gui.plugin.AbstractJCCPlugin
- 
- jadex.tools.testcenter.TestCenterPlugin
 
 
- 
- All Implemented Interfaces:
- IControlCenterPlugin,- IPropertiesProvider
 
 public class TestCenterPlugin extends AbstractJCCPlugin Plugin for the test center.
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class jadex.base.gui.plugin.AbstractJCCPluginAbstractJCCPlugin.ShowRemoteControlCenterHandler
 
- 
 - 
Field SummaryFields Modifier and Type Field Description javax.swing.ActionADD_TESTCASEAdd testcase.javax.swing.ActionADD_TESTCASESAdd testcases.protected static javax.swing.UIDefaultsiconsThe image icons.protected ModelTreePanelmpanelThe panel showing the classpath models.javax.swing.ActionREMOVE_TESTCASERemove testcase.javax.swing.ActionREMOVE_TESTCASESRemove testcases.protected TestCenterPaneltcpanelThe test center panel.- 
Fields inherited from class jadex.base.gui.plugin.AbstractJCCPluginjcc
 
- 
 - 
Constructor SummaryConstructors Constructor Description TestCenterPlugin()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddTestcases(IFileNode node)Add testcases for a file or directory recursively.IFuture<IResourceIdentifier>createResourceIdentifier(IFileNode node)Create a resource identifier.javax.swing.JComponent[]createToolBar()Create tool bar.javax.swing.JComponentcreateView()Create main panel.java.lang.StringgetHelpID()Return the id for the help systemprotected IFuturegetLeafChildren(IFileNode node)Recursively get all leaf (sub)children of a node.java.lang.StringgetName()Return the unique name of this plugin.IFuturegetProperties()Save the properties.javax.swing.IcongetToolIcon(boolean selected)Return the icon representing this plugin.IFutureloadPlatformProperties()Load and apply the platform properties.IFuturepushPlatformSettings()Store settings if any in platform settings service.protected voidremoveTestcases(IFileNode node)Remove testcases for a file or directory recusively.IFuturesetProperties(Properties props)Load the properties.- 
Methods inherited from class jadex.base.gui.plugin.AbstractJCCPlugincreateMenuBar, getClassLoader, getJCC, getMenuBar, getToolBar, getView, init, isLazy, shutdown
 
- 
 
- 
- 
- 
Field Detail- 
iconsprotected static final javax.swing.UIDefaults icons The image icons.
 - 
mpanelprotected ModelTreePanel mpanel The panel showing the classpath models.
 - 
tcpanelprotected TestCenterPanel tcpanel The test center panel.
 - 
ADD_TESTCASEpublic final javax.swing.Action ADD_TESTCASE Add testcase.
 - 
ADD_TESTCASESpublic final javax.swing.Action ADD_TESTCASES Add testcases.
 - 
REMOVE_TESTCASEpublic final javax.swing.Action REMOVE_TESTCASE Remove testcase.
 - 
REMOVE_TESTCASESpublic final javax.swing.Action REMOVE_TESTCASES Remove testcases.
 
- 
 - 
Method Detail- 
getNamepublic java.lang.String getName() Return the unique name of this plugin. Used e.g. to store properties of each plugin.
 - 
getToolIconpublic javax.swing.Icon getToolIcon(boolean selected) Return the icon representing this plugin.
 - 
getHelpIDpublic java.lang.String getHelpID() Return the id for the help system
 - 
createToolBarpublic javax.swing.JComponent[] createToolBar() Create tool bar.- Overrides:
- createToolBarin class- AbstractJCCPlugin
- Returns:
- The tool bar.
 
 - 
createViewpublic javax.swing.JComponent createView() Create main panel.- Overrides:
- createViewin class- AbstractJCCPlugin
- Returns:
- The main panel.
 
 - 
loadPlatformPropertiespublic IFuture loadPlatformProperties() Load and apply the platform properties.
 - 
pushPlatformSettingspublic IFuture pushPlatformSettings() Store settings if any in platform settings service.- Specified by:
- pushPlatformSettingsin interface- IControlCenterPlugin
- Overrides:
- pushPlatformSettingsin class- AbstractJCCPlugin
 
 - 
setPropertiespublic IFuture setProperties(Properties props) Load the properties.- Specified by:
- setPropertiesin interface- IPropertiesProvider
- Overrides:
- setPropertiesin class- AbstractJCCPlugin
- Parameters:
- props-
 
 - 
getPropertiespublic IFuture getProperties() Save the properties.- Specified by:
- getPropertiesin interface- IPropertiesProvider
- Overrides:
- getPropertiesin class- AbstractJCCPlugin
- Parameters:
- props-
 
 - 
getLeafChildrenprotected IFuture getLeafChildren(IFileNode node) Recursively get all leaf (sub)children of a node.
 - 
addTestcasesprotected void addTestcases(IFileNode node) Add testcases for a file or directory recursively.- Parameters:
- node- The file/dir node to start.
 
 - 
removeTestcasesprotected void removeTestcases(IFileNode node) Remove testcases for a file or directory recusively.- Parameters:
- node- The file/dir node to start.
 
 - 
createResourceIdentifierpublic IFuture<IResourceIdentifier> createResourceIdentifier(IFileNode node) Create a resource identifier.
 
- 
 
-