public class WorkspaceChangeEvent extends WorkbenchEvent
source| Constructor and Description |
|---|
WorkspaceChangeEvent(IWorkbench workbench,
IWorkspace oldWorkspace,
IWorkspace newWorkspace)
Creates a new workspace change event that holds several information about
the workspace change.
|
| Modifier and Type | Method and Description |
|---|---|
IWorkspace |
getCurrentWorkspace()
Returns the current workspace.
|
IWorkspace |
getPreviousWorkspace()
Returns the previous workspace.
|
getWorkbenchgetSource, toStringpublic WorkspaceChangeEvent(IWorkbench workbench, IWorkspace oldWorkspace, IWorkspace newWorkspace)
workbench - the workbench that fired the eventoldWorkspace - the previous workspacenewWorkspace - the current workspacepublic IWorkspace getPreviousWorkspace()
public IWorkspace getCurrentWorkspace()