Package org.eclipse.jface.util

Examples of org.eclipse.jface.util.OpenStrategy


  /*
   * (non-Javadoc) Method declared on Viewer.
   */
  protected void hookControl(Control control) {
    super.hookControl(control);
    OpenStrategy handler = new OpenStrategy(control);
    handler.addSelectionListener(new SelectionListener() {
      public void widgetSelected(SelectionEvent e) {
        // On Windows, selection events may happen during a refresh.
        // Ignore these events if we are currently in preservingSelection().
        // See bug 184441.
        if (!inChange) {
          handleSelect(e);
        }
      }

      public void widgetDefaultSelected(SelectionEvent e) {
        handleDoubleSelect(e);
      }
    });
    handler.addPostSelectionListener(new SelectionAdapter() {
      public void widgetSelected(SelectionEvent e) {
        handlePostSelect(e);
      }
    });
    handler.addOpenListener(new IOpenEventListener() {
      public void handleOpen(SelectionEvent e) {
        StructuredViewer.this.handleOpen(e);
      }
    });
  }
View Full Code Here


        super(selectionLayer, rowDataProvider, fullySelectedRowsOnly);
        hookControl(natTable);
    }

    protected void hookControl(Control control) {
        OpenStrategy handler = new OpenStrategy(control);
        handler.addPostSelectionListener(new SelectionAdapter() {
            @Override
            public void widgetSelected(SelectionEvent e) {
                handlePostSelect(e);
            }
        });
View Full Code Here

  /*
   * (non-Javadoc) Method declared on Viewer.
   */
  protected void hookControl(Control control) {
    super.hookControl(control);
    OpenStrategy handler = new OpenStrategy(control);
    handler.addSelectionListener(new SelectionListener() {
      public void widgetSelected(SelectionEvent e) {
        // On Windows, selection events may happen during a refresh.
        // Ignore these events if we are currently in preservingSelection().
        // See bug 184441.
        if (!inChange) {
          handleSelect(e);
        }
      }

      public void widgetDefaultSelected(SelectionEvent e) {
        handleDoubleSelect(e);
      }
    });
    handler.addPostSelectionListener(new SelectionAdapter() {
      public void widgetSelected(SelectionEvent e) {
        handlePostSelect(e);
      }
    });
    handler.addOpenListener(new IOpenEventListener() {
      public void handleOpen(SelectionEvent e) {
        StructuredViewer.this.handleOpen(e);
      }
    });
  }
View Full Code Here

    fTable = new Table(parent, SWT.SINGLE | SWT.V_SCROLL | SWT.H_SCROLL);
    fTestRunner = testRunner;

    fClipboard= new Clipboard(parent.getDisplay());

    OpenStrategy handler = new OpenStrategy(fTable);
    handler.addOpenListener(new IOpenEventListener() {
        public void handleOpen(SelectionEvent e) {

          if (fTable.getSelectionIndex() == 0) {
            (new CompareResultsAction(FailureTrace.this)).run();
            return;
View Full Code Here

TOP

Related Classes of org.eclipse.jface.util.OpenStrategy

Copyright © 2018 www.massapicom. 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.