use of org.eclipse.jpt.jpa.ui.internal.details.orm.MetadataCompleteTriStateCheckBox in project jbosstools-hibernate by jbosstools.
the class HibernateOrmEntityComposite method initializeEntitySection.
@Override
protected Control initializeEntitySection(Composite container) {
// new OrmJavaClassChooser(this, getSubjectHolder(), container, false);
// new HibernateTableComposite(this, container);
// new EntityNameComposite(this, container);
// new AccessTypeComposite(this, buildAccessHolder(), container);
// new IdClassComposite(this, buildIdClassReferenceHolder(), container);
// new MetadataCompleteComposite(this, getSubjectHolder(), container);
container = this.addSubPane(container, 2, 0, 0, 0, 0);
// Java class widgets
Hyperlink javaClassHyperlink = this.addHyperlink(container, JptJpaUiDetailsOrmMessages.ORM_JAVA_CLASS_CHOOSER_JAVA_CLASS);
new OrmJavaClassChooser(this, buildPersistentTypeReferenceModel(), container, javaClassHyperlink);
// Table widgets
HibernateTableComposite tableComposite = new HibernateTableComposite(this, container);
GridData gridData = new GridData(GridData.FILL_HORIZONTAL);
gridData.horizontalSpan = 2;
tableComposite.getControl().setLayoutData(gridData);
// Entity name widgets
this.addLabel(container, JptJpaUiDetailsMessages.ENTITY_NAME_COMPOSITE_NAME);
new EntityNameCombo(this, container);
// Access type widgets
this.addLabel(container, JptJpaUiMessages.ACCESS_TYPE_COMPOSITE_ACCESS);
new AccessTypeComboViewer(this, buildAccessHolder(), container);
// Id class widgets
Hyperlink hyperlink = this.addHyperlink(container, JptJpaUiDetailsMessages.ID_CLASS_COMPOSITE_LABEL);
new IdClassChooser(this, this.buildIdClassReferenceModel(), container, hyperlink);
// Metadata complete widgets
MetadataCompleteTriStateCheckBox metadataCompleteCheckBox = new MetadataCompleteTriStateCheckBox(this, getSubjectHolder(), container);
gridData = new GridData(GridData.FILL_HORIZONTAL);
gridData.horizontalSpan = 2;
metadataCompleteCheckBox.getControl().setLayoutData(gridData);
return container;
}
use of org.eclipse.jpt.jpa.ui.internal.details.orm.MetadataCompleteTriStateCheckBox in project jbosstools-hibernate by jbosstools.
the class Hibernate2_0OrmEntityComposite method initializeEntitySection.
@Override
protected Control initializeEntitySection(Composite container) {
// new OrmJavaClassChooser(this, getSubjectHolder(), container, false);
// new HibernateTableComposite(this, container);
// new EntityNameComposite(this, container);
// new AccessTypeComposite(this, buildAccessHolder(), container);
// new IdClassComposite(this, buildIdClassReferenceHolder(), container);
// new Cacheable2_0Pane(this, buildCacheableHolder(), container);
// new MetadataCompleteComposite(this, getSubjectHolder(), container);
container = this.addSubPane(container, 2, 0, 0, 0, 0);
// Java class widgets
Hyperlink javaClassHyperlink = this.addHyperlink(container, JptJpaUiDetailsOrmMessages.ORM_JAVA_CLASS_CHOOSER_JAVA_CLASS);
new OrmJavaClassChooser(this, buildPersistentTypeReferenceModel(), container, javaClassHyperlink);
// Table widgets
HibernateTableComposite tableComposite = new HibernateTableComposite(this, container);
GridData gridData = new GridData(GridData.FILL_HORIZONTAL);
gridData.horizontalSpan = 2;
tableComposite.getControl().setLayoutData(gridData);
// Entity name widgets
this.addLabel(container, JptJpaUiDetailsMessages.ENTITY_NAME_COMPOSITE_NAME);
new EntityNameCombo(this, container);
// Access type widgets
this.addLabel(container, JptJpaUiMessages.ACCESS_TYPE_COMPOSITE_ACCESS);
new AccessTypeComboViewer(this, buildAccessHolder(), container);
// Id class widgets
Hyperlink hyperlink = this.addHyperlink(container, JptJpaUiDetailsMessages.ID_CLASS_COMPOSITE_LABEL);
new IdClassChooser(this, buildIdClassReferenceModel(), container, hyperlink);
// Metadata complete widgets
MetadataCompleteTriStateCheckBox metadataCompleteCheckBox = new MetadataCompleteTriStateCheckBox(this, getSubjectHolder(), container);
gridData = new GridData(GridData.FILL_HORIZONTAL);
gridData.horizontalSpan = 2;
metadataCompleteCheckBox.getControl().setLayoutData(gridData);
return container;
}
Aggregations