org.eclipse.jpt.jpa.ui
Interface JpaFileModel
- All Superinterfaces:
- Model, PropertyValueModel<JpaFile>
public interface JpaFileModel
- extends PropertyValueModel<JpaFile>
Standard adapter for retrieving a JPA file model
with change notification when the JPA file is created or destroyed
(or its JPA project is created or destroyed):
IFile file = (IFile) ResourcesPlugin.getWorkspace().getRoot().findMember("Foo.java");
JpaFileModel jpaFileModel = (JpaFileModel) file.getAdapter(JpaFileModel.class);
JpaFile jpaFile = jpaFileModel.getValue();
- See Also:
FileAdapterFactory
|
Method Summary |
IFile |
getFile()
Return the file corresponding to the JPA file model. |
getFile
IFile getFile()
- Return the file corresponding to the JPA file model.
Copyright (c) 2012 Oracle. All rights reserved.