Class AbstractDesignerModuleHook
java.lang.Object
com.inductiveautomation.ignition.designer.model.AbstractDesignerModuleHook
- All Implemented Interfaces:
- LocationRenderingUpdater,- DesignerModuleHook
- Direct Known Subclasses:
- DesignerHook,- DesignerHook,- ReportingDesignerHook,- SFCDesignerHook,- VisionDesignerImpl
Base class for all designer module hook implementations. All methods are given empty implementations. It is expected that subclasses will override any methods that they wish to give real implementations.
 Best practice is to subclass this class rather than implement DesignerModuleHook directly, so that when new
 methods get added to the interface, your module automatically inherits an empty implementation of the new method
 rather than breaking with a NoSuchMethodError.
 
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidconfigureDeserializer(XMLDeserializer deserializer) voidProvides the module with an opportunity to define its own expression functionsvoidconfigureSerializer(XMLSerializer serializer) Provides the module a chance to add serialization delegates to the serializer custom for classes that might be encountered when serializing objects provided by this moduleAllows a module to create one or more id-bundlekey pairs that the module will use for role-based client security.List<com.jidesoft.docking.DockableFrame>A list of DockableFrames that this module provides, that should be available to all workspaces.Returns a menu merge for any global menu additions.List<com.jidesoft.action.CommandBar>Returns the toolbars for the module.voidinitializeScriptManager(ScriptManager manager) Initialize a newly-instantiated script manager.voidnotifyActivationStateChanged(LicenseState licenseState) Notifies this designer module that its license state has changed.voidNotifies the module that the save operation has finished.voidNotifies the module that the user has requested that the project is saved.voidshutdown()Called when the module is shut down.voidstartup(DesignerContext context, LicenseState activationState) The main entrypoint for the module hook.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.inductiveautomation.ignition.designer.model.DesignerModuleHookgetModuleIcon, getResourceCategoryKey, getResourceDisplayName, getResourceIcon, updateLocationRenderer
- 
Constructor Details- 
AbstractDesignerModuleHookpublic AbstractDesignerModuleHook()
 
- 
- 
Method Details- 
startupDescription copied from interface:DesignerModuleHookThe main entrypoint for the module hook. This will only be called once for a given project. If another project is ever opened,DesignerModuleHook.shutdown()will be called and a new hook will be instantiated- Specified by:
- startupin interface- DesignerModuleHook
- Throws:
- Exception- if the module was not able to be initialized for the given project.
 
- 
shutdownpublic void shutdown()Description copied from interface:DesignerModuleHookCalled when the module is shut down. This will happen if the user opens a different project within the same designer session - the existing modules will be shut down, and new module hooks will be instantiated and started up.- Specified by:
- shutdownin interface- DesignerModuleHook
 
- 
getResourceCategoryKey- Specified by:
- getResourceCategoryKeyin interface- DesignerModuleHook
 
- 
getResourceDisplayName- Specified by:
- getResourceDisplayNamein interface- DesignerModuleHook
 
- 
getResourceIcon- Specified by:
- getResourceIconin interface- DesignerModuleHook
 
- 
getModuleMenuDescription copied from interface:DesignerModuleHookReturns a menu merge for any global menu additions. May be null.- Specified by:
- getModuleMenuin interface- DesignerModuleHook
- See Also:
 
- 
getModuleToolbarsDescription copied from interface:DesignerModuleHookReturns the toolbars for the module. May be empty but not null.- Specified by:
- getModuleToolbarsin interface- DesignerModuleHook
 
- 
getFramesDescription copied from interface:DesignerModuleHookA list of DockableFrames that this module provides, that should be available to all workspaces.- Specified by:
- getFramesin interface- DesignerModuleHook
 
- 
notifyActivationStateChangedDescription copied from interface:DesignerModuleHookNotifies this designer module that its license state has changed. This could mean that the trial mode has expired (or been reset), the module has been activated, etc.- Specified by:
- notifyActivationStateChangedin interface- DesignerModuleHook
 
- 
configureSerializerDescription copied from interface:DesignerModuleHookProvides the module a chance to add serialization delegates to the serializer custom for classes that might be encountered when serializing objects provided by this module- Specified by:
- configureSerializerin interface- DesignerModuleHook
 
- 
configureDeserializer- Specified by:
- configureDeserializerin interface- DesignerModuleHook
 
- 
configureFunctionFactoryDescription copied from interface:DesignerModuleHookProvides the module with an opportunity to define its own expression functions- Specified by:
- configureFunctionFactoryin interface- DesignerModuleHook
 
- 
notifyProjectSaveStartDescription copied from interface:DesignerModuleHookNotifies the module that the user has requested that the project is saved. The module must check-in any checked-out resources that it is holding.- Specified by:
- notifyProjectSaveStartin interface- DesignerModuleHook
 
- 
notifyProjectSaveDonepublic void notifyProjectSaveDone()Description copied from interface:DesignerModuleHookNotifies the module that the save operation has finished. This is the cue to check-out any previously checked-out resources that it was forced to check-in before the save.- Specified by:
- notifyProjectSaveDonein interface- DesignerModuleHook
 
- 
initializeScriptManagerDescription copied from interface:DesignerModuleHookInitialize a newly-instantiated script manager. This will be called exactly once for any given ScriptManager instance. Usually this will involve callingScriptManager.addScriptModule(String, Object), which reflectively loads the public (instance and static) java functions from the given object into the scripting environment, at the provided path.- Specified by:
- initializeScriptManagerin interface- DesignerModuleHook
 
- 
createPermissionKeysDescription copied from interface:DesignerModuleHookAllows a module to create one or more id-bundlekey pairs that the module will use for role-based client security.- Specified by:
- createPermissionKeysin interface- DesignerModuleHook
- Returns:
- Map of id-bundlekey entries. May be empty but not null.
 
 
-