Package org.qi4j.tools.model.descriptor

Examples of org.qi4j.tools.model.descriptor.EntityDetailDescriptor


        if( evt.getStateChange() == ItemEvent.DESELECTED )
        {
            return;
        }

        EntityDetailDescriptor entityDescriptor = (EntityDetailDescriptor) entitiesCombo.getSelectedItem();
        Class clazz = first( entityDescriptor.descriptor().types() );

        Module module = findModule( entityDescriptor );
        Query query = createQuery( module, clazz );
        propertiesPanel.reload( query );
    }
View Full Code Here


        }

        Class<?> clazz = obj.getClass();
        if( EntityDetailDescriptor.class.isAssignableFrom( clazz ) )
        {
            EntityDetailDescriptor entityDesc = (EntityDetailDescriptor) obj;
            Class entityType = first( entityDesc.descriptor().types() );

            // Update the selected item on the combo box, which in turn update the properties table
            ComboBoxModel comboModel = entitiesCombo.getModel();
            int index = -1;
            for( int i = 0; i < comboModel.getSize(); i++ )
            {
                EntityDetailDescriptor entityDesc1 = (EntityDetailDescriptor) comboModel.getElementAt( i );
                Class entityType1 = first( entityDesc1.descriptor().types() );

                if( entityType1.equals( entityType ) )
                {
                    index = i;
                    break;
View Full Code Here

        sortTypeChildren( iter );

        boolean first = true;
        for( Object obj : childList )
        {
            EntityDetailDescriptor descriptor = (EntityDetailDescriptor) obj;
            if( first )
            {
                String name = "Entities";
                parent = addChild( parent, name, name );
                first = false;
            }
            addChild( parent, descriptor.descriptor().toString(), descriptor );
        }
    }
View Full Code Here

TOP

Related Classes of org.qi4j.tools.model.descriptor.EntityDetailDescriptor

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.