Class AbstractClientContext

    • Field Detail

      • changeSupport

        protected java.beans.PropertyChangeSupport changeSupport
      • project

        protected Project project
      • projectTitle

        protected java.lang.String projectTitle
      • projectDescription

        protected java.lang.String projectDescription
    • Constructor Detail

      • AbstractClientContext

        protected AbstractClientContext​(LaunchContext launchContext,
                                        java.lang.String projectName)
    • Method Detail

      • initProject

        protected void initProject​(@Nonnull
                                   Project project)
      • getOrDefault

        protected <T> T getOrDefault​(ResourceType type,
                                     java.util.function.Supplier<T> defaultSupplier)
      • getProjectName

        @Nonnull
        public java.lang.String getProjectName()
        Description copied from interface: ClientContext
        The name of the project this client will be / is running
        Specified by:
        getProjectName in interface ClientContext
      • getProjectTitle

        public java.lang.String getProjectTitle()
      • getProjectDescription

        public java.lang.String getProjectDescription()
      • createExpressionFunctionFactory

        protected abstract FunctionFactory createExpressionFunctionFactory()
      • addPropertyChangeListener

        public void addPropertyChangeListener​(java.lang.String property,
                                              java.beans.PropertyChangeListener pcl)
        Specified by:
        addPropertyChangeListener in interface ClientContext
      • getDefaultDatasourceName

        public java.lang.String getDefaultDatasourceName()
        Description copied from interface: ClientContext
        Returns the current project's default datasource name
        Specified by:
        getDefaultDatasourceName in interface ClientContext
      • getAuthProfileName

        public java.lang.String getAuthProfileName()
        Description copied from interface: ClientContext
        Returns the current project's user source
        Specified by:
        getAuthProfileName in interface ClientContext
      • getTagPollRate

        public int getTagPollRate()
        Description copied from interface: ClientContext
        Returns the rate at which Tags should be polled for updates
        Specified by:
        getTagPollRate in interface ClientContext
      • setGlobalProps

        protected void setGlobalProps​(@Nullable
                                      GlobalProps newGp)
      • installLegacyScriptLibrary

        protected void installLegacyScriptLibrary​(ProjectResource resource)
      • getEdgeEditions

        public java.util.List<EdgeEdition> getEdgeEditions()
        Description copied from interface: CommonContext
        Returns 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:
        getEdgeEditions in interface CommonContext
      • getEventBus

        public com.google.common.eventbus.EventBus getEventBus()
        Description copied from interface: CommonContext
        This is a generic event bus that can be used by any part of Ignition within a single scope (jvm)
        Specified by:
        getEventBus in interface CommonContext
      • getUIEventBus

        public com.google.common.eventbus.EventBus getUIEventBus()
        Description copied from interface: ClientContext
        This event bus schedules event notification on the swing EDT. This is opposed to the event bus found on CommonContext.getEventBus(), which schedules event notification on a background thread.
        Specified by:
        getUIEventBus in interface ClientContext