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.AbstractJCCPlugin
AbstractJCCPlugin.ShowRemoteControlCenterHandler
-
-
Field Summary
Fields 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.AbstractJCCPlugin
jcc
-
-
Constructor Summary
Constructors Constructor Description TestCenterPlugin()
-
Method Summary
All 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.AbstractJCCPlugin
createMenuBar, getClassLoader, getJCC, getMenuBar, getToolBar, getView, init, isLazy, shutdown
-
-
-
-
Field Detail
-
icons
protected static final javax.swing.UIDefaults icons
The image icons.
-
mpanel
protected ModelTreePanel mpanel
The panel showing the classpath models.
-
tcpanel
protected TestCenterPanel tcpanel
The test center panel.
-
ADD_TESTCASE
public final javax.swing.Action ADD_TESTCASE
Add testcase.
-
ADD_TESTCASES
public final javax.swing.Action ADD_TESTCASES
Add testcases.
-
REMOVE_TESTCASE
public final javax.swing.Action REMOVE_TESTCASE
Remove testcase.
-
REMOVE_TESTCASES
public final javax.swing.Action REMOVE_TESTCASES
Remove testcases.
-
-
Method Detail
-
getName
public java.lang.String getName()
Return the unique name of this plugin. Used e.g. to store properties of each plugin.
-
getToolIcon
public javax.swing.Icon getToolIcon(boolean selected)
Return the icon representing this plugin.
-
getHelpID
public java.lang.String getHelpID()
Return the id for the help system
-
createToolBar
public javax.swing.JComponent[] createToolBar()
Create tool bar.- Overrides:
createToolBarin classAbstractJCCPlugin- Returns:
- The tool bar.
-
createView
public javax.swing.JComponent createView()
Create main panel.- Overrides:
createViewin classAbstractJCCPlugin- Returns:
- The main panel.
-
loadPlatformProperties
public IFuture loadPlatformProperties()
Load and apply the platform properties.
-
pushPlatformSettings
public IFuture pushPlatformSettings()
Store settings if any in platform settings service.- Specified by:
pushPlatformSettingsin interfaceIControlCenterPlugin- Overrides:
pushPlatformSettingsin classAbstractJCCPlugin
-
setProperties
public IFuture setProperties(Properties props)
Load the properties.- Specified by:
setPropertiesin interfaceIPropertiesProvider- Overrides:
setPropertiesin classAbstractJCCPlugin- Parameters:
props-
-
getProperties
public IFuture getProperties()
Save the properties.- Specified by:
getPropertiesin interfaceIPropertiesProvider- Overrides:
getPropertiesin classAbstractJCCPlugin- Parameters:
props-
-
getLeafChildren
protected IFuture getLeafChildren(IFileNode node)
Recursively get all leaf (sub)children of a node.
-
addTestcases
protected void addTestcases(IFileNode node)
Add testcases for a file or directory recursively.- Parameters:
node- The file/dir node to start.
-
removeTestcases
protected void removeTestcases(IFileNode node)
Remove testcases for a file or directory recusively.- Parameters:
node- The file/dir node to start.
-
createResourceIdentifier
public IFuture<IResourceIdentifier> createResourceIdentifier(IFileNode node)
Create a resource identifier.
-
-