Package adams.gui.goe
Class WekaEditorsRegistration
- java.lang.Object
-
- adams.gui.goe.AbstractEditorRegistration
-
- adams.gui.goe.WekaEditorsRegistration
-
- All Implemented Interfaces:
Serializable
public class WekaEditorsRegistration extends AbstractEditorRegistration
Registers first the WEKA GenericObjectEditor editors and the ADAMS ones.- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
WekaEditorsRegistration.AccessibleGenericObjectEditor
Subclass ofGenericObjectEditor
to get access to the class hierarchies.static class
WekaEditorsRegistration.AccessiblePluginManager
For getting access to protected members in the package manager.
-
Field Summary
Fields Modifier and Type Field Description protected static Set<Class>
m_AlreadRegistered
protected static boolean
m_Registered
whether registration already occurred.protected static boolean
m_UseWekaEditors
whether to use the Weka editors.static String
PROPERTY_WEKAEDITORS
property indicating whether to use the Weka editors instead of the Adams ones.-
Fields inherited from class adams.gui.goe.AbstractEditorRegistration
LOGGER, m_Logger
-
-
Constructor Summary
Constructors Constructor Description WekaEditorsRegistration()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
doRegister()
Performs the registration of the editors.protected boolean
hasRegistered()
Returns whether registration already occurred.protected void
registerEditors(Map<String,Map<String,String>> hierarchies)
Reregisters class hierarchies with ADAMS object editors.protected void
registerEditors(Properties props)
Reregisters class hierarchies with ADAMS object editors.protected void
registerHierarchies(Map<String,Map<String,String>> hierarchies)
Registers the class hierarchies with ADAMS.protected void
registerHierarchies(Properties props)
Registers the class hierarchies with ADAMS.static boolean
useWekaEditors()
Returns whether Weka editors should be used.-
Methods inherited from class adams.gui.goe.AbstractEditorRegistration
getLogger, getRegistrations, register, registerEditors
-
-
-
-
Field Detail
-
PROPERTY_WEKAEDITORS
public static final String PROPERTY_WEKAEDITORS
property indicating whether to use the Weka editors instead of the Adams ones.- See Also:
- Constant Field Values
-
m_UseWekaEditors
protected static boolean m_UseWekaEditors
whether to use the Weka editors.
-
m_Registered
protected static boolean m_Registered
whether registration already occurred.
-
-
Method Detail
-
hasRegistered
protected boolean hasRegistered()
Returns whether registration already occurred.- Specified by:
hasRegistered
in classAbstractEditorRegistration
- Returns:
- true if registration already occurred
-
registerEditors
protected void registerEditors(Properties props)
Reregisters class hierarchies with ADAMS object editors.- Parameters:
props
- the Weka class hierarchies
-
registerHierarchies
protected void registerHierarchies(Properties props)
Registers the class hierarchies with ADAMS.- Parameters:
props
- the Weka class hierarchies
-
registerEditors
protected void registerEditors(Map<String,Map<String,String>> hierarchies)
Reregisters class hierarchies with ADAMS object editors.- Parameters:
hierarchies
- the Weka class hierarchies
-
registerHierarchies
protected void registerHierarchies(Map<String,Map<String,String>> hierarchies)
Registers the class hierarchies with ADAMS.- Parameters:
hierarchies
- the Weka class hierarchies
-
useWekaEditors
public static boolean useWekaEditors()
Returns whether Weka editors should be used.- Returns:
- true if to use Weka editors
-
doRegister
protected boolean doRegister()
Performs the registration of the editors.- Specified by:
doRegister
in classAbstractEditorRegistration
- Returns:
- true if registration successful
-
-