#!/bin/bash FILES=/path/to/eclipse/plugins/*jar for f in $FILES do echo "Processing $f file\n:" jar xf $f icons doneAfter running this script an icon folder will be created with all the icons extracted from the plugins directory. I suppose next logical step would be to enhance this script to query Eclipse repository directly.
Collection of notes on common problems and issues I faced while doing day to day programming
Monday, August 10, 2015
Extracting icons from Eclipse directory
I am always in need for icons that I want to use in my own plugins. Unfortunately hunting them down is quite a task that involves finding plugins that contain the icons, opening jar files and extracting the icons. To ease this task I wrote a little script that does this for you
Thursday, January 8, 2015
What to do when getting error "Profile id _SELF_ is not registered." when working with p2 API
This came up while I was writing some code using p2 API to uninstall certain features at launch of my product. No matter what I did I was getting this dreaded message that made little sense to me. Well, it made some sense, but how do I register this _SELF_ profile? Turns out all I needed to do was to check checkbox "Support software installation in the launched application" in Configuration tab of Launch configuration. After this whenever the following code was executed, a Profile(SelfHostingProfile) would get returned.
IProfileRegistry registry = (IProfileRegistry) agent.getService(IProfileRegistry.SERVICE_NAME);This forum post was a big help in resolving this issue. I wish the exception I was getting was more verbose as it seems the only fix for it is to check that checkbox.
IProfile selfProfile = registry.getProfile(IProfileRegistry.SELF);
Subscribe to:
Posts (Atom)