public abstract class SAApplication extends Object
getActiveApplication(MDWorkbench)
Modifier | Constructor and Description |
---|---|
protected |
SAApplication()
Clients are not expected to subclass nor instantiate this class.
|
Modifier and Type | Method and Description |
---|---|
static SAApplication |
getActiveApplication(MDWorkbench workbench)
Connects to the active System Architect application instance.
|
abstract IEncyclopedia |
getEncyclopedia()
Returns the encyclopedia object, which facilitates access to the encyclopedia class attributes
and methods.
|
abstract FileManager |
getFileManager()
Return a new file manager initialized from the System Architect application.
|
abstract File |
getInstallDirectory()
Return the install directory of the System Architect application.
|
abstract void |
refreshBrowser()
Refreshes the System Architect browser.
|
abstract void |
runWithoutDialogs(Runnable runnable,
Logger logger)
Executes the specified runnable block and prevents dialogs from blocking the execution.
|
abstract void |
writeStatusLine(String text)
Allows short messages to be relayed to the user to keep them informed whilst code is being
executed on the status bar of System Architect (bar in the bottom left hand corner).
|
protected SAApplication()
getActiveApplication(MDWorkbench)
public static SAApplication getActiveApplication(MDWorkbench workbench) throws CoreException
workbench
- the workbench which determines the context in which the connection to the application is made.CoreException
- if System Architect is not running.public abstract IEncyclopedia getEncyclopedia()
public abstract void refreshBrowser()
public abstract void writeStatusLine(String text)
text
- text that will be shown on status bar.public abstract void runWithoutDialogs(Runnable runnable, Logger logger)
runnable
- an runnable to execute.logger
- the logger which is notified of System Architect potential warning messages.public abstract FileManager getFileManager()
public abstract File getInstallDirectory()