Examples of PropertiesModel


Examples of org.qi4j.runtime.property.PropertiesModel

            {
                if (type.equals( ValueComposite.class ))
                {
                    // Create default model
                    MixinsModel mixinsModel = new MixinsModel();
                    model = new ValueModel( ValueComposite.class, (Iterable) Iterables.iterable(ValueComposite.class), Visibility.application, new MetaInfo( ), mixinsModel, new ValueStateModel( new PropertiesModel(), new AssociationsModel(), new ManyAssociationsModel() ), new CompositeMethodsModel( mixinsModel ) );
                } else
                    throw new InvalidApplicationException("["+module.name()+"] Could not find ValueComposite of type "+type);
            }

            return model.valueType();
View Full Code Here

Examples of org.qi4j.runtime.property.PropertiesModel

            metaInfo = new MetaInfo( metaInfo ).withAnnotations( compositeType );
            addAnnotationsMetaInfo( compositeType, metaInfo );

            immutable = metaInfo.get( Immutable.class ) != null;
            propertiesModel = new PropertiesModel();
            stateModel = new StateModel( propertiesModel );
            mixinsModel = new MixinsModel();

            compositeMethodsModel = new CompositeMethodsModel( mixinsModel );
View Full Code Here

Examples of org.qi4j.runtime.property.PropertiesModel

            metaInfo = new MetaInfo( metaInfo ).withAnnotations( compositeType );
            addAnnotationsMetaInfo( compositeType, metaInfo );

            immutable = metaInfo.get( Immutable.class ) != null;
            propertiesModel = new PropertiesModel();
            stateModel = new StateModel( propertiesModel );
            mixinsModel = new MixinsModel();

            propertiesModel = new PropertiesModel();
            associationsModel = new AssociationsModel( );
            manyAssociationsModel = new ManyAssociationsModel();
            stateModel = new EntityStateModel( propertiesModel, associationsModel, manyAssociationsModel );
            mixinsModel = new EntityMixinsModel();
View Full Code Here

Examples of org.qi4j.runtime.property.PropertiesModel

            metaInfo = new MetaInfo( metaInfo ).withAnnotations( compositeType );
            addAnnotationsMetaInfo( compositeType, metaInfo );

            immutable = metaInfo.get( Immutable.class ) != null;
            propertiesModel = new PropertiesModel();
            associationsModel = new AssociationsModel( );
            manyAssociationsModel = new ManyAssociationsModel();
            stateModel = new ValueStateModel( propertiesModel, associationsModel, manyAssociationsModel );
            mixinsModel = new MixinsModel();
View Full Code Here

Examples of org.qi4j.runtime.property.PropertiesModel

            metaInfo = new MetaInfo( metaInfo ).withAnnotations( compositeType );
            addAnnotationsMetaInfo( compositeType, metaInfo );

            immutable = metaInfo.get( Immutable.class ) != null;
            propertiesModel = new PropertiesModel();
            stateModel = new StateModel( propertiesModel );
            mixinsModel = new MixinsModel();

            compositeMethodsModel = new CompositeMethodsModel( mixinsModel );
View Full Code Here

Examples of org.qi4j.runtime.property.PropertiesModel

            metaInfo = new MetaInfo( metaInfo ).withAnnotations( compositeType );
            addAnnotationsMetaInfo( compositeType, metaInfo );
        }

        immutable = metaInfo.get( Immutable.class ) != null;
        propertiesModel = new PropertiesModel();
        stateModel = createStateModel();
        mixinsModel = createMixinsModel();
        compositeMethodsModel = new CompositeMethodsModel( mixinsModel );

        // Implement composite methods
View Full Code Here

Examples of org.qi4j.runtime.property.PropertiesModel

                if( type.equals( ValueComposite.class ) )
                {
                    // Create default model
                    MixinsModel mixinsModel = new MixinsModel();
                    Iterable valueComposite = (Iterable) Iterables.iterable( ValueComposite.class );
                    ValueStateModel valueStateModel = new ValueStateModel( new PropertiesModel(),
                                                                           new AssociationsModel(),
                                                                           new ManyAssociationsModel(),
                                                                           new NamedAssociationsModel() );
                    model = new ValueModel( valueComposite, Visibility.application, new MetaInfo(),
                                            mixinsModel, valueStateModel, new CompositeMethodsModel( mixinsModel ) );
View Full Code Here

Examples of org.springframework.ide.eclipse.beans.ui.properties.model.PropertiesModel

  @Override
  protected Control createContents(Composite parent) {

    // Build temporary beans core model with a cloned "real" Spring project
    IProject project = (IProject) getElement();
    model = new PropertiesModel();
    PropertiesProject modelProject = new PropertiesProject(model, BeansCorePlugin.getModel().getProject(project));
    model.addProject(modelProject);

    // Build folder with tabs
    TabFolder folder = new TabFolder(parent, SWT.NONE);
View Full Code Here

Examples of org.springframework.ide.eclipse.beans.ui.properties.model.PropertiesModel

    @Override
    public void run() {
      IBeansProject beansProject = BeansModelUtils.getProject(config);
      if (beansProject != null) {
        PropertiesProject modelProject = new PropertiesProject(new PropertiesModel(), beansProject);
        PropertiesConfigSet propSet = (PropertiesConfigSet) modelProject.getConfigSet(configSet.getElementName());
        propSet.addConfig(config.getElementName());
        modelProject.saveDescription();
        BeansModelLabelDecorator.update();
      }
View Full Code Here

Examples of org.springframework.ide.eclipse.beans.ui.properties.model.PropertiesModel

 
  public void removeConfigFromProject(IBeansConfig config) {
    if (config != null) {
      IBeansProject project = BeansModelUtils.getProject(config);
      if (project != null) {
        PropertiesProject modelProject = new PropertiesProject(new PropertiesModel(), project);
        modelProject.removeConfig(config.getElementName());
        modelProject.saveDescription();
      }
    }
  }
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.