Dali Provisional API
Release 3.2

org.eclipse.jpt.common.core
Interface JptResourceModel

All Superinterfaces:
JptResourceTypeReference
All Known Subinterfaces:
JavaResourceCompilationUnit, JavaResourceModel.Root, JavaResourcePackageFragmentRoot, JavaResourcePackageInfoCompilationUnit, JavaResourceTypeCache, JaxbIndexResource, JaxbPropertiesResource
All Known Implementing Classes:
JptXmlResource

public interface JptResourceModel
extends JptResourceTypeReference

Listeners are notified whenever anything in the JPT resource model changes.

Provisional API: This interface is part of an interim API that is still under development and expected to change significantly before reaching stability. It is available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.

Since:
2.2

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.jpt.common.core.JptResourceTypeReference
JptResourceTypeReference.ResourceTypeIsKindOf, JptResourceTypeReference.ResourceTypeTransformer
 
Field Summary
 
Fields inherited from interface org.eclipse.jpt.common.core.JptResourceTypeReference
TRANSFORMER
 
Method Summary
 void addResourceModelListener(JptResourceModelListener listener)
          Changes to the resource model result in events.
 IFile getFile()
          Return the model's file.
 void removeResourceModelListener(JptResourceModelListener listener)
           
 
Methods inherited from interface org.eclipse.jpt.common.core.JptResourceTypeReference
getResourceType
 

Method Detail

getFile

IFile getFile()
Return the model's file.


addResourceModelListener

void addResourceModelListener(JptResourceModelListener listener)
Changes to the resource model result in events. In particular, the JPA project performs an "update" whenever a resource model changes.


removeResourceModelListener

void removeResourceModelListener(JptResourceModelListener listener)
See Also:
addResourceModelListener(JptResourceModelListener)

Dali Provisional API
Release 3.2

Copyright (c) 2012 Oracle. All rights reserved.