Class SFCDesignerHook
- java.lang.Object
- 
- com.inductiveautomation.ignition.designer.model.AbstractDesignerModuleHook
- 
- com.inductiveautomation.sfc.designer.SFCDesignerHook
 
 
- 
- All Implemented Interfaces:
- DesignerModuleHook,- ClientStepRegistryProvider,- StepConfigRegistry
 
 public class SFCDesignerHook extends AbstractDesignerModuleHook implements ClientStepRegistryProvider, StepConfigRegistry 
- 
- 
Field SummaryFields Modifier and Type Field Description static com.inductiveautomation.ignition.common.script.typing.TypeDescriptorCHART_SCOPE_DESCRIPTOR
 - 
Constructor SummaryConstructors Constructor Description SFCDesignerHook()
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<java.lang.String,java.lang.String>createPermissionKeys()Allows a module to create one or more id-bundlekey pairs that the module will use for role-based client security.static SFCDesignerHookget(DesignerContext context)StepConfigFactorygetConfigFactory(java.lang.String factoryId)MenuBarMergegetModuleMenu()Returns a menu merge for any global menu additions.java.lang.StringgetResourceCategoryKey(ProjectResourceId resource)Used by modules that add project resources to an Ignition project.ClientStepRegistrygetStepRegistry()SfcWorkspacegetWorkspace()voidinitializeScriptManager(ScriptManager manager)Initialize a newly-instantiated script manager.booleanisSaving()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.voidregister(java.lang.String stepFactoryId, StepConfigFactory factory)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, getFrames, getModuleToolbars, getResourceDisplayName, getResourceIcon, notifyActivationStateChanged
 
- 
 
- 
- 
- 
Method Detail- 
getpublic static SFCDesignerHook get(DesignerContext context) 
 - 
getWorkspacepublic SfcWorkspace getWorkspace() 
 - 
registerpublic void register(java.lang.String stepFactoryId, StepConfigFactory factory)- Specified by:
- registerin interface- StepConfigRegistry
 
 - 
getConfigFactorypublic StepConfigFactory getConfigFactory(java.lang.String factoryId) 
 - 
startuppublic void startup(DesignerContext context, LicenseState activationState) throws java.lang.Exception 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
- Throws:
- java.lang.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
- 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
 
 - 
isSavingpublic boolean isSaving() 
 - 
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
 
 - 
getStepRegistrypublic ClientStepRegistry getStepRegistry() - Specified by:
- getStepRegistryin interface- ClientStepRegistryProvider
 
 - 
initializeScriptManagerpublic void initializeScriptManager(ScriptManager manager) Description 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
 
 - 
getResourceCategoryKeypublic java.lang.String getResourceCategoryKey(ProjectResourceId resource) 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:
- resource- A project resource that was added by this module.
- Returns:
- A bundle resource key for the category of this resource.
 
 - 
createPermissionKeyspublic java.util.Map<java.lang.String,java.lang.String> createPermissionKeys() Description 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
- Overrides:
- createPermissionKeysin class- AbstractDesignerModuleHook
- Returns:
- Map of id-bundlekey entries. May be empty but not null.
 
 
- 
 
-