Class DesignerContextProxy
- java.lang.Object
- 
- com.inductiveautomation.ignition.designer.DesignerContextProxy
 
- 
- All Implemented Interfaces:
- ClientContext,- CommonContext,- DesignerContext
 
 public class DesignerContextProxy extends java.lang.Object implements DesignerContext This is used for parts of the designer that hold onto a DesignerContext, even though every time you load a project a new designer context is made. So, this context can be permanent, and we just switch out the inner context delegate.
- 
- 
Field Summary- 
Fields inherited from interface com.inductiveautomation.ignition.designer.model.DesignerContextSCRIPT_MANAGER_PROPERTY
 
- 
 - 
Constructor SummaryConstructors Constructor Description DesignerContextProxy()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddBeanInfoSearchPath(java.lang.String packageName)Adds the given fully-qualified path name to the Introspector's BeanInfo search path.voidaddPropertyChangeListener(java.beans.PropertyChangeListener pcl)voidaddPropertyChangeListener(java.lang.String property, java.beans.PropertyChangeListener pcl)voidaddPropertyEditor(java.lang.Class<? extends AbstractPropertyEditorPanel> pageClass)Adds a property editor page that will be incorporated into the Designer's project property editing system.booleancanEditResourceProtection()Checks whether or not the current logged in user can edit the protection bits of project resources.XMLDeserializercreateDeserializer()Returns an instance of the XMLDeserializer that can be used to deserialize project resources.XMLSerializercreateSerializer()Creates a new XML serializer that has been configured by all installed modules for custom serialization delegatesjava.lang.Objectdeserialize(byte[] data, org.apache.log4j.Logger log)Convenience function to deserialize a gzipped byte array into a single object.voideditResourceDocs(ProjectResource resource)Opens up the resource notes editor for the given project resourcesvoidexportResources(java.util.Collection<ResourcePath> resourceIds)Shows the project export window (after doing a commit) with the given resource IDs checked.java.lang.StringgetAuthProfileName()Returns the current project's user sourcejava.util.Map<java.lang.String,java.lang.String>getClientPermissionBundleKeys()DesignerContextgetContext()javax.swing.ActiongetCopyAction()javax.swing.ActiongetCutAction()java.lang.StringgetDefaultDatasourceName()Returns the current project's default datasource namejava.lang.StringgetDefaultTagProviderName()Returns the current project's default Tag providerjavax.swing.ActiongetDeleteAction()PersistentPropertiesgetDesignerPrefs()Returns a PersistentProperties file that will be stored on a per-user basis for "persistent" but not project-encapsulated preferencescom.jidesoft.docking.DockingManagergetDockingManager()Returns the JIDE DockingManager for the Designerjava.util.List<EdgeEdition>getEdgeEditions()Returns a list of currently available Edge editions (either licensed or in trial).com.google.common.eventbus.EventBusgetEventBus()This is a generic event bus that can be used by any part of Ignition within a single scope (jvm)ExecutionManagergetExecutionManager()Returns the shared task execution manager for this clientFunctionFactorygetExpressionFunctionFactory()Returns the core function factory used by expressions.java.awt.FramegetFrame()Returns the owning frame of the designer.LaunchContextgetLaunchContext()LicenseStategetLicenseState(java.lang.String moduleId)Returns the license state for the given moduleDesignerLocalizationManagergetLocalizationManager()LogFilterSettingsgetLoggingManager()java.lang.ObjectgetModule(java.lang.String id)Returns the hook class for another module, used for modules that deal with each other's models.java.util.List<ModuleInfo>getModules()Retrieve the list of all modules currently loaded in this contextNamedQueryManagergetNamedQueryManager()Returns the appropriate named query rpc for the context.OPCBrowserPanelgetOPCBrowser()Returns the OPCBrowserPanel that can be used to browse and import OPC itemsjavax.swing.ActiongetPasteAction()ClientProgressManagergetProgressManager()Returns the progress manager, which allows the execution of long running or async tasks.DesignableProjectgetProject()Returns the project that this client is running.ProjectBrowserRootgetProjectBrowserRoot()Returns the root node of the project browser tree, so that modules may add their own nodes.java.lang.StringgetProjectName()The name of the project this client will be / is runningQueryBrowsergetQueryBrowserPanel()Returns the DB query browser tooljavax.swing.ActiongetRenameAction()DesignerResourceEditManagergetResourceEditManager()Resource edit managerjavax.swing.RootPaneContainergetRootPaneContainer()Returns the RootPaneContainer that is currently the owner of the clientScriptManagergetScriptManager()Returns the ScriptManager that can be used to execute Python scripts.SearchProvidergetSearchProvider(java.lang.String id)java.util.List<SearchProvider>getSearchProviders()Get the registered SearchProviders.StatusBargetStatusBar()The StatusBar at the bottom of the Designer can be used to display temporary messages and for adding always-present little components that appear in the bottom-rightcom.inductiveautomation.ignition.designer.tags.frame.TagBrowserFramegetTagBrowser()Returns the TagBrowserPanel that can be used to select TagsTagEditorgetTagEditor()Returns the TagEditorPanel that can be used to edit/add TagsClientTagManagergetTagManager()Returns the manager that provides access to Ignition's tag system.intgetTagPollRate()Returns the rate at which Tags should be polled for updatescom.jidesoft.action.DockableBarManagergetToolbarManager()Returns the JIDE dockable toolbar managercom.google.common.eventbus.EventBusgetUIEventBus()This event bus schedules event notification on the swing EDT.voidregisterClientPermissions(java.util.Map<java.lang.String,java.lang.String> bundleMap)Register id-bundlekey pairs to limit client permissionsvoidregisterResourceWorkspace(ResourceWorkspace workspace)Registers a newResourceWorkspace, which is a main editing area for the designer.voidregisterSearchProvider(SearchProvider provider)Registers a search provider that will be exposed through the find/replace system.voidremovePropertyChangeListener(java.beans.PropertyChangeListener pcl)voidremovePropertyChangeListener(java.lang.String property, java.beans.PropertyChangeListener pcl)voidsetContext(DesignerContext context)
 
