public class UiBridge
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
IWorkbenchWindow |
getActiveWorkbenchWindow()
Returns the active workbench window.
|
Shell |
getActiveWorkbenchWindowShell()
Returns the active workbench window shell.
|
AwbBenchmarkMonitor |
getBenchmarkMonitor()
Returns the benchmark monitor (Swing or SWT).
|
AwbConsole |
getConsole(boolean isForLocalConsoleOutput)
Returns a new instance of a console (Swing or SWT).
|
AwbConsoleDialog |
getConsoleDialog()
Returns a new instance of a console dialog (Swing or SWT).
|
static UiBridge |
getInstance()
Returns the singleton instance of the UiBridge.
|
AwbProgressMonitor |
getProgressMonitor(java.lang.String windowTitle,
java.lang.String headerText,
java.lang.String progressText)
Gets the progress monitor.
|
AwbProjectEditorWindow |
getProjectEditorWindow(Project project)
Returns the project window (Swing or SWT).
|
AwbProjectNewOpenDialog |
getProjectNewOpenDialog(java.lang.String title,
AwbProjectNewOpenDialog.ProjectAction currentAction)
Returns the project new open dialog (Swing or SWT).
|
AwbTrayIcon |
getTrayIcon()
Returns a new instance of a tray icon (Swing or SWT).
|
org.agentgui.PlugInApplication.ApplicationVisualizationBy |
getVisualisationPlatform()
Returns the current visualization platform.
|
IWorkbench |
getWorkbench()
Returns the current workbench, if active.
|
boolean |
isWorkbenchRunning()
Checks if is workbench running.
|
public static UiBridge getInstance()
public org.agentgui.PlugInApplication.ApplicationVisualizationBy getVisualisationPlatform()
public boolean isWorkbenchRunning()
public IWorkbench getWorkbench()
public IWorkbenchWindow getActiveWorkbenchWindow()
public Shell getActiveWorkbenchWindowShell()
public AwbConsole getConsole(boolean isForLocalConsoleOutput)
isForLocalConsoleOutput
- the is for local console outputpublic AwbConsoleDialog getConsoleDialog()
public AwbTrayIcon getTrayIcon()
public AwbBenchmarkMonitor getBenchmarkMonitor()
public AwbProgressMonitor getProgressMonitor(java.lang.String windowTitle, java.lang.String headerText, java.lang.String progressText)
windowTitle
- the window titleheaderText
- the header textprogressText
- the progress textpublic AwbProjectNewOpenDialog getProjectNewOpenDialog(java.lang.String title, AwbProjectNewOpenDialog.ProjectAction currentAction)
title
- the titlecurrentAction
- the current actionpublic AwbProjectEditorWindow getProjectEditorWindow(Project project)
project
- the project