org.jupe.synchronisation.sourcechanges
Interface IChangeHandler

All Known Implementing Classes:
AbstractHandler, FileHandler, FolderHandler

public interface IChangeHandler

General interface for the delta resource handlers.

Author:
Michael Pradel, Emanuel Thomas

Method Summary
 java.util.List<org.eclipse.uml2.uml.Element> add(org.eclipse.core.resources.IResource resource)
          Calls add(IResource, boolean) with forceCreate set to true.
 java.util.List<org.eclipse.uml2.uml.Element> add(org.eclipse.core.resources.IResource resource, boolean forceCreate)
          This method is called when a resource is added and propagates the element to the UML Model.
 java.util.List<org.eclipse.uml2.uml.Element> add(java.lang.String absoluteName)
          Propagates a given Element from source to UML level.
 void change(org.eclipse.core.resources.IResource resource)
          When a resource has changed this method is called.
 void remove(org.eclipse.core.resources.IResource resource)
          When a resource is removed this method is called.
 void rename(org.eclipse.core.resources.IResource resource, org.eclipse.core.runtime.IPath oldPath)
          When a resource has been renamed this method is called.
 

Method Detail

add

java.util.List<org.eclipse.uml2.uml.Element> add(org.eclipse.core.resources.IResource resource)
Calls add(IResource, boolean) with forceCreate set to true.

Parameters:
resource -
Returns:
A collection of the UML2 elements that correspond to the resource. Either they have been added to the model in this method, to they've already been in it before. The order of the elements should be in a way that parent elements are before their children.

add

java.util.List<org.eclipse.uml2.uml.Element> add(org.eclipse.core.resources.IResource resource,
                                                 boolean forceCreate)
This method is called when a resource is added and propagates the element to the UML Model.

Parameters:
resource - The resource to add, should be an IFile.
forceCreate - True, if it's sure that this isn't already in the model, false otherwise.
Returns:
A collection of the added UML2 elements. See add(IResource).

add

java.util.List<org.eclipse.uml2.uml.Element> add(java.lang.String absoluteName)
Propagates a given Element from source to UML level. It's presumed that the type exists in the source.

Parameters:
absoluteName - absolute name of the element
Returns:
a list of UML2 elements which habe been altered

remove

void remove(org.eclipse.core.resources.IResource resource)
When a resource is removed this method is called.


change

void change(org.eclipse.core.resources.IResource resource)
When a resource has changed this method is called. Attention: Renaming will call #rename().


rename

void rename(org.eclipse.core.resources.IResource resource,
            org.eclipse.core.runtime.IPath oldPath)
When a resource has been renamed this method is called.