Skip to main content
summaryrefslogtreecommitdiffstats
blob: 75b5650ad2ea7a8f641b5e74ed0509cf4e4eb0b5 (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
/*******************************************************************************
 * Copyright (c) 2006, 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.core.internal;

import org.eclipse.core.resources.IFile;

/**
 * A JpaProject corresponds to an IProject and containts of JpaFiles.
 * A JpaFile corresponds to a file resource in the project and contains
 * an IJpaRootContentNode.  Specify an IJpaFileContentProvider for each
 * file contentType to be included in the JpaProject.
 * 
 * See IJpaPlatform
 *
 */
public interface IJpaFileContentProvider
{
	/**
	 * Create the IJpaRootContentNode for the given IFile.
	 * This will be set on the corresponding JpaFile in the JpaProject.
	 * The file passed in will have a contentType that matches
	 * the one returned by the contentType() method.
	 */
	IJpaRootContentNode buildRootContent(IFile file);
	
	/**
	 * Return the contentType of the file to be included in the JpaProject.
	 * This contentType should correspond to one specified through the 
	 * org.eclipse.core.runtime.contentTypes extension point.
	 * @return
	 */
	String contentType();
}

Back to the top