Work item editor customization (hyperlinks / new tab page)
2 answers
Remy Chi Jian Suen wrote:
com.ibm.team.workitem.ide.ui.textLinkDetectors you contribute a pattern
that
is used to detect textual links in Jazz rich text e.g. in the Work Item and
Plan editor and also in any Text Editor."
All you have to do is thus extend the class TextLinkDetector and
register it to the extension point named above. If your detector throws
an exception it will be deactivated. It is your responsibility that your
detector does not run forever (try to use a fast-running pattern). A
simple example is MailLinkDetector.
Marcel
Is it possible to contribute a new hyperlink detector to the work item
editor? If yes, how?
The 0.6M1 New and Noteworthy states: "With the new extension point
com.ibm.team.workitem.ide.ui.textLinkDetectors you contribute a pattern
that
is used to detect textual links in Jazz rich text e.g. in the Work Item and
Plan editor and also in any Text Editor."
All you have to do is thus extend the class TextLinkDetector and
register it to the extension point named above. If your detector throws
an exception it will be deactivated. It is your responsibility that your
detector does not run forever (try to use a fast-running pattern). A
simple example is MailLinkDetector.
Marcel
Is it possible to add a new page to the work item editor? If yes, how?
Thank you.
Rem
Marcel Bihr wrote:
Thanks for the hint, Marcel. I will give this a go.
For adding a new page, I extended the internal
DefaultEditorLayoutFactory class and then appended a new page in the
returned List<IEditorPart> after hooking up onto the
com.ibm.team.workitem.ide.ui.editorLayouts extension point for my custom
work item.
Regards,
Rem
Remy Chi Jian Suen wrote:
Is it possible to contribute a new hyperlink detector to the work item
editor? If yes, how?
The 0.6M1 New and Noteworthy states: "With the new extension point
com.ibm.team.workitem.ide.ui.textLinkDetectors you contribute a pattern
that
is used to detect textual links in Jazz rich text e.g. in the Work Item and
Plan editor and also in any Text Editor."
All you have to do is thus extend the class TextLinkDetector and
register it to the extension point named above. If your detector throws
an exception it will be deactivated. It is your responsibility that your
detector does not run forever (try to use a fast-running pattern). A
simple example is MailLinkDetector.
Thanks for the hint, Marcel. I will give this a go.
For adding a new page, I extended the internal
DefaultEditorLayoutFactory class and then appended a new page in the
returned List<IEditorPart> after hooking up onto the
com.ibm.team.workitem.ide.ui.editorLayouts extension point for my custom
work item.
Regards,
Rem