Dali Provisional API
Release 3.2

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

Field Summary
 
Fields inherited from interface org.eclipse.jpt.common.utility.model.value.PropertyValueModel
VALUE
 
Method Summary
 IFile getFile()
          Return the file corresponding to the JPA file model.
 
Methods inherited from interface org.eclipse.jpt.common.utility.model.value.PropertyValueModel
getValue
 
Methods inherited from interface org.eclipse.jpt.common.utility.model.Model
addChangeListener, addCollectionChangeListener, addListChangeListener, addPropertyChangeListener, addStateChangeListener, removeChangeListener, removeCollectionChangeListener, removeListChangeListener, removePropertyChangeListener, removeStateChangeListener
 

Method Detail

getFile

IFile getFile()
Return the file corresponding to the JPA file model.


Dali Provisional API
Release 3.2

Copyright (c) 2012 Oracle. All rights reserved.