public class ScriptRegistry extends java.lang.Object implements IScriptRegistry
IScriptRegistry simply using maps to perform 1:1 mapping.| Constructor and Description |
|---|
ScriptRegistry() |
| Modifier and Type | Method and 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. |
public Script getScript(org.eclipse.core.resources.IResource resource)
IScriptRegistryScript identified by this IResource.getScript in interface IScriptRegistryresource - IResource to get Script for.Script identified by IResource or null if no mapping found.public org.eclipse.core.resources.IResource getResource(Script script)
IScriptRegistryIResource identified by this Script.getResource in interface IScriptRegistryIResource identified by Script or null if no mapping found.public void put(Script script)
IScriptRegistryScript to the registry and store its mapping.put in interface IScriptRegistryscript - Script to be stored in registry.