Package org.eclipse.swt.custom

Examples of org.eclipse.swt.custom.StyledText.addFocusListener()


    }

    final StyledText textWidget = getTextWidget();
    textWidget.setMenu(contextMenu.createContextMenu(textWidget));

    textWidget.addFocusListener(new FocusListener() {

      private IHandlerActivation cutHandlerActivation;
      private IHandlerActivation copyHandlerActivation;
      private IHandlerActivation pasteHandlerActivation;
      private IHandlerActivation selectAllHandlerActivation;
View Full Code Here


    text.getDisplay().addFilter(SWT.KeyUp, this);
    text.addKeyListener(this);
    text.addMouseListener(this);
    text.addMouseMoveListener(this);
    text.addFocusListener(this);
    text.addMouseTrackListener(this);

    fTextViewer.addTextListener(this);

    fHyperlinkPresenter.install(fTextViewer);
View Full Code Here

        // syncViewport(part);
        handleSelectionChanged(part);
      }
    });

    te.addFocusListener(new FocusAdapter() {
      public void focusGained(FocusEvent fe) {
        fFocusPart = part;
        connectGlobalActions(fFocusPart);
      }
View Full Code Here

   *            will receive the listeners.
   */
  public TextViewerSupport(TextViewer textViewer) {
    this.textViewer = textViewer;
    StyledText textWidget = textViewer.getTextWidget();
    textWidget.addFocusListener(this);
    textWidget.addDisposeListener(this);

    IWorkbenchWindow window = PlatformUI.getWorkbench()
        .getActiveWorkbenchWindow();
    handlerService = (IHandlerService) window
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.