Package org.eclipse.swt.widgets

Examples of org.eclipse.swt.widgets.Control.addListener()


    OwnerDrawListener listener = (OwnerDrawListener) control
        .getData(OWNER_DRAW_LABEL_PROVIDER_LISTENER);
    if (listener == null) {
      listener = new OwnerDrawListener(viewer);
      control.setData(OWNER_DRAW_LABEL_PROVIDER_LISTENER, listener);
      control.addListener(SWT.MeasureItem, listener);
      control.addListener(SWT.EraseItem, listener);
      control.addListener(SWT.PaintItem, listener);
    }
    return listener;
  }
View Full Code Here


        .getData(OWNER_DRAW_LABEL_PROVIDER_LISTENER);
    if (listener == null) {
      listener = new OwnerDrawListener(viewer);
      control.setData(OWNER_DRAW_LABEL_PROVIDER_LISTENER, listener);
      control.addListener(SWT.MeasureItem, listener);
      control.addListener(SWT.EraseItem, listener);
      control.addListener(SWT.PaintItem, listener);
    }
    return listener;
  }
View Full Code Here

    if (listener == null) {
      listener = new OwnerDrawListener(viewer);
      control.setData(OWNER_DRAW_LABEL_PROVIDER_LISTENER, listener);
      control.addListener(SWT.MeasureItem, listener);
      control.addListener(SWT.EraseItem, listener);
      control.addListener(SWT.PaintItem, listener);
    }
    return listener;
  }

  /**
 
View Full Code Here

    }

        Control control = editor.getControl();
        Assert.isNotNull(control);
        controlToEditor.put(control, editor);
        control.addListener(SWT.Activate, controlListener);
        control.addListener(SWT.Deactivate, controlListener);

        if (control.isFocusControl()) {
            activeEditor = editor;
            editor.addPropertyChangeListener(cellListener);
View Full Code Here

        Control control = editor.getControl();
        Assert.isNotNull(control);
        controlToEditor.put(control, editor);
        control.addListener(SWT.Activate, controlListener);
        control.addListener(SWT.Deactivate, controlListener);

        if (control.isFocusControl()) {
            activeEditor = editor;
            editor.addPropertyChangeListener(cellListener);
            updateActionsEnableState();
View Full Code Here

        if (ctrl == null) {
            pane.createControl(clientComposite);
            ctrl = pane.getControl();
        }

        ctrl.addListener(SWT.Traverse, escapeListener);

        // Temporarily use the same appearance as docked views .. eventually, fastviews will
        // be independently pluggable.
        AbstractPresentationFactory factory = ((WorkbenchWindow) pane
                .getWorkbenchWindow()).getWindowConfigurer()
View Full Code Here

    else*/ c = new Sash(this, sashStyle);
    final Control sash = c;

    sash.setBackground(background);
    sash.setForeground(foreground);
    sash.addListener(SWT.Selection, sashListener);

    sash.addListener(SWT.Resize, new Listener() {
      @SuppressWarnings("unused")
      public void handleEvent(Event event) {
        sash.redraw();
View Full Code Here

    sash.setBackground(background);
    sash.setForeground(foreground);
    sash.addListener(SWT.Selection, sashListener);

    sash.addListener(SWT.Resize, new Listener() {
      @SuppressWarnings("unused")
      public void handleEvent(Event event) {
        sash.redraw();
      }
    });
View Full Code Here

      public void handleEvent(Event event) {
        sash.redraw();
      }
    });

    sash.addListener(SWT.Paint, new Listener() {
      @SuppressWarnings("unused")
      public void handleEvent(Event event) {
        GC gc = new GC(sash);
       
        int sashIndex = -1;
View Full Code Here

                }
            }
        });

       
        isvToolBar.addListener(SWT.Activate, this);
        isvToolBar.moveAbove(control);
    }

    public void dispose() {
        super.dispose();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.