Class RuntimeRegistry

java.lang.Object
com._1c.g5.v8.dt.internal.platform.RuntimeRegistry
All Implemented Interfaces:
IRuntimeRegistry, EventListener, org.eclipse.core.runtime.IRegistryChangeListener

public class RuntimeRegistry extends Object implements IRuntimeRegistry, org.eclipse.core.runtime.IRegistryChangeListener
Implementation of IRuntimeRegistry.
  • Constructor Details

    • RuntimeRegistry

      public RuntimeRegistry()
      Creates an instance of IRuntimeRegistry.
  • Method Details

    • getRuntime

      public IRuntime getRuntime(String id)
      Description copied from interface: IRuntimeRegistry
      Returns the 1C:Enterprise runtime extension with the specified identifier or null if it does not exist.
      Specified by:
      getRuntime in interface IRuntimeRegistry
      Parameters:
      id - the unique identifier for 1C:Enterprise runtime extension, cannot be null
      Returns:
      the 1C:Enterprise runtime extension with the specified id or null if it does not exist
    • getRuntime

      public IRuntime getRuntime(Version version)
      Description copied from interface: IRuntimeRegistry
      Returns the 1C:Enterprise runtime extension with the specified version or null if it does not exist.
      Specified by:
      getRuntime in interface IRuntimeRegistry
      Parameters:
      version - the platform version of 1C:Enterprise runtime extension, cannot be null
      Returns:
      the 1C:Enterprise runtime extension with the specified version or null if it does not exist
    • getRuntimes

      public Collection<IRuntime> getRuntimes()
      Description copied from interface: IRuntimeRegistry
      Returns all defined 1C:Enterprise runtimes extensions. Returned collection is unmodifiable.
      Specified by:
      getRuntimes in interface IRuntimeRegistry
      Returns:
      a collection of all 1C:Enterprise runtimes extensions, never null
    • registryChanged

      public void registryChanged(org.eclipse.core.runtime.IRegistryChangeEvent event)
      Specified by:
      registryChanged in interface org.eclipse.core.runtime.IRegistryChangeListener
    • addRuntimeRegistryChangeListener

      public void addRuntimeRegistryChangeListener(IRuntimeRegistryChangeListener listener)
      Description copied from interface: IRuntimeRegistry
      Adds 1C:Enterprise runtimes extensions registry change listener
      Specified by:
      addRuntimeRegistryChangeListener in interface IRuntimeRegistry
      Parameters:
      listener - 1C:Enterprise runtime extension registry change listener, cannot be null
    • removeRuntimeRegistryChangeListener

      public void removeRuntimeRegistryChangeListener(IRuntimeRegistryChangeListener listener)
      Description copied from interface: IRuntimeRegistry
      Removes 1C:Enterprise runtimes extensions registry change listener
      Specified by:
      removeRuntimeRegistryChangeListener in interface IRuntimeRegistry
      Parameters:
      listener - 1C:Enterprise runtime extension registry change listener, cannot be null