Package org.eclipse.ui.internal.presentations

Examples of org.eclipse.ui.internal.presentations.PresentationSerializer


            final EditorStack workbook = (EditorStack) i.next();
            final IMemento memento = workbook.getSavedPresentationState();
            if (memento == null) {
        continue;
      }
            final PresentationSerializer serializer = new PresentationSerializer(
                    workbook.getPresentableParts());
            StartupThreading.runWithoutExceptions(new StartupRunnable(){

        public void runWithException() throws Throwable {
           workbook.getPresentation().restoreState(serializer, memento);
View Full Code Here


            return;
        }

        AbstractPresentationFactory factory = getFactory();

        PresentationSerializer serializer = new PresentationSerializer(
                getPresentableParts());

        StackPresentation presentation = PresentationFactoryUtil
                .createPresentation(factory, appearance, parent,
                        presentationSite, serializer, savedPresentationState);
View Full Code Here

      LayoutPart part = childParts[i];
            showPart(part, null);
        }
       
        if (savedPresentationState!=null) {
      PresentationSerializer serializer = new PresentationSerializer(
          getPresentableParts());
      presentation.restoreState(serializer, savedPresentationState);
    }

        Control ctrl = getPresentation().getControl();
View Full Code Here

        {// Save the presentation's state before disposing it
            XMLMemento memento = XMLMemento
                    .createWriteRoot(IWorkbenchConstants.TAG_PRESENTATION);
            memento.putString(IWorkbenchConstants.TAG_ID, getFactory().getId());

            PresentationSerializer serializer = new PresentationSerializer(
                    getPresentableParts());

            getPresentation().saveState(serializer, memento);

            // Store the memento in savedPresentationState
View Full Code Here

TOP

Related Classes of org.eclipse.ui.internal.presentations.PresentationSerializer

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.