Interface IScriptRegistry

All Known Subinterfaces:
IPythonScriptRegistry
All Known Implementing Classes:
EventDispatchJob, PythonEventDispatchJob, PythonScriptRegistry, ScriptRegistry

public interface IScriptRegistry
Simple interface for mapping between data types in different debugger realms. The eclipse framework uses IResource objects to identify files while EASE relies on Script objects.
  • Method Summary

    Modifier and Type Method Description
    org.eclipse.core.resources.IResource getResource​(Script script)
    Get the IResource identified by this Script.
    Script getScript​(org.eclipse.core.resources.IResource resource)
    Return the Script identified by this IResource.
    void put​(Script script)
    Add a new Script to the registry and store its mapping.
  • Method Details

    • put

      void put​(Script script)
      Add a new Script to the registry and store its mapping.
      Parameters:
      script - Script to be stored in registry.
    • getScript

      Script getScript​(org.eclipse.core.resources.IResource resource)
      Return the Script identified by this IResource.
      Parameters:
      resource - IResource to get Script for.
      Returns:
      Script identified by IResource or null if no mapping found.
    • getResource

      org.eclipse.core.resources.IResource getResource​(Script script)
      Get the IResource identified by this Script.
      Parameters:
      script - Script to get IResource for.
      Returns:
      IResource identified by Script or null if no mapping found.