It's all about the answers!

Ask a question

Revision Annotation


Hung Lam (2911915) | asked May 21 '08, 4:39 p.m.
JAZZ DEVELOPER
Hello,
If I implement an editor and want to be able to show revision annotations
when the user selects "Annotate" in the context menu, is there any extension
points I need to use? Thanks.

4 answers



permanent link
Michael Valenta (3.7k3) | answered May 22 '08, 9:20 a.m.
FORUM MODERATOR / JAZZ DEVELOPER
I believe the annotate support is hard coded to work with implementors
of ITextEditorExtension4. If your editor (or a page in your multi-page
editor) implements that interface, annotations should work. Most editors
that show annotations are subclasses of AbstractDecoratedTExtEditor.

Mike

Hung wrote:
Hello,
If I implement an editor and want to be able to show revision annotations
when the user selects "Annotate" in the context menu, is there any extension
points I need to use? Thanks.



permanent link
Hung Lam (2911915) | answered May 22 '08, 10:26 p.m.
JAZZ DEVELOPER
Thank you Mike,
Jazz revision annotation seems to work with both ITextEditorExtension4 implementor and AbstractDecoratedTextEditor subclass. However, I saw one difference: If using AbstractDecoratedTextEditor, you can see the "annotate" action in the context-menu of the editor.
Do you know if there are any other differences? Again, thank you.

permanent link
Dmitry Karasik (1.8k11) | answered May 23 '08, 4:01 a.m.
JAZZ DEVELOPER
On Fri, 23 May 2008 02:27:53 +0000, hungvlam wrote:

Thank you Mike,
Jazz revision annotation seems to work with both ITextEditorExtension4
implementor and AbstractDecoratedTextEditor subclass. However, I saw
one difference: If using AbstractDecoratedTextEditor, you can see the
"annotate" action in the context-menu of the editor. Do you know if
there are any other differences? Again, thank you.

Whether or not the "annotate" action shows up in the context-menu of the
editor depends on whether the editor input adapts to IResource I believe.

- Dmitry

permanent link
Hung Lam (2911915) | answered May 30 '08, 10:41 p.m.
JAZZ DEVELOPER
Thank you Dmitry!

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.