It's all about the answers!

Ask a question

How to set a new link images


Michele Pegoraro (1.8k12114101) | asked Nov 22 '11, 11:03 a.m.
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.

3 answers



permanent link
Michele Pegoraro (1.8k12114101) | answered Dec 07 '11, 3:42 a.m.
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

permanent link
Oliver Vinn (261) | answered Dec 12 '11, 8:23 a.m.
I may be wrong but I think the icon has to be *.ico format

permanent link
Michele Pegoraro (1.8k12114101) | answered Dec 13 '11, 3:17 a.m.
I don't think this is a problem since I correctly see the images on client. I've this error only on server side

Your answer


Register or to post your answer.