|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jupe.synchronisation.sourcechanges.java.AbstractHandler
org.jupe.synchronisation.sourcechanges.java.FileHandler
public class FileHandler
This handles is used to react to changes in classes. If called, there can be several changes in a class!
Constructor Summary | |
---|---|
FileHandler(JupeProject jupeProject)
|
Method Summary | |
---|---|
java.util.List<org.eclipse.uml2.uml.Element> |
add(org.eclipse.core.resources.IResource resource)
Calls IChangeHandler.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(org.eclipse.jdt.core.IType type,
boolean forceCreate)
|
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. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FileHandler(JupeProject jupeProject)
Method Detail |
---|
public java.util.List<org.eclipse.uml2.uml.Element> add(java.lang.String absoluteName)
IChangeHandler
add
in interface IChangeHandler
absoluteName
- absolute name of the element
public java.util.List<org.eclipse.uml2.uml.Element> add(org.eclipse.jdt.core.IType type, boolean forceCreate)
public java.util.List<org.eclipse.uml2.uml.Element> add(org.eclipse.core.resources.IResource resource, boolean forceCreate)
IChangeHandler
add
in interface IChangeHandler
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.
IChangeHandler.add(IResource)
.public void remove(org.eclipse.core.resources.IResource resource)
IChangeHandler
remove
in interface IChangeHandler
public void change(org.eclipse.core.resources.IResource resource)
IChangeHandler
#rename()
.
change
in interface IChangeHandler
public void rename(org.eclipse.core.resources.IResource resource, org.eclipse.core.runtime.IPath oldPath)
IChangeHandler
rename
in interface IChangeHandler
public java.util.List<org.eclipse.uml2.uml.Element> add(org.eclipse.core.resources.IResource resource)
IChangeHandler
IChangeHandler.add(IResource, boolean)
with forceCreate set to true.
add
in interface IChangeHandler
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |