Package org.eclipse.jface.viewers

Examples of org.eclipse.jface.viewers.OpenEvent


  private void internalHandleOpen() {
    Control control = getControl();
    if (control != null && !control.isDisposed()) {
      ISelection selection = getSelection();
      internalFireOpen(new OpenEvent(this, selection));
    }
  }
View Full Code Here


  private void internalHandleOpen() {
    Control control = getControl();
    if (control != null && !control.isDisposed()) {
      ISelection selection = getSelection();
      internalFireOpen(new OpenEvent(this, selection));
    }
  }
View Full Code Here

  private void internalHandleOpen() {
    Control control = getControl();
    if (control != null && !control.isDisposed()) {
      ISelection selection = getSelection();
      internalFireOpen(new OpenEvent(this, selection));
    }
  }
View Full Code Here

    if(ti != null) {
      Object data = ti.getData();
      if(data != null) {
        ISelection selection = new StructuredSelection(data);
        viewer.setSelection(selection, true);
        page.handleOpen(new OpenEvent(viewer, selection));
      }
    }
  }
View Full Code Here

      @Override
      protected void activate(ISelection selection) {
        final int currentMode = OpenStrategy.getOpenMethod();
        try {
          OpenStrategy.setOpenMethod(OpenStrategy.DOUBLE_CLICK);
          handleOpen(new OpenEvent(viewer, selection));
        }
        finally {
          OpenStrategy.setOpenMethod(currentMode);
        }
      }

      @Override
      protected void linkToEditor(ISelection selection) {
        // not supported by this part
      }

      @Override
      protected void open(ISelection selection, boolean activate) {
        handleOpen(new OpenEvent(viewer, selection));
      }
    };
  }
View Full Code Here

TOP

Related Classes of org.eclipse.jface.viewers.OpenEvent

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.