Bug 23099 - [Navigator] image files
Summary: [Navigator] image files
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.0   Edit
Hardware: All All
: P4 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Francis Upton IV CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-09-03 05:42 EDT by Xavier Méhaut CLA
Modified: 2015-04-21 09:06 EDT (History)
1 user (show)

See Also:


Attachments
Images as icons in navigator (5.35 KB, application/zip)
2015-04-21 09:05 EDT, Pierre Gaufillet CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Xavier Méhaut CLA 2002-09-03 05:42:31 EDT
Hello,
I would suggest to show the image in the the file directory in eclipse when a 
file is an image(gif, jpeg, ...) file ...for instance icons. It is very useful 
to know which icon we choose.
regards
Xavier
Comment 1 Knut Radloff CLA 2002-09-03 12:32:31 EDT
Do you mean instead of showing the icon that indicates the default editor show 
a thumbnail of the actual image file?
I'm not sure that this would be very useful given that the thumbnail would be 
16x16 pixels small. Do you have an example of other apps doing this?
We could do something like check if an image file is 16x16 or smaller and 
display it without scaling in that case.
Comment 2 Xavier Méhaut CLA 2002-09-04 01:44:41 EDT
Yes , it was what I had in mind. A concrete example is in the PDE editor when 
we have to choose an icon for instance an action, or a view.... A dialog box 
propose to navigate in a folder hierarchy to find the icons. When we are in the 
good folder (icons for instance), we only have the icon list (in gif usually), 
but you don't know if it is the right icon you choose, because you can't see 
it. You have to open externally the icon to be able to choose it. So my 
proposal was to be able to see directly the icon in the folder instead of the 
generic iamge icon which is proposed...
regards
Xavier
Comment 3 Knut Radloff CLA 2002-09-04 13:51:50 EDT
You would like to see this in other views, too, correct? E.g., not just in the 
PDE editor/icon selection dialog but also in views like the navigator and 
packages view.
Comment 4 Xavier Méhaut CLA 2002-09-05 02:14:27 EDT
Yes indeed... if possible...
Comment 5 Knut Radloff CLA 2003-02-07 10:32:33 EST
Not for 2.1. We also need to decide if this is a good idea in general in terms 
of usability/avoiding UI clutter. Implementing this feature would replace a 
bunch of uniform icons with different ones.
Comment 6 Knut Radloff CLA 2003-04-07 11:28:06 EDT
Reopen to investigate. Note that we can't do anything about the file dialog as 
we are using the platform dialog. Should still consider displaying the actual 
icon in the Navigator if it is 16x16.
Comment 7 Knut Radloff CLA 2003-09-02 17:00:56 EDT
Reassigning to Nick since he is taking ownership of Navigator
Comment 8 Pierre Gaufillet CLA 2015-04-21 09:05:30 EDT
Created attachment 252581 [details]
Images as icons in navigator
Comment 9 Pierre Gaufillet CLA 2015-04-21 09:06:07 EDT
Hi!

This feature would be very useful when for example developing UI or EMF plug-ins. 

You will find attached a mock-up. I would be pleased to provide a new version more compliant with Eclipse platform usages, but the definition of the feature needs to be refined first. Here are some requirements:

* images are (of course) scaled down to 16x16
* a decorator may be added to clearly identify image files
* images are cached with IFile or path as key for optimizing performances
* this feature should be made optional based on a preference mechanism. The question is which kind of preference?

The mock up uses the org.eclipse.ui.navigator.navigatorContent/viewer and register a new LabelProvider, but maybe there are better approaches? 

Your suggestions and remarks are welcome.