Package org.eclipse.ui.part

Examples of org.eclipse.ui.part.IShowInTarget.show()


        }

        try {
            IViewPart view = page.showView(desc.getId());
            IShowInTarget target = getShowInTarget(view);
            if (target != null && target.show(context)) {
                // success
            } else {
                beep();
            }
            ((WorkbenchPage) page).performedShowIn(desc.getId()); // TODO: move back up
View Full Code Here


        public void run() {
          if (workbenchPart instanceof IShowInTarget) {
            IShowInTarget showInTarget = (IShowInTarget) workbenchPart;
            ShowInContext showInContext =
                new ShowInContext(formattedResource.getVProjectFile(), null);
            showInTarget.show(showInContext);
          } else {
            openFileInEditorAsync(formattedResource, workbenchPart.getSite().getWorkbenchWindow());
          }
        }
      });
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.