org.eclipse.jpt.jpa.ui
Interface JpaPlatformUi


public interface JpaPlatformUi

This interface is to be implemented by a JPA vendor to provide extensions to JPA UI functionality. This is intended to work in conjunction with a core JPA platform (JpaPlatform) implementation with the same ID.

Any implementation should be stateless in nature.

The "generic" extension supplies UI for the core platform extension with the same ID. See the extension point: org.eclipse.jpt.jpa.ui.jpaPlatform Provisional API: This interface is part of an interim API that is still under development and expected to change significantly before reaching stability. It is available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.


Method Summary
 java.util.Iterator<MappingUiDefinition<ReadOnlyPersistentAttribute,? extends AttributeMapping>> attributeMappingUiDefinitions(JptResourceType resourceType)
           
 JpaComposite buildAttributeMappingComposite(JptResourceType resourceType, java.lang.String mappingKey, org.eclipse.swt.widgets.Composite parent, PropertyValueModel<AttributeMapping> mappingHolder, WidgetFactory widgetFactory)
           
 JpaDetailsPage<? extends JpaStructureNode> buildJpaDetailsPage(org.eclipse.swt.widgets.Composite parent, JpaStructureNode structureNode, WidgetFactory widgetFactory)
           
 JpaComposite buildTypeMappingComposite(JptResourceType resourceType, java.lang.String mappingKey, org.eclipse.swt.widgets.Composite parent, PropertyValueModel<TypeMapping> mappingHolder, WidgetFactory widgetFactory)
           
 void generateDDL(JpaProject project, org.eclipse.jface.viewers.IStructuredSelection selection)
           
 void generateEntities(JpaProject project, org.eclipse.jface.viewers.IStructuredSelection selection)
           
 DefaultMappingUiDefinition<ReadOnlyPersistentAttribute,? extends AttributeMapping> getDefaultAttributeMappingUiDefinition(JptResourceType resourceType, java.lang.String mappingKey)
           
 DefaultMappingUiDefinition<PersistentType,? extends TypeMapping> getDefaultTypeMappingUiDefinition(JptResourceType resourceType)
           
 JpaNavigatorProvider getNavigatorProvider()
          Return the JpaNavigatorProvider for this platform, which determines Project Explorer content and look
 ResourceUiDefinition getResourceUiDefinition(JptResourceType resourceType)
          Return a resource ui definition for the specified resource type.
 JpaStructureProvider getStructureProvider(JpaFile jpaFile)
          Return a structure provider for the specified JPA file.
 java.util.Iterator<MappingUiDefinition<PersistentType,? extends TypeMapping>> typeMappingUiDefinitions(JptResourceType resourceType)
           
 

Method Detail

getNavigatorProvider

JpaNavigatorProvider getNavigatorProvider()
Return the JpaNavigatorProvider for this platform, which determines Project Explorer content and look


getStructureProvider

JpaStructureProvider getStructureProvider(JpaFile jpaFile)
Return a structure provider for the specified JPA file.


buildJpaDetailsPage

JpaDetailsPage<? extends JpaStructureNode> buildJpaDetailsPage(org.eclipse.swt.widgets.Composite parent,
                                                               JpaStructureNode structureNode,
                                                               WidgetFactory widgetFactory)

getResourceUiDefinition

ResourceUiDefinition getResourceUiDefinition(JptResourceType resourceType)
Return a resource ui definition for the specified resource type.


buildTypeMappingComposite

JpaComposite buildTypeMappingComposite(JptResourceType resourceType,
                                       java.lang.String mappingKey,
                                       org.eclipse.swt.widgets.Composite parent,
                                       PropertyValueModel<TypeMapping> mappingHolder,
                                       WidgetFactory widgetFactory)

getDefaultTypeMappingUiDefinition

DefaultMappingUiDefinition<PersistentType,? extends TypeMapping> getDefaultTypeMappingUiDefinition(JptResourceType resourceType)

typeMappingUiDefinitions

java.util.Iterator<MappingUiDefinition<PersistentType,? extends TypeMapping>> typeMappingUiDefinitions(JptResourceType resourceType)

buildAttributeMappingComposite

JpaComposite buildAttributeMappingComposite(JptResourceType resourceType,
                                            java.lang.String mappingKey,
                                            org.eclipse.swt.widgets.Composite parent,
                                            PropertyValueModel<AttributeMapping> mappingHolder,
                                            WidgetFactory widgetFactory)

getDefaultAttributeMappingUiDefinition

DefaultMappingUiDefinition<ReadOnlyPersistentAttribute,? extends AttributeMapping> getDefaultAttributeMappingUiDefinition(JptResourceType resourceType,
                                                                                                                          java.lang.String mappingKey)

attributeMappingUiDefinitions

java.util.Iterator<MappingUiDefinition<ReadOnlyPersistentAttribute,? extends AttributeMapping>> attributeMappingUiDefinitions(JptResourceType resourceType)

generateEntities

void generateEntities(JpaProject project,
                      org.eclipse.jface.viewers.IStructuredSelection selection)

generateDDL

void generateDDL(JpaProject project,
                 org.eclipse.jface.viewers.IStructuredSelection selection)