Package org.eclipse.ui.presentations

Examples of org.eclipse.ui.presentations.AbstractPresentationFactory


    public void createControl(Composite parent) {
        if (!isDisposed()) {
            return;
        }

        AbstractPresentationFactory factory = getFactory();

        PresentationSerializer serializer = new PresentationSerializer(
                getPresentableParts());

        StackPresentation presentation = PresentationFactoryUtil
View Full Code Here


        ctrl.addListener(SWT.Traverse, escapeListener);

        // Temporarily use the same appearance as docked views .. eventually, fastviews will
        // be independently pluggable.
        AbstractPresentationFactory factory = ((WorkbenchWindow) pane
                .getWorkbenchWindow()).getWindowConfigurer()
                .getPresentationFactory();
        StackPresentation presentation = factory.createViewPresentation(
                newClientComposite, site);

        site.setPresentation(presentation);
        site.setPresentationState(IStackPresentationSite.STATE_RESTORED);
        presentation.addPart(currentPane, null);
View Full Code Here

       
        WorkbenchWindowConfigurer configurer = wbw.getWindowConfigurer();
        if (configurer == null)
          return false;
       
        AbstractPresentationFactory factory = configurer.getPresentationFactory();
        if (factory == null)
          return false;
       
    // Ok, we should be good to go, return the pref
      IPreferenceStore preferenceStore = PrefUtil.getAPIPreferenceStore();
View Full Code Here

    String currentPresentationFactoryId = PrefUtil.getAPIPreferenceStore()
        .getString(
            IWorkbenchPreferenceConstants.PRESENTATION_FACTORY_ID);
    // Workbench.getInstance().getPresentationId();

    AbstractPresentationFactory factory = WorkbenchPlugin.getDefault()
        .getPresentationFactory(currentPresentationFactoryId);

    if (factory == null)
      factory = WorkbenchPlugin.getDefault().getPresentationFactory(
          IWorkbenchConstants.DEFAULT_PRESENTATION_ID);
    return factory.getClass().getName();

  }
View Full Code Here

     * @return the presentation used.
     */
    public IActionBarPresentationFactory getActionBarPresentationFactory() {
      // allow replacement of the actionbar presentation
      IActionBarPresentationFactory actionBarPresentation;         
      AbstractPresentationFactory presentationFactory =
        getWindowConfigurer().getPresentationFactory();
      if (presentationFactory instanceof IActionBarPresentationFactory) {
          actionBarPresentation = ((IActionBarPresentationFactory) presentationFactory);
      } else {
      actionBarPresentation = new DefaultActionBarPresentationFactory();
View Full Code Here

TOP

Related Classes of org.eclipse.ui.presentations.AbstractPresentationFactory

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.