diff options
author | Bernard Normier <bernard@zeroc.com> | 2007-01-26 15:54:18 +0000 |
---|---|---|
committer | Bernard Normier <bernard@zeroc.com> | 2007-01-26 15:54:18 +0000 |
commit | 88df9686c689c8811f7ea7fe47e0a458f82e7f7e (patch) | |
tree | 22b316d43ccb45cc996baf92b0d0d0ea437daba9 /java/src/IceGridGUI/LiveDeployment/RegistryEditor.java | |
parent | Improved well-known object dialog (diff) | |
download | ice-88df9686c689c8811f7ea7fe47e0a458f82e7f7e.tar.bz2 ice-88df9686c689c8811f7ea7fe47e0a458f82e7f7e.tar.xz ice-88df9686c689c8811f7ea7fe47e0a458f82e7f7e.zip |
Added double-click on tables
Diffstat (limited to 'java/src/IceGridGUI/LiveDeployment/RegistryEditor.java')
-rwxr-xr-x | java/src/IceGridGUI/LiveDeployment/RegistryEditor.java | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/java/src/IceGridGUI/LiveDeployment/RegistryEditor.java b/java/src/IceGridGUI/LiveDeployment/RegistryEditor.java index f6d9bae43df..edb5879d368 100755 --- a/java/src/IceGridGUI/LiveDeployment/RegistryEditor.java +++ b/java/src/IceGridGUI/LiveDeployment/RegistryEditor.java @@ -122,6 +122,19 @@ class RegistryEditor extends Editor _applications.addMouseListener(new MouseAdapter() { + public void mouseClicked(MouseEvent e) + { + if(e.getClickCount() == 2) + { + int selectedRow = _applications.getSelectedRow(); + if(selectedRow != -1) + { + String appName = (String)_applications.getValueAt(selectedRow, 0); + _target.showApplicationDetails(appName); + } + } + } + public void mousePressed(MouseEvent e) { maybeShowPopup(e); @@ -209,6 +222,20 @@ class RegistryEditor extends Editor _objects.addMouseListener(new MouseAdapter() { + public void mouseClicked(MouseEvent e) + { + if(e.getClickCount() == 2) + { + int selectedRow = _objects.getSelectedRow(); + if(selectedRow != -1) + { + String proxy = (String)_objects.getValueAt(selectedRow, 0); + String type = (String)_objects.getValueAt(selectedRow, 1); + _target.showObject(proxy, type); + } + } + } + public void mousePressed(MouseEvent e) { maybeShowPopup(e); |