Example usage for org.eclipse.jface.fieldassist ControlDecoration removeSelectionListener

List of usage examples for org.eclipse.jface.fieldassist ControlDecoration removeSelectionListener

Introduction

In this page you can find the example usage for org.eclipse.jface.fieldassist ControlDecoration removeSelectionListener.

Prototype

public void removeSelectionListener(SelectionListener listener) 

Source Link

Document

Removes the listener from the collection of listeners who will be notified when the decoration is selected.

Usage

From source file:org.eclipse.rap.demo.controls.ControlDecorationTab.java

License:Open Source License

private void configureDecoration(ControlDecoration decoration) {
    decoration.setShowHover(showHover);//from   w  ww  .j a  va2 s  .  co  m
    decoration.setShowOnlyOnFocus(showOnlyOnFocus);
    decoration.setDescriptionText(description);
    if (hasCreateProperty(PROP_SELECTION_LISTENER)) {
        decoration.addSelectionListener(listener);
    } else {
        decoration.removeSelectionListener(listener);
    }
}