|
|
Line 3: |
Line 3: |
| | | |
| '''This will be updated soon, please do not use.''' | | '''This will be updated soon, please do not use.''' |
− |
| |
− | Some of the annotated objects URI can be changed (for example, annotated resource can be moved to another place and it path used for annotation URI will be changed). To solve this problem Annotation Framework supports annotated object refactoring. Refactoring Support class can be registered with the following extension point:
| |
− |
| |
− | <extension
| |
− | point="org.eclipse.tigerstripe.annotation.core.refactoringSupport">
| |
− | <refactoringSupport
| |
− | id="org.eclipse.tigerstripe.annotation.java.refactoring"
| |
− | class="org.eclipse.tigerstripe.annotation.java.ui.refactoring.JavaRefactoringSupport"/>
| |
− | </extension>
| |
− |
| |
− | Clients shall extends org.eclipse.tigerstripe.annotation.core.RefactoringSupport class. From the Annotation Framework side - refactoring is an operation which change one URI to another. With the RefactoringSupport class you need to inform framework about changes in te annotable resources with the following methods:
| |
− | * containerUpdated() -- TODO
| |
− | * refactoringPerformed(Map<URI, URI>) should be called every time when some annotable URIs changed to another URIs and pass changes map.
| |
− |
| |
− | Сomplete example of how refactoring support uses can be found in the org.eclipse.tigerstripe.annotation.java.ui.refactoring plug-in.
| |
| | | |
| [[Category:Tigerstripe_APIs]] | | [[Category:Tigerstripe_APIs]] |
Revision as of 09:46, 2 June 2008
< To: Tigerstripe_APIs
This will be updated soon, please do not use.