- 
- 
- 
Method Detail- 
getContextpublic DesignerContext getContext() 
 - 
setContextpublic void setContext(DesignerContext context) 
 - 
getProjectName@Nonnull public java.lang.String getProjectName() Description copied from interface:ClientContextThe name of the project this client will be / is running- Specified by:
- getProjectNamein interface- ClientContext
 
 - 
getLoggingManagerpublic LogFilterSettings getLoggingManager() - Specified by:
- getLoggingManagerin interface- CommonContext
 
 - 
getEventBuspublic com.google.common.eventbus.EventBus getEventBus() Description copied from interface:CommonContextThis is a generic event bus that can be used by any part of Ignition within a single scope (jvm)- Specified by:
- getEventBusin interface- CommonContext
 
 - 
getUIEventBuspublic com.google.common.eventbus.EventBus getUIEventBus() Description copied from interface:ClientContextThis event bus schedules event notification on the swing EDT. This is opposed to the event bus found onCommonContext.getEventBus(), which schedules event notification on a background thread.- Specified by:
- getUIEventBusin interface- ClientContext
 
 - 
getNamedQueryManagerpublic NamedQueryManager getNamedQueryManager() Description copied from interface:ClientContextReturns the appropriate named query rpc for the context. In the gateway and client, we only want to use named queries that have been saved. In the designer, we want to use the current version so that reports and bindings can be seen and used for testing before the project is saved.- Specified by:
- getNamedQueryManagerin interface- ClientContext
- Returns:
- The correct NamedQueryManager implementation for the scope.
 
 - 
getExpressionFunctionFactorypublic FunctionFactory getExpressionFunctionFactory() Description copied from interface:CommonContextReturns the core function factory used by expressions. Includes extension functions registered by modules.- Specified by:
- getExpressionFunctionFactoryin interface- CommonContext
 
 - 
getLocalizationManagerpublic DesignerLocalizationManager getLocalizationManager() - Specified by:
- getLocalizationManagerin interface- ClientContext
- Specified by:
- getLocalizationManagerin interface- DesignerContext
 
 - 
getLaunchContextpublic LaunchContext getLaunchContext() - Specified by:
- getLaunchContextin interface- ClientContext
 
 - 
addBeanInfoSearchPathpublic void addBeanInfoSearchPath(java.lang.String packageName) Description copied from interface:DesignerContextAdds the given fully-qualified path name to the Introspector's BeanInfo search path. BeanInfos can be important for not only visual beans, but for controlling serialization.- Specified by:
- addBeanInfoSearchPathin interface- DesignerContext
- Parameters:
- packageName- fully-qualified path name. Not null.
 
 - 
addPropertyChangeListenerpublic void addPropertyChangeListener(java.beans.PropertyChangeListener pcl) - Specified by:
- addPropertyChangeListenerin interface- ClientContext
 
 - 
addPropertyChangeListenerpublic void addPropertyChangeListener(java.lang.String property, java.beans.PropertyChangeListener pcl)- Specified by:
- addPropertyChangeListenerin interface- ClientContext
 
 - 
removePropertyChangeListenerpublic void removePropertyChangeListener(java.beans.PropertyChangeListener pcl) - Specified by:
- removePropertyChangeListenerin interface- ClientContext
 
 - 
removePropertyChangeListenerpublic void removePropertyChangeListener(java.lang.String property, java.beans.PropertyChangeListener pcl)- Specified by:
- removePropertyChangeListenerin interface- ClientContext
 
 - 
exportResourcespublic void exportResources(java.util.Collection<ResourcePath> resourceIds) Description copied from interface:DesignerContextShows the project export window (after doing a commit) with the given resource IDs checked.- Specified by:
- exportResourcesin interface- DesignerContext
- Parameters:
- resourceIds- Collection of ProjectResourceIds. Not null, but may be empty.
 
 - 
getExecutionManagerpublic ExecutionManager getExecutionManager() Description copied from interface:ClientContextReturns the shared task execution manager for this client- Specified by:
- getExecutionManagerin interface- ClientContext
 
 - 
getProgressManagerpublic ClientProgressManager getProgressManager() Description copied from interface:ClientContextReturns the progress manager, which allows the execution of long running or async tasks.- Specified by:
- getProgressManagerin interface- ClientContext
 
 - 
createSerializerpublic XMLSerializer createSerializer() Description copied from interface:DesignerContextCreates a new XML serializer that has been configured by all installed modules for custom serialization delegates- Specified by:
- createSerializerin interface- DesignerContext
- Returns:
- Not null.
 
 - 
getDesignerPrefspublic PersistentProperties getDesignerPrefs() Description copied from interface:DesignerContextReturns a PersistentProperties file that will be stored on a per-user basis for "persistent" but not project-encapsulated preferences- Specified by:
- getDesignerPrefsin interface- DesignerContext
 
 - 
getDefaultDatasourceNamepublic java.lang.String getDefaultDatasourceName() Description copied from interface:ClientContextReturns the current project's default datasource name- Specified by:
- getDefaultDatasourceNamein interface- ClientContext
 
 - 
getDefaultTagProviderNamepublic java.lang.String getDefaultTagProviderName() Description copied from interface:ClientContextReturns the current project's default Tag provider- Specified by:
- getDefaultTagProviderNamein interface- ClientContext
 
 - 
getAuthProfileNamepublic java.lang.String getAuthProfileName() Description copied from interface:ClientContextReturns the current project's user source- Specified by:
- getAuthProfileNamein interface- ClientContext
 
 - 
getSearchProviders@Nonnull public java.util.List<SearchProvider> getSearchProviders() Description copied from interface:DesignerContextGet the registered SearchProviders.- Specified by:
- getSearchProvidersin interface- DesignerContext
- Returns:
- Not null.
 
 - 
getSearchProvider@Nullable public SearchProvider getSearchProvider(java.lang.String id) - Specified by:
- getSearchProviderin interface- DesignerContext
 
 - 
registerClientPermissionspublic void registerClientPermissions(java.util.Map<java.lang.String,java.lang.String> bundleMap) Description copied from interface:DesignerContextRegister id-bundlekey pairs to limit client permissions- Specified by:
- registerClientPermissionsin interface- DesignerContext
- Parameters:
- bundleMap- Map of ids to bundlekeys. Not null.
 
 - 
getClientPermissionBundleKeyspublic java.util.Map<java.lang.String,java.lang.String> getClientPermissionBundleKeys() - Specified by:
- getClientPermissionBundleKeysin interface- DesignerContext
 
 - 
canEditResourceProtectionpublic boolean canEditResourceProtection() Description copied from interface:DesignerContextChecks whether or not the current logged in user can edit the protection bits of project resources.- Specified by:
- canEditResourceProtectionin interface- DesignerContext
 
 - 
registerSearchProviderpublic void registerSearchProvider(SearchProvider provider) Description copied from interface:DesignerContextRegisters a search provider that will be exposed through the find/replace system.- Specified by:
- registerSearchProviderin interface- DesignerContext
 
 - 
getFramepublic java.awt.Frame getFrame() Description copied from interface:DesignerContextReturns the owning frame of the designer. Handy for dialog parents- Specified by:
- getFramein interface- DesignerContext
 
 - 
getCopyActionpublic javax.swing.Action getCopyAction() - Specified by:
- getCopyActionin interface- DesignerContext
 
 - 
getCutActionpublic javax.swing.Action getCutAction() - Specified by:
- getCutActionin interface- DesignerContext
 
 - 
getDeleteActionpublic javax.swing.Action getDeleteAction() - Specified by:
- getDeleteActionin interface- DesignerContext
 
 - 
getPasteActionpublic javax.swing.Action getPasteAction() - Specified by:
- getPasteActionin interface- DesignerContext
 
 - 
getRenameActionpublic javax.swing.Action getRenameAction() - Specified by:
- getRenameActionin interface- DesignerContext
 
 - 
getRootPaneContainerpublic javax.swing.RootPaneContainer getRootPaneContainer() Description copied from interface:ClientContextReturns the RootPaneContainer that is currently the owner of the client- Specified by:
- getRootPaneContainerin interface- ClientContext
 
 - 
getTagPollRatepublic int getTagPollRate() Description copied from interface:ClientContextReturns the rate at which Tags should be polled for updates- Specified by:
- getTagPollRatein interface- ClientContext
 
 - 
getStatusBarpublic StatusBar getStatusBar() Description copied from interface:DesignerContextThe StatusBar at the bottom of the Designer can be used to display temporary messages and for adding always-present little components that appear in the bottom-right- Specified by:
- getStatusBarin interface- DesignerContext
- Returns:
- Not null.
 
 - 
getResourceEditManagerpublic DesignerResourceEditManager getResourceEditManager() Description copied from interface:DesignerContextResource edit manager- Specified by:
- getResourceEditManagerin interface- DesignerContext
 
 - 
getTagManagerpublic ClientTagManager getTagManager() Description copied from interface:CommonContextReturns the manager that provides access to Ignition's tag system.- Specified by:
- getTagManagerin interface- ClientContext
- Specified by:
- getTagManagerin interface- CommonContext
 
 - 
registerResourceWorkspacepublic void registerResourceWorkspace(ResourceWorkspace workspace) Description copied from interface:DesignerContextRegisters a newResourceWorkspace, which is a main editing area for the designer. The workspace has menus and toolbars associated with it that become visible when the workspace is focused.- Specified by:
- registerResourceWorkspacein interface- DesignerContext
- Parameters:
- workspace- The- ResourceWorkspaceto register with the designer
 
 - 
createDeserializerpublic XMLDeserializer createDeserializer() Description copied from interface:CommonContextReturns an instance of the XMLDeserializer that can be used to deserialize project resources. Note that this is the only safe way to obtain an instance of XMLDeserializer, because the context will pass the new deserializer around to all loaded modules, giving them a chance to initialize any custom deserialization deletes on it first.- Specified by:
- createDeserializerin interface- CommonContext
 
 - 
getProjectBrowserRootpublic ProjectBrowserRoot getProjectBrowserRoot() Description copied from interface:DesignerContextReturns the root node of the project browser tree, so that modules may add their own nodes.- Specified by:
- getProjectBrowserRootin interface- DesignerContext
- See Also:
- AbstractNavTreeNode
 
 - 
deserializepublic java.lang.Object deserialize(byte[] data, org.apache.log4j.Logger log) throws SerializationExceptionDescription copied from interface:ClientContextConvenience function to deserialize a gzipped byte array into a single object. If multiple objects are found, they will be discarded. Warnings are logged to the given logger. If data is null or empty, null is returned.- Specified by:
- deserializein interface- ClientContext
- Throws:
- SerializationException
 
 - 
