org.eclipse.jpt.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.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<AttributeMappingUiProvider<? extends AttributeMapping>> attributeMappingUiProviders(org.eclipse.core.runtime.content.IContentType contentType)
          Return an iterator of mapping ui providers appropriate for the given persistent attribute
 JpaDetailsPage<? extends JpaStructureNode> buildJpaDetailsPage(org.eclipse.swt.widgets.Composite parent, JpaStructureNode structureNode, WidgetFactory widgetFactory)
           
 java.util.Iterator<DefaultAttributeMappingUiProvider<? extends AttributeMapping>> defaultAttributeMappingUiProviders(org.eclipse.core.runtime.content.IContentType contentType)
           
 void generateDDL(JpaProject project, org.eclipse.jface.viewers.IStructuredSelection selection)
           
 void generateEntities(JpaProject project, org.eclipse.jface.viewers.IStructuredSelection selection)
           
 AttributeMappingUiProvider<? extends AttributeMapping> getAttributeMappingUiProvider(java.lang.String key, org.eclipse.core.runtime.content.IContentType contentType)
          Return an attribute mapping ui provider for the given content type
 DefaultAttributeMappingUiProvider<? extends AttributeMapping> getDefaultAttributeMappingUiProvider(java.lang.String key, org.eclipse.core.runtime.content.IContentType contentType)
          Return a default attribute mapping ui provider for the given content type or null
 DefaultTypeMappingUiProvider<? extends TypeMapping> getDefaultTypeMappingUiProvider(org.eclipse.core.runtime.content.IContentType contentType)
          Return a default type mapping ui provider for the given content type or null
 JpaUiFactory getJpaUiFactory()
           
 JpaNavigatorProvider getNavigatorProvider()
          Return the JpaNavigatorProvider for this platform, which determines Project Explorer content and look
 JpaStructureProvider getStructureProvider(JpaFile jpaFile)
          Return a structure provider for the specified JPA file.
 TypeMappingUiProvider<? extends TypeMapping> getTypeMappingUiProvider(java.lang.String key, org.eclipse.core.runtime.content.IContentType contentType)
          Return an type mapping ui provider for the given content type
 java.util.Iterator<TypeMappingUiProvider<? extends TypeMapping>> typeMappingUiProviders(org.eclipse.core.runtime.content.IContentType contentType)
          Return an iterator of type mapping ui providers appropriate for the given content type
 

Method Detail

getJpaUiFactory

JpaUiFactory getJpaUiFactory()

buildJpaDetailsPage

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

typeMappingUiProviders

java.util.Iterator<TypeMappingUiProvider<? extends TypeMapping>> typeMappingUiProviders(org.eclipse.core.runtime.content.IContentType contentType)
Return an iterator of type mapping ui providers appropriate for the given content type


getDefaultTypeMappingUiProvider

DefaultTypeMappingUiProvider<? extends TypeMapping> getDefaultTypeMappingUiProvider(org.eclipse.core.runtime.content.IContentType contentType)
Return a default type mapping ui provider for the given content type or null


getTypeMappingUiProvider

TypeMappingUiProvider<? extends TypeMapping> getTypeMappingUiProvider(java.lang.String key,
                                                                      org.eclipse.core.runtime.content.IContentType contentType)
Return an type mapping ui provider for the given content type


attributeMappingUiProviders

java.util.Iterator<AttributeMappingUiProvider<? extends AttributeMapping>> attributeMappingUiProviders(org.eclipse.core.runtime.content.IContentType contentType)
Return an iterator of mapping ui providers appropriate for the given persistent attribute


defaultAttributeMappingUiProviders

java.util.Iterator<DefaultAttributeMappingUiProvider<? extends AttributeMapping>> defaultAttributeMappingUiProviders(org.eclipse.core.runtime.content.IContentType contentType)

getDefaultAttributeMappingUiProvider

DefaultAttributeMappingUiProvider<? extends AttributeMapping> getDefaultAttributeMappingUiProvider(java.lang.String key,
                                                                                                   org.eclipse.core.runtime.content.IContentType contentType)
Return a default attribute mapping ui provider for the given content type or null


getAttributeMappingUiProvider

AttributeMappingUiProvider<? extends AttributeMapping> getAttributeMappingUiProvider(java.lang.String key,
                                                                                     org.eclipse.core.runtime.content.IContentType contentType)
Return an attribute mapping ui provider for the given content type


getStructureProvider

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


getNavigatorProvider

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


generateEntities

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

generateDDL

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