WorkspaceComunicator
From OpenKM Documentation
Read Methods
int getSelectedTab() setSearchView() int getSelectedWorkspace()
Example
int tab = WorkspaceComunicator.getSelectedTab();
if (tab==0) {
Window.alert("First tab enabled");
} else {
Window.alert("Other stack");
}