if ((e.getClickCount()==2)){
int selRow = tree.getRowForLocation(e.getX(), e.getY());
TreePath selPath = tree.getPathForLocation(e.getX(), e.getY());
if ( selRow != -1
&& (((TreeElement)selPath.getLastPathComponent())).getUserObject() instanceof FilterTreeMemberElement) {
DimensionTreeElement dte = (DimensionTreeElement)(((TreeElement)selPath.getLastPathComponent())).getUserObject();
// toggle enabled flag here:
if (dte.isEnabled()){
((FilterTreeModel)tree.getModel()).disableMember(dte);
}else{
((FilterTreeModel)tree.getModel()).enableMember(dte);
}
enabledMembers.setText(((FilterTreeModel)tree.getModel()).getEnabledMembersCaption());