Examples of IViewDescriptor


Examples of org.eclipse.ui.views.IViewDescriptor

   *             If no view with id <tt>viewId</tt> is found in the view
   *             registry.
   */
  public static IViewPart getView(String viewId) throws CoreException,
      NoSuchElementException {
    IViewDescriptor descriptor = PlatformUI.getWorkbench()
        .getViewRegistry().find(viewId);
    if (descriptor == null) {
      throw new NoSuchElementException("No view with id - " + viewId);
    }
    return descriptor.createView();
  }
View Full Code Here

Examples of org.eclipse.ui.views.IViewDescriptor

     * @param sp
     */
    public ShowInShellAction(ISelectionProvider sp) {
      super(sp, null);
      IViewRegistry reg = PlatformUI.getWorkbench().getViewRegistry();
      IViewDescriptor desc = reg.find(KarafUIPlugin.TERMINAL_VIEW_ID);
      setText(desc.getLabel());
      setImageDescriptor(desc.getImageDescriptor());
    }
View Full Code Here

Examples of org.eclipse.ui.views.IViewDescriptor

    super.dispose();
  }
 
  public boolean performOk() {
   
    IViewDescriptor desc = workbench.getViewRegistry().find(Activator.PLUGIN_ID + ".views.HudsonView");
    if (desc != null) {
      try {
        IViewPart part = desc.createView();
        System.out.println(part);
      } catch (CoreException e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
      }
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.