Search in sources :

Example 1 with IdMappingMappedByRelationshipPane2_0

use of org.eclipse.jpt.jpa.ui.internal.jpa2.details.IdMappingMappedByRelationshipPane2_0 in project jbosstools-hibernate by jbosstools.

the class Hibernate2_0OrmIdMappingComposite method initializeIdSection.

@SuppressWarnings({ "rawtypes", "unchecked" })
@Override
protected Control initializeIdSection(Composite container) {
    // new IdMapping2_0MappedByRelationshipPane(this, getSubjectHolder(), container);
    // new HibernateColumnComposite(this, (PropertyValueModel<? extends HibernateColumn>) buildColumnHolder(), container);
    // new OrmMappingNameChooser(this, getSubjectHolder(), container);
    // new AccessTypeComposite(this, buildAccessHolderHolder(), container);
    container = this.addSubPane(container, 2, 0, 0, 0, 0);
    IdMappingMappedByRelationshipPane2_0 mappedByRelationshipPane = new IdMappingMappedByRelationshipPane2_0(this, getSubjectHolder(), container);
    GridData gridData = new GridData(GridData.FILL_HORIZONTAL);
    gridData.horizontalSpan = 2;
    mappedByRelationshipPane.getControl().setLayoutData(gridData);
    // Column widgets
    HibernateColumnComposite columnComposite = new HibernateColumnComposite(this, (PropertyValueModel<? extends HibernateColumn>) buildColumnModel(), container);
    gridData = new GridData(GridData.FILL_HORIZONTAL);
    gridData.horizontalSpan = 2;
    columnComposite.getControl().setLayoutData(gridData);
    // Name widgets
    // this.addLabel(container, JptUiDetailsOrmMessages.OrmMappingNameChooser_name);
    new OrmMappingNameText(this, getSubjectHolder(), container);
    // Access type widgets
    // this.addLabel(container, JptUiMessages.AccessTypeComposite_access);
    new AccessTypeComboViewer(this, this.buildAccessHolderHolder(), container);
    return container;
}
Also used : OrmMappingNameText(org.eclipse.jpt.jpa.ui.internal.details.orm.OrmMappingNameText) AccessTypeComboViewer(org.eclipse.jpt.jpa.ui.internal.details.AccessTypeComboViewer) IdMappingMappedByRelationshipPane2_0(org.eclipse.jpt.jpa.ui.internal.jpa2.details.IdMappingMappedByRelationshipPane2_0) GridData(org.eclipse.swt.layout.GridData) HibernateColumnComposite(org.jboss.tools.hibernate.jpt.ui.internal.mapping.details.HibernateColumnComposite)

Aggregations

AccessTypeComboViewer (org.eclipse.jpt.jpa.ui.internal.details.AccessTypeComboViewer)1 OrmMappingNameText (org.eclipse.jpt.jpa.ui.internal.details.orm.OrmMappingNameText)1 IdMappingMappedByRelationshipPane2_0 (org.eclipse.jpt.jpa.ui.internal.jpa2.details.IdMappingMappedByRelationshipPane2_0)1 GridData (org.eclipse.swt.layout.GridData)1 HibernateColumnComposite (org.jboss.tools.hibernate.jpt.ui.internal.mapping.details.HibernateColumnComposite)1