addPropertyEditorpublic void addPropertyEditor(java.lang.Class<? extends AbstractPropertyEditorPanel> pageClass) Description copied from interface:DesignerContextAdds a property editor page that will be incorporated into the Designer's project property editing system. This class will be instantiated the first time that the property editor is displayed, and must have either a nullary constructor or a constructor that takes a DesignerContext. The Property Editing framework is designed around the idea that modules will store properties in opaquely xml-serialized project resources which can be uniquely identified by their module ID and resource type. The property editing UI will handle the de/serialization and project syncing tasks so that the property editor pages can simply focus on UI. - Specified by:
- addPropertyEditorin interface- DesignerContext
 
 - 
getScriptManagerpublic ScriptManager getScriptManager() Description copied from interface:CommonContextReturns the ScriptManager that can be used to execute Python scripts.- Specified by:
- getScriptManagerin interface- CommonContext
 
 - 
getDockingManagerpublic com.jidesoft.docking.DockingManager getDockingManager() Description copied from interface:DesignerContextReturns the JIDE DockingManager for the Designer- Specified by:
- getDockingManagerin interface- DesignerContext
 
 - 
getToolbarManagerpublic com.jidesoft.action.DockableBarManager getToolbarManager() Description copied from interface:DesignerContextReturns the JIDE dockable toolbar manager- Specified by:
- getToolbarManagerin interface- DesignerContext
 
 - 
getTagBrowserpublic com.inductiveautomation.ignition.designer.tags.frame.TagBrowserFrame getTagBrowser() Description copied from interface:DesignerContextReturns the TagBrowserPanel that can be used to select Tags- Specified by:
- getTagBrowserin interface- DesignerContext
 
 - 
getOPCBrowserpublic OPCBrowserPanel getOPCBrowser() Description copied from interface:DesignerContextReturns the OPCBrowserPanel that can be used to browse and import OPC items- Specified by:
- getOPCBrowserin interface- DesignerContext
 
 - 
getTagEditorpublic TagEditor getTagEditor() Description copied from interface:DesignerContextReturns the TagEditorPanel that can be used to edit/add Tags- Specified by:
- getTagEditorin interface- DesignerContext
 
 - 
getQueryBrowserPanelpublic QueryBrowser getQueryBrowserPanel() Description copied from interface:DesignerContextReturns the DB query browser tool- Specified by:
- getQueryBrowserPanelin interface- DesignerContext
 
 - 
getProjectpublic DesignableProject getProject() Description copied from interface:ClientContextReturns the project that this client is running. Note that this may be null before the client is fully logged in and started, because the context is created before the project is downloaded.- Specified by:
- getProjectin interface- ClientContext
- Specified by:
- getProjectin interface- DesignerContext
 
 - 
getModulepublic java.lang.Object getModule(java.lang.String id) Description copied from interface:CommonContextReturns the hook class for another module, used for modules that deal with each other's models. Example: The reporting plugin's designer hook uses this to get FactoryPMI's palette.- Specified by:
- getModulein interface- CommonContext
 
 - 
getModulespublic java.util.List<ModuleInfo> getModules() Description copied from interface:ClientContextRetrieve the list of all modules currently loaded in this context- Specified by:
- getModulesin interface- ClientContext
 
 - 
editResourceDocspublic void editResourceDocs(@Nonnull ProjectResource resource)Description copied from interface:DesignerContextOpens up the resource notes editor for the given project resources- Specified by:
- editResourceDocsin interface- DesignerContext
 
 - 
getLicenseStatepublic LicenseState getLicenseState(java.lang.String moduleId) Description copied from interface:CommonContextReturns the license state for the given module- Specified by:
- getLicenseStatein interface- CommonContext
 
 - 
getEdgeEditionspublic java.util.List<EdgeEdition> getEdgeEditions() Description copied from interface:CommonContextReturns a list of currently available Edge editions (either licensed or in trial). Does not check if any required modules are installed and running.- Specified by:
- getEdgeEditionsin interface- CommonContext
 
 
- 
 
-