Examples of IViewRegistry


Examples of org.eclipse.ui.views.IViewRegistry

     * If the ratio is not known, the default ratio for the view is assigned and returned.
     */
    public float getFastViewWidthRatio(IViewReference ref) {
        ViewLayoutRec rec = getViewLayoutRec(ref, true);
        if (rec.fastViewWidthRatio == IPageLayout.INVALID_RATIO) {
            IViewRegistry reg = WorkbenchPlugin.getDefault().getViewRegistry();
            IViewDescriptor desc = reg.find(ref.getId());
            rec.fastViewWidthRatio =
                (desc != null
                    ? desc.getFastViewWidthRatio()
                    : IPageLayout.DEFAULT_FASTVIEW_RATIO);
        }
View Full Code Here

Examples of org.eclipse.ui.views.IViewRegistry

        "topRight", IPageLayout.RIGHT, (float) 0.7, editorArea);//$NON-NLS-1$
    topRight.addView(IPageLayout.ID_OUTLINE);

    IFolderLayout bottomRight = layout.createFolder(
        "bottomRight", IPageLayout.BOTTOM, (float) 0.5, "topRight");//$NON-NLS-1$
    IViewRegistry viewRegistry = WorkbenchPlugin.getDefault()
        .getViewRegistry();
    IViewDescriptor containedInTextGrid = viewRegistry
        .find("info.textgrid.lab.navigator.view");
    if (containedInTextGrid != null) {
      // contained in textgrid
      bottomRight.addView("info.textgrid.lab.navigator.view");
                                   
View Full Code Here

Examples of org.eclipse.ui.views.IViewRegistry

  public String getRegisteredName() {
    if (part != null && part.getSite() != null) {
      return part.getSite().getRegisteredName();
    }

    IViewRegistry reg = this.factory.viewReg;
    IViewDescriptor desc = reg.find(getId());
    if (desc != null) {
      return desc.getLabel();
    }
    return getTitle();
  }
View Full Code Here

Examples of org.eclipse.ui.views.IViewRegistry

     *
     * @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.IViewRegistry

                return new Status(IStatus.ERROR, Activator.PLUGIN_ID, 0, "", null); //$NON-NLS-1$

            return new Status(IStatus.OK, Activator.getDefault().getBundle().getSymbolicName(), 0, "", null); //$NON-NLS-1$
          }
        });
        final IViewRegistry reg = PlatformUI.getWorkbench().getViewRegistry();
        dlg.setInput(reg);
        dlg.open();
        if (dlg.getReturnCode() == Window.CANCEL)
          return;
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.