It's all about the answers!

Ask a question

Work item editor customization (hyperlinks / new tab page)


Remy Suen (426224) | asked Jul 12 '07, 9:48 p.m.
Hi,

Is it possible to contribute a new hyperlink detector to the work item
editor? If yes, how?

Is it possible to add a new page to the work item editor? If yes, how?

Thank you.

Rem

2 answers



permanent link
Marcel Bihr, Jazz Work Item team (1.4k) | answered Jul 16 '07, 2:54 a.m.
JAZZ DEVELOPER
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.

Marcel

Is it possible to add a new page to the work item editor? If yes, how?

Thank you.

Rem

permanent link
Remy Suen (426224) | answered Jul 16 '07, 3:45 p.m.
Marcel Bihr wrote:
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

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.