Any public ILabelProvider ?
6 answers
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
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:
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
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...
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
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:
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
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.
Thank you, that worked.
jlemieux wrote:
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.