public class PresentationUtil extends Object
Constructor and Description |
---|
PresentationUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
addDragListener(Control control,
Listener externalDragListener)
Adds a drag listener to the given control.
|
static void |
removeDragListener(Control control,
Listener externalDragListener)
Removes a drag listener that was previously attached using addDragListener
|
public static void addDragListener(Control control, Listener externalDragListener)
This is useful for registering a listener that will trigger an editor or view drag, since an overly sensitive drag listener can cause users to accidentally drag views when trying to select a tab.
Currently, only one such drag listener can be registered at a time.
control
- the control containing the drag listenerexternalDragListener
- the drag listener to attachGuidelines for using Eclipse APIs. Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.