blob: e0a39cebc0f700196db63658e9d3b3d9251c2b1f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
/*******************************************************************************
* Copyright (c) 2007 Oracle. All rights reserved.
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0, which accompanies this distribution
* and is available at http://www.eclipse.org/legal/epl-v10.html.
*
* Contributors:
* Oracle - initial API and implementation
******************************************************************************/
package org.eclipse.jpt.ui.internal;
import java.util.Collection;
import java.util.List;
import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.jpt.core.internal.IJpaProject;
import org.eclipse.jpt.ui.internal.details.IJpaDetailsProvider;
import org.eclipse.jpt.ui.internal.java.details.ITypeMappingUiProvider;
import org.eclipse.jpt.ui.internal.structure.IJpaStructureProvider;
public interface IJpaPlatformUi
{
//TODO make these Collections IterableIterators(?) once Brian checks in
//changes to our utility Iterators to make them Iterable
Collection<IJpaStructureProvider> structureProviders();
Collection<IJpaDetailsProvider> detailsProviders();
/**
* Return the type mapping UI providers for java. This will populate
* the type mapping combo box in order and displaying ITypeMappingUiProvider.label().
* It will also be used to create the appropriate composite given a type mapping.
*/
List<ITypeMappingUiProvider> javaTypeMappingUiProviders();
void generateDDL(IJpaProject project, IStructuredSelection selection);
void generateEntities(IJpaProject project, IStructuredSelection selection);
}
|