Dali Provisional API
Release 3.2

org.eclipse.jpt.jpa.core
Interface JpaFile.Reference

Enclosing interface:
JpaFile

public static interface JpaFile.Reference

Standard adapter for retrieving a JPA file:

 IProject project = ResourcesPlugin.getWorkspace().getRoot().getProject("Foo Project");
 IFile file = project.getFile("Foo.java");
 JpaFile.Reference jpaFileRef = (JpaFile.Reference) file.getAdapter(JpaFile.Reference.class);
 JpaFile jpaFile = jpaFileRef.getValue();
 
See org.eclipse.jpt.jpa.core/plugin.xml:org.eclipse.core.runtime.adapters.

See Also:
FileAdapterFactory

Method Summary
 JpaFile getValue()
          Return the JPA file corresponding to the reference's Eclipse file, or null if unable to associate the specified file with a JPA file.
 

Method Detail

getValue

JpaFile getValue()
                 throws InterruptedException
Return the JPA file corresponding to the reference's Eclipse file, or null if unable to associate the specified file with a JPA file. This method can be long-running.

Throws:
InterruptedException

Dali Provisional API
Release 3.2

Copyright (c) 2012 Oracle. All rights reserved.