public class SFCDesignerHook extends AbstractDesignerModuleHook implements ClientStepRegistryProvider, StepConfigRegistry
| Constructor and Description |
|---|
SFCDesignerHook() |
| Modifier and Type | Method and 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 SFCDesignerHook |
get(DesignerContext context) |
StepConfigFactory |
getConfigFactory(java.lang.String factoryId) |
MenuBarMerge |
getModuleMenu()
Returns a menu merge for any global menu additions.
|
java.lang.String |
getResourceCategoryKey(Project project,
ProjectResource resource)
Used by modules that add project resources to an Ignition project.
|
ClientStepRegistry |
getStepRegistry() |
SfcWorkspace |
getWorkspace() |
void |
initializeScriptManager(ScriptManager manager)
Initialize a newly-instantiated script manager.
|
boolean |
isSaving() |
void |
notifyProjectSaveDone()
Notifies the module that the save operation has finished.
|
void |
notifyProjectSaveStart(SaveContext save)
Notifies the module that the user has requested that the project is saved.
|
void |
register(java.lang.String stepFactoryId,
StepConfigFactory factory) |
void |
shutdown()
Called when the module is shut down.
|
void |
startup(DesignerContext context,
LicenseState activationState)
The main entrypoint for the module hook.
|
configureDeserializer, configureFunctionFactory, configureSerializer, getFrames, getModuleToolbars, getResourceDisplayName, getResourceIcon, notifyActivationStateChangedpublic static SFCDesignerHook get(DesignerContext context)
public SfcWorkspace getWorkspace()
public void register(java.lang.String stepFactoryId,
StepConfigFactory factory)
register in interface StepConfigRegistrypublic StepConfigFactory getConfigFactory(java.lang.String factoryId)
public void startup(DesignerContext context, LicenseState activationState) throws java.lang.Exception
DesignerModuleHookDesignerModuleHook.shutdown() will be called and a new hook will be instantiatedstartup in interface DesignerModuleHookstartup in class AbstractDesignerModuleHookjava.lang.Exception - if the module was not able to be initialized for the given project.public void shutdown()
DesignerModuleHookshutdown in interface DesignerModuleHookshutdown in class AbstractDesignerModuleHookpublic void notifyProjectSaveStart(SaveContext save)
DesignerModuleHooknotifyProjectSaveStart in interface DesignerModuleHooknotifyProjectSaveStart in class AbstractDesignerModuleHookpublic void notifyProjectSaveDone()
DesignerModuleHooknotifyProjectSaveDone in interface DesignerModuleHooknotifyProjectSaveDone in class AbstractDesignerModuleHookpublic boolean isSaving()
public MenuBarMerge getModuleMenu()
DesignerModuleHookgetModuleMenu in interface DesignerModuleHookgetModuleMenu in class AbstractDesignerModuleHookJMenuMergepublic ClientStepRegistry getStepRegistry()
getStepRegistry in interface ClientStepRegistryProviderpublic void initializeScriptManager(ScriptManager manager)
DesignerModuleHookScriptManager.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.initializeScriptManager in interface DesignerModuleHookinitializeScriptManager in class AbstractDesignerModuleHookpublic java.lang.String getResourceCategoryKey(Project project, ProjectResource resource)
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.
getResourceCategoryKey in interface DesignerModuleHookgetResourceCategoryKey in class AbstractDesignerModuleHookresource - A project resource that was added by this module.public java.util.Map<java.lang.String,java.lang.String> createPermissionKeys()
DesignerModuleHookcreatePermissionKeys in interface DesignerModuleHookcreatePermissionKeys in class AbstractDesignerModuleHook