1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-03 07:05:24 +02:00

[257721] Doubleclick doing special handling and expanding

--added extra javadoc for allowAdapterToHandleDoubleClick()
This commit is contained in:
David McKnight 2009-01-13 16:08:28 +00:00
parent b27996fd6a
commit 61943b4b05

View file

@ -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 <code>false</code> 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;