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.Action
ADD_TESTCASE
Add testcase.javax.swing.Action
ADD_TESTCASES
Add testcases.protected static javax.swing.UIDefaults
icons
The image icons.protected ModelTreePanel
mpanel
The panel showing the classpath models.javax.swing.Action
REMOVE_TESTCASE
Remove testcase.javax.swing.Action
REMOVE_TESTCASES
Remove testcases.protected TestCenterPanel
tcpanel
The 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 void
addTestcases(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.JComponent
createView()
Create main panel.java.lang.String
getHelpID()
Return the id for the help systemprotected IFuture
getLeafChildren(IFileNode node)
Recursively get all leaf (sub)children of a node.java.lang.String
getName()
Return the unique name of this plugin.IFuture
getProperties()
Save the properties.javax.swing.Icon
getToolIcon(boolean selected)
Return the icon representing this plugin.IFuture
loadPlatformProperties()
Load and apply the platform properties.IFuture
pushPlatformSettings()
Store settings if any in platform settings service.protected void
removeTestcases(IFileNode node)
Remove testcases for a file or directory recusively.IFuture
setProperties(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:
createToolBar
in classAbstractJCCPlugin
- Returns:
- The tool bar.
-
createView
public javax.swing.JComponent createView()
Create main panel.- Overrides:
createView
in 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:
pushPlatformSettings
in interfaceIControlCenterPlugin
- Overrides:
pushPlatformSettings
in classAbstractJCCPlugin
-
setProperties
public IFuture setProperties(Properties props)
Load the properties.- Specified by:
setProperties
in interfaceIPropertiesProvider
- Overrides:
setProperties
in classAbstractJCCPlugin
- Parameters:
props
-
-
getProperties
public IFuture getProperties()
Save the properties.- Specified by:
getProperties
in interfaceIPropertiesProvider
- Overrides:
getProperties
in 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.
-
-