abbot.editor
Class EditorContext
java.lang.Object
abbot.editor.EditorContext
public class EditorContext
- extends Object
Provide a transport for the editor context. This is usefull in cases where
the costello editor is invoked inside of another application. It can also
be used to provide further editor customization, for example a new file
template, depending on the context.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EditorContext
public EditorContext(String[] arguments)
EditorContext
public EditorContext()
getArguments
public String[] getArguments()
setArguments
public void setArguments(String[] arguments)
isEmbedded
public boolean isEmbedded()
- Returns:
- Whether the costello editor is being embdeed in another application
setEmbedded
public void setEmbedded(boolean embedded)
- Parameters:
embedded
- Whether costello is embedded in another application
getTestHierarchy
public TestHierarchy getTestHierarchy()
- Returns:
- A hierarchy that can preconfigured to filter certain components
ignoreExisting call. This is usefull in the embedded case.
setTestHierarchy
public void setTestHierarchy(TestHierarchy hierarchy)
- Parameters:
hierarchy
- A hierarchy that can preconfigured to filter certain components
- Throws:
IllegalStateException
- if we are not in an embedded mode
setNewFileTemplate
public void setNewFileTemplate(File newFileTemplate)
- Parameters:
newFileTemplate
- The file to be used when creating new
scripts.
getNewFileTemplate
public File getNewFileTemplate()
- Returns:
- The file to be used
setSecurityManager
public void setSecurityManager(SecurityManager securityManager)
- Parameters:
securityManager
- The secutiry manager for this context
getSecurityManager
public SecurityManager getSecurityManager()
- Returns:
- The security manage for this context
setFileSysteHelper
public void setFileSysteHelper(FileSystemHelper helper)
- Parameters:
helper
- A file system helper for this context, usefull for the
case where the costello editor is emdedded in an IDE
getFileSystemHelper
public FileSystemHelper getFileSystemHelper()
- Returns:
- A file system helper for this context
Copyright © 2002-2008 Timothy Wall. All Rights Reserved.
Abbot is hosted on