Package org.eclipse.ui

Examples of org.eclipse.ui.IPersistableElement.saveState()


        IMemento definitionM = appendNewChild(projectM, ASPECT_DEFINITION_ELEMENT);
        if (entry.getKey() instanceof IAdaptable) {
          IPersistableElement pers = (IPersistableElement) ((IAdaptable) entry.getKey())
              .getAdapter(IPersistableElement.class);
          if (pers != null) {
            pers.saveState(definitionM);
            definitionM.putString(FACTORY_ID, pers.getFactoryId());
          }
          for (IAopReference ref : entry.getValue()) {
            if (ref instanceof IAdaptable) {
              IPersistableElement pers2 = (IPersistableElement) ((IAdaptable) ref)
View Full Code Here


            if (ref instanceof IAdaptable) {
              IPersistableElement pers2 = (IPersistableElement) ((IAdaptable) ref)
                  .getAdapter(IPersistableElement.class);
              if (pers2 != null) {
                IMemento refM = appendNewChild(definitionM, AOP_REFERENCE_ELEMENT);
                pers2.saveState(refM);
                refM.putString(FACTORY_ID, pers2.getFactoryId());
              }
            }
          }
        }
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.