Class DesignerHook
java.lang.Object
com.inductiveautomation.ignition.designer.model.AbstractDesignerModuleHook
com.inductiveautomation.ignition.alarming.designer.DesignerHook
- All Implemented Interfaces:
- AlarmNotificationDesignerInterface,- Locatable,- LocationRenderingUpdater,- DesignerModuleHook
public class DesignerHook
extends AbstractDesignerModuleHook
implements AlarmNotificationDesignerInterface, Locatable
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionget(DesignerContext context) Return an appropriate icon to display for this module.Retrieve all registered pipeline blocksgetResourceCategoryKey(ResourcePath resource) Used by modules that add project resources to an Ignition project.getResourceDisplayName(ResourcePath resourcePath) Allows a module to give an appropriate display name for the resource.getResourceIcon(ResourcePath resourcePath) Allows a module to give an appropriate icon for a resource.voidinitializeScriptManager(ScriptManager manager) Initialize a newly-instantiated script manager.voidvoidNotifies the module that the user has requested that the project is saved.voidregisterPipelineBlock(PipelineBlockPrototype prototype) Add a new kind of pipeline block to the system.voidshutdown()Called when the module is shut down.voidstartup(DesignerContext context, LicenseState activationState) The main entrypoint for the module hook.voidupdateLocationRenderer(LocationRenderingInfo builder, Location location) Provides an opportunity for a module to enrich tag reference locations with extra context.Methods inherited from class com.inductiveautomation.ignition.designer.model.AbstractDesignerModuleHookconfigureDeserializer, configureFunctionFactory, configureSerializer, createPermissionKeys, getFrames, getModuleMenu, getModuleToolbars, getResourceCategoryKey, getResourceDisplayName, getResourceIcon, notifyActivationStateChanged, notifyProjectSaveDone
- 
Field Details- 
PIPELINE_ICON
 
- 
- 
Constructor Details- 
DesignerHookpublic DesignerHook()
 
- 
- 
Method Details- 
get
- 
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
- Overrides:
- startupin class- AbstractDesignerModuleHook
 
- 
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
- Overrides:
- notifyProjectSaveStartin class- AbstractDesignerModuleHook
 
- 
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
- Overrides:
- shutdownin class- AbstractDesignerModuleHook
 
- 
registerPipelineBlockDescription copied from interface:AlarmNotificationDesignerInterfaceAdd a new kind of pipeline block to the system.- Specified by:
- registerPipelineBlockin interface- AlarmNotificationDesignerInterface
 
- 
getPipelineBlockTypesDescription copied from interface:AlarmNotificationDesignerInterfaceRetrieve all registered pipeline blocks- Specified by:
- getPipelineBlockTypesin interface- AlarmNotificationDesignerInterface
 
- 
getResourceCategoryKeyDescription copied from interface:DesignerModuleHookUsed by modules that add project resources to an Ignition project. This will be called when the platform needs to render your resource type in first-party UI. Only project resources that match this module's ID will passed to this function. - Specified by:
- getResourceCategoryKeyin interface- DesignerModuleHook
- Parameters:
- resource- A resource path within this module's resources.
- Returns:
- A bundle resource key for the category of this resource.
 
- 
getResourceDisplayNameDescription copied from interface:DesignerModuleHookAllows a module to give an appropriate display name for the resource. For most resources this won't be necessary (the resource's name itself should be used), but for some resources whose name is null, this may be appropriate. - Specified by:
- getResourceDisplayNamein interface- DesignerModuleHook
- Returns:
- the name for a resource, or null to use the resource's folder path/name.
 
- 
getModuleIconDescription copied from interface:DesignerModuleHookReturn an appropriate icon to display for this module. Ideally, anInteractiveIconof some kind.- Specified by:
- getModuleIconin interface- DesignerModuleHook
- See Also:
 
- 
getResourceIconDescription copied from interface:DesignerModuleHookAllows a module to give an appropriate icon for a resource. - Specified by:
- getResourceIconin interface- DesignerModuleHook
- See Also:
 
- 
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
- Overrides:
- initializeScriptManagerin class- AbstractDesignerModuleHook
 
- 
updateLocationRendererpublic void updateLocationRenderer(@Nonnull LocationRenderingInfo builder, @Nonnull Location location) Description copied from interface:DesignerModuleHookProvides an opportunity for a module to enrich tag reference locations with extra context. Thelocationprovided is guaranteed to reside within your module. Call methods onLocationRenderingInfoto enrich the rendering.- Specified by:
- updateLocationRendererin interface- DesignerModuleHook
- Specified by:
- updateLocationRendererin interface- LocationRenderingUpdater
- See Also:
 
- 
locate
 
-