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
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)
Copyright (c) 2012 Oracle. All rights reserved.