1) Add a mouse listener to the tree.
2) On double click event lookup the properties command
3) If command is enabled call execute
Code:
tree.addMouseListener(new MouseAdapter() {
public void mouseClicked(MouseEvent e) {
if (e.getClickCount() == 2
&& e.getButton() == MouseEvent.BUTTON1) {
ActionCommand command = getCommandManager()
.getActionCommand(GlobalCommandIds.PROPERTIES);
if (command.isEnabled()) {
command.execute();
}
}
}
});
Ollie