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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconfigure(Configuration configuration) Get the list of files to import, associated with the workspace pattern to matchvoidsetPluginInfo(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:PluginAwareSets 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:
setPluginInfoin 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:
configurein interfaceConfigurable- Throws:
ConfigurationException
-
getImports
Description copied from interface:RibbonImportGet the list of files to import, associated with the workspace pattern to match- Specified by:
getImportsin interfaceRibbonImport- Returns:
- The list of files
-