org.eclipse.stp.core.infrastructure.emf
Interface IEMFWorkbenchContext


public interface IEMFWorkbenchContext

The IEMFWorkbenchContext is the foundation of the EMF Resource Management Framework. The context will listen for events from any Resource Set that it is connected to (IResourceAssistant.getManagedResourceSets()). These events are then funnelled into the IEditModels that are managed by the IEMFWorkbenchContext.

Even though the IEMFWorkbenchContext is the manager of all IEditModels for a given project, clients should rely on IEditModelFactory to acquire IEditModels.

The IEMFWorkbenchContext exposes opportunities to integrate extra logic into the EMF infrastructure. In general, these methods should not be required, but for integrating with other EMF frameworks, they are sometimes necessary.

Clients should NEVER resort to casting this interface to its underlying implementation to access methods exposed on the internal implementation. Instead, clients should request that methods be exposed as API and demonstrate the need for exposing the requested methods.


Method Summary
 void installResourceAssistant(IResourceAssistant anAssistant)
          The IResourceAssistant will be consulted whenever a resource is requested.
 void uninstallResourceHandler(IResourceAssistant anAssistant)
           
 

Method Detail

installResourceAssistant

void installResourceAssistant(IResourceAssistant anAssistant)
The IResourceAssistant will be consulted whenever a resource is requested. The IResourceAssistent should be conservative when deciding which resources it would like to load (in place of the resource that would be loaded in the ProjectResourceSet used by the IEMFWorkbenchContext). org.eclipse.jem.util.emfworkbench plugin

Parameters:
anAssistant -

uninstallResourceHandler

void uninstallResourceHandler(IResourceAssistant anAssistant)