Package org.eclipse.ui.internal

Examples of org.eclipse.ui.internal.Perspective


      return;
    }

        if (makeFast) {
            WorkbenchPage wp = (WorkbenchPage) activePage;
          Perspective persp = wp.getActivePerspective();

            // If we're making a fast view then use the new mechanism directly
            boolean useNewMinMax = Perspective.useNewMinMax(persp);
            if (useNewMinMax) {
              IViewReference ref = persp.getViewReference(viewId, null);
              if (ref == null)
                return;

              persp.getFastViewManager().addViewReference(FastViewBar.FASTVIEWBAR_ID, -1, ref, true);
            wp.activate(ref.getPart(true));
           
            return;
            }
           
View Full Code Here


          setEnabled(false);
          return;
        }
       
        // Are we showing a 'real' fast view or a minimized view ?
        Perspective persp = viewPane.getPane().getPage().getActivePerspective();
        FastViewManager fvm = persp.getFastViewManager();
       
        String trimId = null;
        if (fvm != null)
          trimId = fvm.getIdForRef(viewRef);
        realFV = trimId == null || FastViewBar.FASTVIEWBAR_ID.equals(trimId);

        // it's 'restore' if we're not using a real fast view
        if (realFV) {
          setText(WorkbenchMessages.ViewPane_fastView);
        }
        else {
          setText(WorkbenchMessages.StandardSystemToolbar_Restore);
          setChecked(false);
        }
       
        if (!site.isPartMoveable(viewPane)) {
            setEnabled(false);
        } else {
            setEnabled(true);
           
            if (realFV)
              setChecked(persp.isFastView(viewRef));
        }
    }
View Full Code Here

      }
      else {
        // We're a minimized stack...restore it
            IViewReference viewRef = getReference();
           
            Perspective persp = viewPane.getPane().getPage().getActivePerspective();
            FastViewManager fvm = persp.getFastViewManager();
            String trimId = fvm.getIdForRef(viewRef);
            fvm.restoreToPresentation(trimId);
      }
    }
View Full Code Here

TOP

Related Classes of org.eclipse.ui.internal.Perspective

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.