|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ScriptFactory
This interface has to be implemented by factories of scripts which extend our plugin.
Method Summary | |
---|---|
boolean |
canGetScript(String language)
If this method returns true the getScript method is not allowed to return null for the same name! |
Script |
getScript(String language,
String label,
org.eclipse.core.resources.IFile file)
Creates a script from a given eclipse file. |
Script |
getScript(String language,
String label,
String code)
Creates a script from code. |
Collection<String> |
getSupportedScripts()
Every language name which is returned here must not cause a null return of the getScript method! |
Method Detail |
---|
Script getScript(String language, String label, String code)
language
- the name of the language - more than one name per language allowed!label
- the label of the scriptcode
- the script code
Script getScript(String language, String label, org.eclipse.core.resources.IFile file)
language
- the name of the language - more than one name per language allowed!label
- the label of the scriptfile
- the file containing the code
Collection<String> getSupportedScripts()
boolean canGetScript(String language)
language
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |