It's all about the answers!

Ask a question

Any public ILabelProvider ?


Srimanth Gunturi (206125) | asked Jan 23 '08, 11:18 a.m.
JAZZ DEVELOPER
Hello,
I was wondering if there is any single public ILabelProvider that can be
used to text/image RTC objects? Basically I would like to show the
icon/text for an IWorkspaceConnection.
Regards,
Sri.

6 answers



permanent link
Srimanth Gunturi (206125) | answered Jan 24 '08, 5:48 p.m.
JAZZ DEVELOPER
Thank you, that worked.


jlemieux wrote:
We currently wrap our UI elements so that our labels can be shown
without additional server round-trips. If you have a
IWorkspaceConnection in hand, use the helpers on AbstractPlaceWrapper
and put those in the view with the StandardLabelProvider pattern shown
above and the labels/text should appear.

permanent link
Jean-Michel Lemieux (2.5k11) | answered Jan 24 '08, 1:17 p.m.
JAZZ DEVELOPER
We currently wrap our UI elements so that our labels can be shown without additional server round-trips. If you have a IWorkspaceConnection in hand, use the helpers on AbstractPlaceWrapper and put those in the view with the StandardLabelProvider pattern shown above and the labels/text should appear.

permanent link
Srimanth Gunturi (206125) | answered Jan 24 '08, 12:38 a.m.
JAZZ DEVELOPER
Hi Darin,
The sample label providers I mentioned dont give either images or text.
Im guessing the StandardLabelProvider gets loaded when the views
activate? and since our perspective never does anything to initialize
it, we get empty images/text. Is there any internal code we can trigger
to force a load for Beta2?
The last resort would be to directly access the workspace connection
icons for streams/workspaces.
Regards,
Srimanth.


Darin Swanson wrote:
Srimanth,

There may not be a label provider registered to render the
IWorkspaceConnection.
My very quick search of the code base did not find such a label provider.

Your "sample" code should have provided you with an image / text for the
connection.
I would suggest you file an enhancement against Source Control for this
support.

HTH
Darins
Jazz Process Team

"Srimanth Gunturi" <sgunturi@us.ibm.com> wrote in message
news:fn8hc8$91v$1@localhost.localdomain...
Hi Patrick,
Ive tried new StandardLabelProvider(new ElementRemovedNotifierImpl()))
which does not work - is there some initialization/registration that I
need to invoke before using this label provider?
new StandardLabelProvider(new ProcessLabelProvider(), new
ElementRemovedNotifierImpl()) did not help either.
Regards,
Srimanth.


Patrick Streule wrote:
I was wondering if there is any single public ILabelProvider that can be
used to text/image RTC objects? Basically I would like to show the
icon/text for an IWorkspaceConnection.
You can try to use
com.ibm.team.jface.labelProviders.StandardLabelProvider.

Components register their specific item label providers with it, so it
can be used to get the text/icon for many different item types.

HTH,
Patrick,
Jazz Work Item team


permanent link
Darin Swanson (3161) | answered Jan 23 '08, 6:38 p.m.
Srimanth,

There may not be a label provider registered to render the
IWorkspaceConnection.
My very quick search of the code base did not find such a label provider.

Your "sample" code should have provided you with an image / text for the
connection.
I would suggest you file an enhancement against Source Control for this
support.

HTH
Darins
Jazz Process Team

"Srimanth Gunturi" <sgunturi@us.ibm.com> wrote in message
news:fn8hc8$91v$1@localhost.localdomain...
Hi Patrick,
Ive tried new StandardLabelProvider(new ElementRemovedNotifierImpl()))
which does not work - is there some initialization/registration that I
need to invoke before using this label provider?
new StandardLabelProvider(new ProcessLabelProvider(), new
ElementRemovedNotifierImpl()) did not help either.
Regards,
Srimanth.


Patrick Streule wrote:
I was wondering if there is any single public ILabelProvider that can be
used to text/image RTC objects? Basically I would like to show the
icon/text for an IWorkspaceConnection.

You can try to use
com.ibm.team.jface.labelProviders.StandardLabelProvider.

Components register their specific item label providers with it, so it
can be used to get the text/icon for many different item types.

HTH,
Patrick,
Jazz Work Item team

permanent link
Srimanth Gunturi (206125) | answered Jan 23 '08, 6:08 p.m.
JAZZ DEVELOPER
Hi Patrick,
Ive tried new StandardLabelProvider(new ElementRemovedNotifierImpl()))
which does not work - is there some initialization/registration that I
need to invoke before using this label provider?
new StandardLabelProvider(new ProcessLabelProvider(), new
ElementRemovedNotifierImpl()) did not help either.
Regards,
Srimanth.


Patrick Streule wrote:
I was wondering if there is any single public ILabelProvider that can
be used to text/image RTC objects? Basically I would like to show the
icon/text for an IWorkspaceConnection.

You can try to use com.ibm.team.jface.labelProviders.StandardLabelProvider.

Components register their specific item label providers with it, so it
can be used to get the text/icon for many different item types.

HTH,
Patrick,
Jazz Work Item team

permanent link
Patrick Streule (4.9k21) | answered Jan 23 '08, 1:18 p.m.
JAZZ DEVELOPER
I was wondering if there is any single public ILabelProvider that can be
used to text/image RTC objects? Basically I would like to show the
icon/text for an IWorkspaceConnection.

You can try to use com.ibm.team.jface.labelProviders.StandardLabelProvider.

Components register their specific item label providers with it, so it
can be used to get the text/icon for many different item types.

HTH,
Patrick,
Jazz Work Item team

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.