Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Howto: Register Refactoring Support
< To: Tigerstripe_APIs
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.