Class DesignerHook
- java.lang.Object
- 
- com.inductiveautomation.ignition.designer.model.AbstractDesignerModuleHook
- 
- com.inductiveautomation.perspective.designer.DesignerHook
 
 
- 
- All Implemented Interfaces:
- DesignerModuleHook,- PerspectiveDesignerInterface
 
 public class DesignerHook extends AbstractDesignerModuleHook implements PerspectiveDesignerInterface 
- 
- 
Field SummaryFields Modifier and Type Field Description static java.lang.StringCLEAR_CACHE_ON_PANEL_LOADstatic VectorIconsICONSstatic java.lang.StringIN_MEMORY_CACHEstatic java.lang.StringLIGHTWEIGHT_MODEstatic java.lang.StringLOG_BROWSER_TO_DISK
 - 
Constructor SummaryConstructors Constructor Description DesignerHook()
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DesignerHookget(DesignerContext context)DesignerActionRegistryImplgetActionRegistry()DesignerBindingRegistryImplgetBindingRegistry()static java.lang.StringgetBrowserFailedMessage()java.lang.StringgetCombinedStyles()ComponentDesignDelegateRegistrygetComponentDesignDelegateRegistry()DesignerComponentRegistrygetDesignerComponentRegistry()java.util.Collection<java.lang.String>getIconLibraries()MenuBarMergegetModuleMenu()Returns a menu merge for any global menu additions.PerspectiveNavNodegetNavNode()java.lang.StringgetResourceCategoryKey(ProjectResourceId id)Used by modules that add project resources to an Ignition project.java.lang.StringgetResourceDisplayName(ProjectResourceId id)Allows a module to give an appropriate display name for the resource.SessionEventDialoggetSessionEventDialog()PropertySuggestionSourceRegistrygetSuggestionSourceRegistry()ViewWorkspacegetWorkspace()voidnotifyProjectSaveDone()Notifies the module that the save operation has finished.voidnotifyProjectSaveStart(SaveContext save)Notifies 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 com.inductiveautomation.ignition.designer.model.AbstractDesignerModuleHookconfigureDeserializer, configureFunctionFactory, configureSerializer, createPermissionKeys, getFrames, getModuleToolbars, getResourceIcon, initializeScriptManager, notifyActivationStateChanged
 
- 
 
- 
- 
- 
Field Detail- 
ICONSpublic static final VectorIcons ICONS 
 - 
LIGHTWEIGHT_MODEpublic static final java.lang.String LIGHTWEIGHT_MODE - See Also:
- Constant Field Values
 
 - 
IN_MEMORY_CACHEpublic static final java.lang.String IN_MEMORY_CACHE - See Also:
- Constant Field Values
 
 - 
CLEAR_CACHE_ON_PANEL_LOADpublic static final java.lang.String CLEAR_CACHE_ON_PANEL_LOAD - See Also:
- Constant Field Values
 
 - 
LOG_BROWSER_TO_DISKpublic static final java.lang.String LOG_BROWSER_TO_DISK - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
getpublic static DesignerHook get(DesignerContext context) 
 - 
getComponentDesignDelegateRegistrypublic ComponentDesignDelegateRegistry getComponentDesignDelegateRegistry() - Specified by:
- getComponentDesignDelegateRegistryin interface- PerspectiveDesignerInterface
 
 - 
getBindingRegistrypublic DesignerBindingRegistryImpl getBindingRegistry() - Specified by:
- getBindingRegistryin interface- PerspectiveDesignerInterface
 
 - 
getSuggestionSourceRegistrypublic PropertySuggestionSourceRegistry getSuggestionSourceRegistry() - Specified by:
- getSuggestionSourceRegistryin interface- PerspectiveDesignerInterface
 
 - 
getActionRegistrypublic DesignerActionRegistryImpl getActionRegistry() - Specified by:
- getActionRegistryin interface- PerspectiveDesignerInterface
 
 - 
getDesignerComponentRegistrypublic DesignerComponentRegistry getDesignerComponentRegistry() - Specified by:
- getDesignerComponentRegistryin interface- PerspectiveDesignerInterface
 
 - 
startuppublic void startup(DesignerContext context, LicenseState activationState) Description 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
 
 - 
getWorkspacepublic ViewWorkspace getWorkspace() 
 - 
getNavNodepublic PerspectiveNavNode getNavNode() 
 - 
getSessionEventDialogpublic SessionEventDialog getSessionEventDialog() 
 - 
getResourceCategoryKeypublic java.lang.String getResourceCategoryKey(ProjectResourceId id) Description copied from interface:DesignerModuleHookUsed by modules that add project resources to an Ignition project. This will be called when the exporter is displaying all of the resources inside a project for export. Only project resources that match this module's ID will passed to this function. Used by the import/export system. - Specified by:
- getResourceCategoryKeyin interface- DesignerModuleHook
- Overrides:
- getResourceCategoryKeyin class- AbstractDesignerModuleHook
- Parameters:
- id- A project resource that was added by this module.
- Returns:
- A bundle resource key for the category of this resource.
 
 - 
getResourceDisplayNamepublic java.lang.String getResourceDisplayName(ProjectResourceId id) Description 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. Used by the import/export system. - Specified by:
- getResourceDisplayNamein interface- DesignerModuleHook
- Overrides:
- getResourceDisplayNamein class- AbstractDesignerModuleHook
- Returns:
- the name for a resource, or null to use the resource's folder path/name.
 
 - 
getIconLibrariespublic java.util.Collection<java.lang.String> getIconLibraries() 
 - 
getModuleMenupublic MenuBarMerge getModuleMenu() Description copied from interface:DesignerModuleHookReturns a menu merge for any global menu additions. May be null.- Specified by:
- getModuleMenuin interface- DesignerModuleHook
- Overrides:
- getModuleMenuin class- AbstractDesignerModuleHook
- See Also:
- JMenuMerge
 
 - 
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
 
 - 
notifyProjectSaveStartpublic void notifyProjectSaveStart(SaveContext save) Description 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
 
 - 
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
- Overrides:
- notifyProjectSaveDonein class- AbstractDesignerModuleHook
 
 - 
getCombinedStylespublic java.lang.String getCombinedStyles() 
 - 
getBrowserFailedMessagepublic static java.lang.String getBrowserFailedMessage() 
 
- 
 
-