From 61943b4b054d2e86d669e2b6600886c40560b032 Mon Sep 17 00:00:00 2001 From: David McKnight Date: Tue, 13 Jan 2009 16:08:28 +0000 Subject: [PATCH] [257721] Doubleclick doing special handling and expanding --added extra javadoc for allowAdapterToHandleDoubleClick() --- .../org/eclipse/rse/internal/ui/view/SystemView.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/rse/plugins/org.eclipse.rse.ui/UI/org/eclipse/rse/internal/ui/view/SystemView.java b/rse/plugins/org.eclipse.rse.ui/UI/org/eclipse/rse/internal/ui/view/SystemView.java index e092a13fdee..842df60ecb7 100644 --- a/rse/plugins/org.eclipse.rse.ui/UI/org/eclipse/rse/internal/ui/view/SystemView.java +++ b/rse/plugins/org.eclipse.rse.ui/UI/org/eclipse/rse/internal/ui/view/SystemView.java @@ -6652,6 +6652,18 @@ public class SystemView extends SafeTreeViewer } } + /** + * This method is used to set whether or not the tree viewer allows the view adapter + * for a selected object to handle a double-click. If so, the adapter implements it's + * own handleDoubleClickMethod() and returns whether or not the operation is complete + * such that the view does or does not need to do additional processing (such as expansion). + * Typically the method is called with false when the SystemView is used in a + * dialog since, in that context, it makes no sense to respond to double-clicks by opening + * in an editor. In contrast to this approach, SystemView.setEnabled(false) prevents any + * handling of double-click (such as the tree expand) and disables the context menu. + * + * @param flag whether to allow the adapter to handle the double click + */ public void allowAdapterToHandleDoubleClick(boolean flag) { _allowAdapterToHandleDoubleClick = flag;