Package org.eclipse.wb.internal.core.databinding.model.reference

Examples of org.eclipse.wb.internal.core.databinding.model.reference.FragmentReferenceProvider


        Class<?> beanClass =
            CoreUtils.load(classLoader, AstNodeUtils.getFullyQualifiedName(type, true));
        // prepare association widget
        JavaInfo widget = getJavaInfoRepresentedBy(root, fragment.getName().getIdentifier());
        //
        IReferenceProvider referenceProvider = new FragmentReferenceProvider(fragment);
        //
        IObservePresentation presentation =
            new BeanObservePresentation(beanClass, referenceProvider, widget, beanImage);
        //
        m_observables.add(new BeanObserveInfo(m_beanSupport,
View Full Code Here


          public boolean handleObject(BeanObserveInfo object) {
            return true;
          }

          public VariableDeclarationFragment getKeyObject(BeanObserveInfo observe) {
            FragmentReferenceProvider provider =
                (FragmentReferenceProvider) observe.getReferenceProvider();
            return provider.getFragment();
          }

          public boolean equals(VariableDeclarationFragment key0, VariableDeclarationFragment key1) {
            return key0 == key1;
          }

          public BeanObserveInfo findObject(Map<VariableDeclarationFragment, BeanObserveInfo> keyObjectToObject,
              VariableDeclarationFragment key) throws Exception {
            return null;
          }

          public BeanObserveInfo createObject(VariableDeclarationFragment fragment)
              throws Exception {
            try {
              // prepare bean class
              Type type = CoreUtils.getType(fragment, true);
              Class<?> beanClass =
                  CoreUtils.load(
                      CoreUtils.classLoader(root),
                      AstNodeUtils.getFullyQualifiedName(type, true));
              // prepare association widget
              JavaInfo widget = getJavaInfoRepresentedBy(root, fragment.getName().getIdentifier());
              //
              IReferenceProvider referenceProvider = new FragmentReferenceProvider(fragment);
              //
              IObservePresentation presentation =
                  new BeanObservePresentation(beanClass,
                      referenceProvider,
                      widget,
View Full Code Here

TOP

Related Classes of org.eclipse.wb.internal.core.databinding.model.reference.FragmentReferenceProvider

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.