Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

How to set a new link images

Hi,
I've create a new link type and I'd like to add an image for each EndPoint.
I've put the images into my plugin project and I've set relative path to images into plugin.xml:

<endpoint>

<itemReferenceType>
</endpoint>


On client side, if I put my jar into dropins folder I can see the images. Instead, on server side, I can't see the images and I get these exceptions:
22-Nov-2011 16.52.28 com.ibm.team.links.common.internal.registry.LinkTypeRegistry$Impl createIconURL

FATAL: Invalid icon URL: "icons/DevRil.gif"
java.net.MalformedURLException: no protocol: icons/DevRil.gif
at java.net.URL.<init>(URL.java:602)
at java.net.URL.<init>(URL.java:499)
at java.net.URL.<init>(URL.java:448)
at com.ibm.team.links.common.internal.registry.LinkTypeRegistry$Impl.createIconURL(LinkTypeRegistry.java:443)
at com.ibm.team.links.common.internal.registry.LinkTypeRegistry$Impl.createEndPointDescriptor(LinkTypeRegistry.java:260)
at com.ibm.team.links.common.internal.registry.LinkTypeRegistry$Impl.readElement(LinkTypeRegistry.java:162)
at com.ibm.team.links.common.internal.registry.LinkTypeRegistry$Impl.readRegistry(LinkTypeRegistry.java:139)
at com.ibm.team.links.common.internal.registry.LinkTypeRegistry$Impl.<init>(LinkTypeRegistry.java:103)
at com.ibm.team.links.common.internal.registry.LinkTypeRegistry$Impl.<init>(LinkTypeRegistry.java:102)
at com.ibm.team.links.common.internal.registry.LinkTypeRegistry$SingletonHolder.<clinit>(LinkTypeRegistry.java:43)
at java.lang.J9VMInternals.initializeImpl(Native Method)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:196)
at com.ibm.team.links.common.internal.registry.LinkTypeRegistry.getInstance(LinkTypeRegistry.java:48)
at com.ibm.team.links.common.internal.registry.LinkTypeRegistry.getLinkType(LinkTypeRegistry.java:63)
at com.ibm.team.workitem.common.internal.util.Utils.<clinit>(Utils.java:80)
at java.lang.J9VMInternals.initializeImpl(Native Method)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:196)
at com.ibm.team.workitem.common.internal.util.AuditablesHelper.<clinit>(AuditablesHelper.java:37)
at java.lang.J9VMInternals.initializeImpl(Native Method)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:196)
at com.ibm.team.workitem.common.model.IWorkItem.<clinit>(IWorkItem.java:127)
at java.lang.J9VMInternals.initializeImpl(Native Method)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:196)
at com.ibm.team.workitem.client.internal.WorkItemClient.<clinit>(WorkItemClient.java:339)
at java.lang.J9VMInternals.initializeImpl(Native Method)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:196)
at com.ibm.team.workitem.client.internal.WorkItemClientLibraryFactory.createClientLibrary(WorkItemClientLibraryFactory.java:17)
at com.ibm.team.repository.client.internal.ClientLibraryFactoryRegistry.getClientLibrary(ClientLibraryFactoryRegistry.java:89)
at com.ibm.team.repository.client.internal.TeamRepository.getClientLibrary(TeamRepository.java:460)
at it.nexen.rtc.plain.utilities.DeployResults.ChangeStates(DeployResults.java:250)
at it.nexen.rtc.plain.utilities.DeployResults.main(DeployResults.java:209)


Does someone know how to set images in order to be seen both on client and server side? Can I add them to process attachment? In this case which path do I have to use in plugin.xml?

Thanks,
Michele.

0 votes



3 answers

Permanent link
Sorry, the endpoint is not visible... i repost-it without tag
endpoint

displayName="ChangeSetDeliveratiInCo"
icon="icons/DevCo.gif"
id="CSDeliveredCo"
multiplicity="0..1">
itemReferenceType
itemTypeName="ChangeSet"
packageURI="com.ibm.team.scm"
/itemReferenceType
/endpoint

0 votes


Permanent link
I may be wrong but I think the icon has to be *.ico format

0 votes


Permanent link
I don't think this is a problem since I correctly see the images on client. I've this error only on server side

0 votes

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,938

Question asked: Nov 22 '11, 11:03 a.m.

Question was seen: 6,390 times

Last updated: Nov 22 '11, 11:03 a.m.

Confirmation Cancel Confirm