mirror of
https://gitee.com/jmix/cuba.git
synced 2024-12-04 12:17:41 +08:00
Refs #1819 Double click on jmx beans tables doesn't expand tree
This commit is contained in:
parent
d77d13fbc0
commit
56f53e45e9
@ -13,7 +13,6 @@ import com.haulmont.cuba.gui.components.*;
|
||||
import com.haulmont.cuba.gui.components.actions.ItemTrackingAction;
|
||||
import com.haulmont.cuba.gui.components.actions.RefreshAction;
|
||||
import com.haulmont.cuba.gui.data.CollectionDatasource;
|
||||
import com.haulmont.cuba.gui.data.Datasource;
|
||||
import com.haulmont.cuba.gui.data.ValueListener;
|
||||
import com.haulmont.cuba.jmxcontrol.entity.ManagedBeanInfo;
|
||||
import com.haulmont.cuba.web.app.ui.jmxcontrol.ds.ManagedBeanInfoDatasource;
|
||||
@ -72,21 +71,14 @@ public class MbeansDisplayWindow extends AbstractWindow {
|
||||
} else { // expand / collapse fake root node
|
||||
TreeTable treeTable = mbeansTable;
|
||||
UUID itemId = mbi.getId();
|
||||
if (treeTable.isExpanded(itemId)) {
|
||||
if (treeTable.isExpanded(itemId))
|
||||
treeTable.collapse(itemId);
|
||||
} else {
|
||||
else
|
||||
treeTable.expand(itemId);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isApplicableTo(Datasource.State state, Entity item) {
|
||||
return super.isApplicableTo(state, item) &&
|
||||
((ManagedBeanInfo) item).getObjectName() != null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getCaption() {
|
||||
return getMessage("action.inspect");
|
||||
|
Loading…
Reference in New Issue
Block a user