WorkspaceComunicator

Use it to retrieve workspace data.

Methods

methodreturntypeDescription

getSelectedTab()

int

read

Get the selected tab id.

changeSelectedTab(int selectedTab)

void

write

Change the selected tab.

getSelectedWorkspace()

int

read

Get selected workspace id.

getWorkspace()

GWTWorkspace

read

Get selected workspace object.

getTabExtensionIndex(TabWorkspaceExtension widget)

int

read

Get the tab id of the widget.

getAppVersion()

String

read

Retrieve the application version.

Sample

int tab = WorkspaceComunicator.getSelectedTab();
if (tab==0) {
  Window.alert("First tab enabled");
} else {
  Window.alert("Other stack");
}