Search in sources :

Example 1 with AccessTypeComboViewer

use of org.eclipse.jpt.jpa.ui.internal.details.AccessTypeComboViewer 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;
}
Also used : HibernateTableComposite(org.jboss.tools.hibernate.jpt.ui.internal.details.HibernateTableComposite) EntityNameCombo(org.eclipse.jpt.jpa.ui.internal.details.EntityNameCombo) AccessTypeComboViewer(org.eclipse.jpt.jpa.ui.internal.details.AccessTypeComboViewer) OrmJavaClassChooser(org.eclipse.jpt.jpa.ui.internal.details.orm.OrmJavaClassChooser) IdClassChooser(org.eclipse.jpt.jpa.ui.internal.details.IdClassChooser) GridData(org.eclipse.swt.layout.GridData) Hyperlink(org.eclipse.ui.forms.widgets.Hyperlink) MetadataCompleteTriStateCheckBox(org.eclipse.jpt.jpa.ui.internal.details.orm.MetadataCompleteTriStateCheckBox)

Example 2 with AccessTypeComboViewer

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

the class HibernateJavaEntity2_0Composite method initializeEntitySection.

protected Control initializeEntitySection(Composite container) {
    // new HibernateTableComposite(this, container);
    // new EntityNameComposite(this, container);
    // new AccessTypeComposite(this, buildAccessHolder(), container);
    // new IdClassComposite(this, buildIdClassReferenceHolder(), container);
    // new Cacheable2_0Pane(this, buildCacheableHolder(), container);
    container = this.addSubPane(container, 2, 0, 0, 0, 0);
    // Java class widgets
    // Hyperlink javaClassHyperlink = this.addHyperlink(container, JptUiDetailsOrmMessages.OrmJavaClassChooser_javaClass);
    // new OrmJavaClassChooser(this, (PropertyValueModel<? extends OrmTypeMapping>) getSubjectHolder(), 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, this.buildAccessHolder(), container);
    // Id class widgets
    Hyperlink hyperlink = this.addHyperlink(container, JptJpaUiDetailsMessages.ID_CLASS_COMPOSITE_LABEL);
    new IdClassChooser(this, this.buildIdClassReferenceModel(), container, hyperlink);
    // Cacheable widgets
    CacheableTriStateCheckBox2_0 cacheableCheckBox = new CacheableTriStateCheckBox2_0(this, buildCacheableHolder(), container);
    gridData = new GridData(GridData.FILL_HORIZONTAL);
    gridData.horizontalSpan = 2;
    cacheableCheckBox.getControl().setLayoutData(gridData);
    return container;
}
Also used : HibernateTableComposite(org.jboss.tools.hibernate.jpt.ui.internal.details.HibernateTableComposite) EntityNameCombo(org.eclipse.jpt.jpa.ui.internal.details.EntityNameCombo) AccessTypeComboViewer(org.eclipse.jpt.jpa.ui.internal.details.AccessTypeComboViewer) IdClassChooser(org.eclipse.jpt.jpa.ui.internal.details.IdClassChooser) GridData(org.eclipse.swt.layout.GridData) CacheableTriStateCheckBox2_0(org.eclipse.jpt.jpa.ui.internal.jpa2.details.CacheableTriStateCheckBox2_0) Hyperlink(org.eclipse.ui.forms.widgets.Hyperlink)

Example 3 with AccessTypeComboViewer

use of org.eclipse.jpt.jpa.ui.internal.details.AccessTypeComboViewer 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;
}
Also used : HibernateTableComposite(org.jboss.tools.hibernate.jpt.ui.internal.details.HibernateTableComposite) EntityNameCombo(org.eclipse.jpt.jpa.ui.internal.details.EntityNameCombo) AccessTypeComboViewer(org.eclipse.jpt.jpa.ui.internal.details.AccessTypeComboViewer) OrmJavaClassChooser(org.eclipse.jpt.jpa.ui.internal.details.orm.OrmJavaClassChooser) IdClassChooser(org.eclipse.jpt.jpa.ui.internal.details.IdClassChooser) GridData(org.eclipse.swt.layout.GridData) Hyperlink(org.eclipse.ui.forms.widgets.Hyperlink) MetadataCompleteTriStateCheckBox(org.eclipse.jpt.jpa.ui.internal.details.orm.MetadataCompleteTriStateCheckBox)

Example 4 with AccessTypeComboViewer

use of org.eclipse.jpt.jpa.ui.internal.details.AccessTypeComboViewer 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)4 GridData (org.eclipse.swt.layout.GridData)4 EntityNameCombo (org.eclipse.jpt.jpa.ui.internal.details.EntityNameCombo)3 IdClassChooser (org.eclipse.jpt.jpa.ui.internal.details.IdClassChooser)3 Hyperlink (org.eclipse.ui.forms.widgets.Hyperlink)3 HibernateTableComposite (org.jboss.tools.hibernate.jpt.ui.internal.details.HibernateTableComposite)3 MetadataCompleteTriStateCheckBox (org.eclipse.jpt.jpa.ui.internal.details.orm.MetadataCompleteTriStateCheckBox)2 OrmJavaClassChooser (org.eclipse.jpt.jpa.ui.internal.details.orm.OrmJavaClassChooser)2 OrmMappingNameText (org.eclipse.jpt.jpa.ui.internal.details.orm.OrmMappingNameText)1 CacheableTriStateCheckBox2_0 (org.eclipse.jpt.jpa.ui.internal.jpa2.details.CacheableTriStateCheckBox2_0)1 IdMappingMappedByRelationshipPane2_0 (org.eclipse.jpt.jpa.ui.internal.jpa2.details.IdMappingMappedByRelationshipPane2_0)1 HibernateColumnComposite (org.jboss.tools.hibernate.jpt.ui.internal.mapping.details.HibernateColumnComposite)1