Icons of Outline-view [message #781283] |
Fri, 20 January 2012 17:25  |
Eclipse User |
|
|
|
I have a plugin where I've created a customized Outline-view, with different icons/bmp's voor each type of entry in the Outline.
When I run the plugin when I'm developing it, then the Outline-view is shown with the icons (see attached "Outline with icons.jpg").
However, when I make a Jar of the plugin, and drop it in the dropins-directory of a clean installed Eclipse (Helios), run Eclipse, the icons are not shown (instead a red square appears, see the "Outline with lost icons.jpg" attached). The icon's are included in the bin (when making the Jar)
Does anybody know what I do wrong ?
|
|
|
|
|
|
|
|
Re: Icons of Outline-view [message #783318 is a reply to message #782815] |
Wed, 25 January 2012 08:47   |
Eclipse User |
|
|
|
Hi Dani,
I found what is the cause. When developing a plugin the name of the icon in the sourcecode, in my case "section.gif", and the name of the icon in the icon-folder of the project, in my case "SECTION.gif", are case-insensitive.
When deploying the plugin via a .tar file suddenly it becomes case-sensitive !! ... when I change the sourcecode to "SECTION.gif" it all works, also when deployed.
This might be a "bug" in Eclipse.
So far for this problem. The other one, regarding the Outline-view, is that when I have a an Outline-view with a lot of items ... I scroll to the below part of the Outline-view ... click on the last item of the Outline-view (resulting that the editor goes to the end of my sourcecode) ... I alter something in the sourcecode ... then Outline-view suddenly "jumps" to the top !!
What I'd want is that the Outline of my extension(plugin) works just like the Outline of java. With java the Outline is positioned on the same item as where I am in the sourcecode.
Do you, or anyone, know how to do this ?
Thanks.
Hans
|
|
|
Re: Icons of Outline-view [message #787338 is a reply to message #783318] |
Tue, 31 January 2012 08:21  |
Eclipse User |
|
|
|
On 25.01.2012 14:47, Kitesurfer Mising name wrote:
> Hi Dani,
>
> I found what is the cause. When developing a plugin the name of the
> icon in the sourcecode, in my case "section.gif", and the name of the
> icon in the icon-folder of the project, in my case "SECTION.gif", are
> case-insensitive.
>
> When deploying the plugin via a .tar file suddenly it becomes
> case-sensitive !! ... when I change the sourcecode to "SECTION.gif" it
> all works, also when deployed.
>
> This might be a "bug" in Eclipse.
>
> So far for this problem. The other one, regarding the Outline-view, is
> that when I have a an Outline-view with a lot of items ... I scroll to
> the below part of the Outline-view ... click on the last item of the
> Outline-view (resulting that the editor goes to the end of my
> sourcecode) ... I alter something in the sourcecode ... then
> Outline-view suddenly "jumps" to the top !! What I'd want is that the
> Outline of my extension(plugin) works just like the Outline of java.
> With java the Outline is positioned on the same item as where I am in
> the sourcecode.
> Do you, or anyone, know how to do this ?
I guess you populate the Outline page with new input when the source
changes. If you only add and remove the children then the selection
should stay unless of course you change (e.g. rename) the selected element.
Dani
>
> Thanks.
> Hans
|
|
|
Powered by
FUDForum. Page generated in 0.29374 seconds