Package org.eclipse.pde.core
Interface IModelProvider
-
@Deprecated public interface IModelProvider
Deprecated.This interface is not implemented within PDE and is scheduled for deletion: https://bugs.eclipse.org/bugs/show_bug.cgi?id=541068Classes that implement this interface are responsible for holding a table of models associated with the underlying objects. They have several responsibilities:- To hold model objects in one place
- To allow requesters to connect to the models or to disconnect from them.
- To notify interested parties when models are added and removed.
- Since:
- 2.0
- Restriction:
- This interface is not intended to be implemented by clients.
- Restriction:
- This interface is not intended to be extended by clients.
- Restriction:
- This interface is scheduled for deletion.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description void
addModelProviderListener(IModelProviderListener listener)
Deprecated.Registers a listener that will be notified about changes in the managed models.IModel
getModel(IFile file)
Deprecated.Returns the model for the provided file resource.void
removeModelProviderListener(IModelProviderListener listener)
Deprecated.Deregisters a listener from notification.
-
-
-
Method Detail
-
addModelProviderListener
void addModelProviderListener(IModelProviderListener listener)
Deprecated.Registers a listener that will be notified about changes in the managed models.- Parameters:
listener
- the listener that will be registered
-
getModel
IModel getModel(IFile file)
Deprecated.Returns the model for the provided file resource.- Parameters:
file
- the file resource we need the model for- Returns:
- the object that represents a structured representation of the file content
-
removeModelProviderListener
void removeModelProviderListener(IModelProviderListener listener)
Deprecated.Deregisters a listener from notification.- Parameters:
listener
- the listener to be deregistered
-
-