|
|
|
|
Re: Append to preference [message #1729119 is a reply to message #1729074] |
Mon, 11 April 2016 10:54 |
|
Am 10.04.2016 um 22:43 schrieb kon f:
> Hey Eike,
>
> thank you for the implementation. I investigated the source and it took me while to extract the actual changes since also added some refactorings :) You added a filter for //instance/org.eclipse.ui.workbench/ENABLED_DECORATORS so the value is just added instead replacing the whole value, right?
Right. Note, though, that it never removes values (decorators). In this case this might become a problem, depending on
the implementation in org.eclipse.ui.workbench, which I haven't checked. The reason is that org.eclipse.ui.workbench
maintains two list preferences, one for ENABLED_DECORATORS and one for DISABLED_DECORATORS. I have no clue why that is
needed ;-(
>
> I needed it for the https://github.com/jabiercoding/eclipaint/wiki. Now I can group the feature, the uri and the label decoration in one compound task :)
>
>
> <setupTask
> xsi:type="setup:PreferenceTask"
> key="/instance/org.eclipse.ui.workbench/ENABLED_DECORATORS"
> value="org.eclipaint.manager.decorator.icons.folder:true,org.eclipaint.manager..decorator.icons:true">
> </setupTask>
> <setupTask
> xsi:type="setup.p2:P2Task"
> label="EcliPaint">
> <requirement
> name="org.eclipaint.feature.feature.group"/>
> <repository
> url="https://raw.githubusercontent.com/jabiercoding/eclipaint/master/updatesite/org.eclipaint.site/"/>
> </setupTask>
> <description>Enables the java type decorator e.g. shows an I for interface types</description>
> </setup:CompoundTask>
>
>
> This is how the result looks like (it shows the actual icons instead a default icon):
Very nice!
Cheers
/Eike
----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
Cheers
/Eike
----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
|
|
|
|
Powered by
FUDForum. Page generated in 0.03646 seconds