Class StorableEnvironmentLoader


  • public abstract class StorableEnvironmentLoader
    extends Object
    This class implements the common functionality that allows storing and loading environment variable settings from eclipse properties
    Since:
    3.0
    • Constructor Detail

      • StorableEnvironmentLoader

        public StorableEnvironmentLoader()
    • Method Detail

      • cloneEnvironmentWithContext

        public StorableEnvironment cloneEnvironmentWithContext​(Object context,
                                                               StorableEnvironment base,
                                                               boolean isReadOnly)
        Creates the StorableEnvironment clone for a new configuration, say, based on an existing configuration
        Parameters:
        context - the configuration / workspace context the configuration is to be cloned for
        base - the base environment to copy
        Returns:
        a StorableEnvironment clone of the configuration's environment
        Since:
        5.2
      • getSerializeInfo

        protected abstract StorableEnvironmentLoader.ISerializeInfo getSerializeInfo​(Object context)
        this method should return the ISerializeInfo representing the information of where the variable should be stored and loaded If the given context is not supported this method should return null
      • storeEnvironment

        protected void storeEnvironment​(StorableEnvironment env,
                                        Object context,
                                        boolean force,
                                        boolean flush)
                                 throws org.eclipse.core.runtime.CoreException
        Throws:
        org.eclipse.core.runtime.CoreException