Package org.ametys.core.ui
Class StaticRibbonImportManager
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.core.ui.StaticRibbonImportManager
- All Implemented Interfaces:
RibbonImport
,LogEnabled
,PluginAware
,Configurable
- Direct Known Subclasses:
HierarchicalReferenceTablesRibbonImportManager
public class StaticRibbonImportManager
extends AbstractLogEnabled
implements RibbonImport, Configurable, PluginAware
Static implementation for the ribbon import manager.
The expected configuration is one or more "workspace" with a match attribute (default to ".*"), and a list of files to include :
<workspace match=".*">
<file plugin="core-ui">ribbon/ribbon.xml</file>
<file>ribbon/ribbon.xml</file>
</workspace>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
configure
(Configuration configuration) Get the list of files to import, associated with the workspace pattern to matchvoid
setPluginInfo
(String pluginName, String featureName, String id) Sets the plugin info relative to the current component.
Note : The feature name may be null if the targeted component in declared at plugin level.Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Constructor Details
-
StaticRibbonImportManager
public StaticRibbonImportManager()
-
-
Method Details
-
setPluginInfo
Description copied from interface:PluginAware
Sets the plugin info relative to the current component.
Note : The feature name may be null if the targeted component in declared at plugin level.- Specified by:
setPluginInfo
in interfacePluginAware
- Parameters:
pluginName
- Unique identifier for the plugin hosting the extensionfeatureName
- Unique feature identifier (unique for a given pluginName)id
- Unique identifier of this component
-
configure
- Specified by:
configure
in interfaceConfigurable
- Throws:
ConfigurationException
-
getImports
Description copied from interface:RibbonImport
Get the list of files to import, associated with the workspace pattern to match- Specified by:
getImports
in interfaceRibbonImport
- Returns:
- The list of files
-