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:
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:
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.
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
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