Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 


Eclipse Platform
Release 3.5

org.eclipse.ui.presentations
Class PresentationUtil

java.lang.Object
  extended by 
org.eclipse.ui.presentations.PresentationUtil

public class PresentationUtil
extends Object

Contains various utility methods for Presentation authors

Since:
3.0

Constructor Summary
PresentationUtil ()
           
 
Method Summary
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
 
Methods inherited from class java.lang. Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PresentationUtil

public PresentationUtil()
Method Detail

addDragListener

public static void addDragListener(
Control control,
                                   
Listener externalDragListener)
Adds a drag listener to the given control. The behavior is very similar to control.addListener(SWT.DragDetect, dragListener), however the listener attached by this method is less sensitive. The drag event is only fired once the user moves the cursor more than HYSTERESIS pixels.

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.

Parameters:
control - the control containing the drag listener
externalDragListener - the drag listener to attach

removeDragListener

public static void removeDragListener(
Control control,
                                      
Listener externalDragListener)
Removes a drag listener that was previously attached using addDragListener

Parameters:
control - the control containing the drag listener
externalDragListener - the drag listener to remove

Eclipse Platform
Release 3.5

Guidelines for using Eclipse APIs.

Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire