public void mouseClicked(MouseEvent e) {
int row = treeTable.getSelectedRow();
if (row == -1)
return;
if (e.getClickCount() == 2) {
AbstractMutableTreeTableNode node = utilizationModel.getNode(row);
if(node instanceof ServiceNode) {
ServiceItem item = graphViewAdapter.getServiceItem(((ServiceNode)node).getServiceElement(),
((ServiceNode)node).getUuid());
if(item!=null)
adminManager.doShowAdminUI(item, graphViewAdapter.getMain());
} else if(node instanceof CybernodeNode) {
ServiceItem item = ((CybernodeNode)node).getServiceItem();
if(item!=null)
adminManager.doShowAdminUI(item, graphViewAdapter.getMain());
}
} else if(e.getClickCount()==1) {
AbstractMutableTreeTableNode node = utilizationModel.getNode(row);
if(node instanceof DeploymentNode) {
if(treeTable.isExpanded(row)) {
treeTable.collapseRow(row);
} else {
treeTable.expandRow(row);