Examples of MeclipseView


Examples of org.mongodb.meclipse.views.MeclipseView

  @Override
  public Object execute(ExecutionEvent event) throws ExecutionException {
    // Get the view
    IWorkbenchWindow window = HandlerUtil.getActiveWorkbenchWindow(event);
    IWorkbenchPage page = window.getActivePage();
    MeclipseView view = (MeclipseView) page.findView(MeclipseView.ID);
    // Get the selection
    IStructuredSelection selection = (IStructuredSelection) view
        .getViewer().getSelection();

    if (selection != null && selection instanceof IStructuredSelection) {
      Collection obj = (Collection) selection.getFirstElement();
      // If we had a selection lets open the editor
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.