Package org.eclipse.ease.debugging
Class ScriptRegistry
java.lang.Object
org.eclipse.ease.debugging.ScriptRegistry
- All Implemented Interfaces:
IScriptRegistry
- Direct Known Subclasses:
PythonScriptRegistry
public class ScriptRegistry extends Object implements IScriptRegistry
Default implementation of
IScriptRegistry simply using maps to perform 1:1 mapping.-
Constructor Summary
Constructors Constructor Description ScriptRegistry() -
Method Summary
Modifier and Type Method Description org.eclipse.core.resources.IResourcegetResource(Script script)Get theIResourceidentified by thisScript.ScriptgetScript(org.eclipse.core.resources.IResource resource)Return theScriptidentified by thisIResource.voidput(Script script)Add a newScriptto the registry and store its mapping.
-
Constructor Details
-
ScriptRegistry
public ScriptRegistry()
-
-
Method Details
-
getScript
Description copied from interface:IScriptRegistryReturn theScriptidentified by thisIResource.- Specified by:
getScriptin interfaceIScriptRegistry- Parameters:
resource-IResourceto getScriptfor.- Returns:
Scriptidentified byIResourceornullif no mapping found.
-
getResource
Description copied from interface:IScriptRegistryGet theIResourceidentified by thisScript.- Specified by:
getResourcein interfaceIScriptRegistry- Parameters:
script-Scriptto getIResourcefor.- Returns:
IResourceidentified byScriptornullif no mapping found.
-
put
Description copied from interface:IScriptRegistryAdd a newScriptto the registry and store its mapping.- Specified by:
putin interfaceIScriptRegistry- Parameters:
script- Script to be stored in registry.
-