Bug 210018 - [spy] improve saving image functionality
Summary: [spy] improve saving image functionality
Status: RESOLVED WORKSFORME
Alias: None
Product: PDE
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.4   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: PDE-UI-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords: contributed
Depends on:
Blocks:
 
Reported: 2007-11-15 15:39 EST by Chris Aniszczyk CLA
Modified: 2019-09-02 15:06 EDT (History)
4 users (show)

See Also:
baumanbr: review? (caniszczyk)


Attachments
Using Part's ImageDescriptors instead of their Images is enough to the trick :) (3.92 KB, patch)
2007-12-01 09:34 EST, Benjamin Cabé CLA
no flags Details | Diff
patch updated for HEAD (7.36 KB, patch)
2008-01-07 18:15 EST, Benjamin Cabé CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Aniszczyk CLA 2007-11-15 15:39:53 EST
Currently, the spy does image scraping to save images found in editors and views. The use of ImageLoader to save images isn't the right approach here because we lose things like transparency and original name of the image. We should be able to query for the image using the extension registry and get the acutal image we need and copy that to where the user would like to save it.
Comment 1 Benjamin Cabé CLA 2007-12-01 09:34:20 EST
Created attachment 84260 [details]
Using Part's ImageDescriptors instead of their Images is enough to the trick :)

I've fixed that bug retrieving Editor and Views ImageDescriptors respectively through EditorRegistry and ViewRegistry
Comment 2 Benjamin Cabé CLA 2007-12-01 09:35:13 EST
...to *do* the trick
Comment 3 Chris Aniszczyk CLA 2007-12-02 13:47:08 EST
Thanks Benjamin, I'll take a look at this next week. I had some of this bug solved in my workspace but your patch is much smaller and elegant than mine :)

I went directly to the extension registry for information so I can just do a simple image copy from what's in the plug-in.
Comment 4 Benjamin Cabé CLA 2008-01-07 18:15:19 EST
Created attachment 86360 [details]
patch updated for HEAD
Comment 5 Benjamin Cabé CLA 2008-01-07 18:15:40 EST
Please find attached a patch updated for HEAD.
Chris, I'm afraid you forgot to run "organize imports" when you recently switched to new code conventions :-s
Comment 6 Benjamin Cabé CLA 2008-02-05 16:09:57 EST
That would be nice if you could have a look at the patch, chris :-) If you have time enough, of course!..
Comment 7 Benjamin Cabé CLA 2008-03-14 12:30:45 EDT
Chris, I know you're not ignoring me, no problem! Can you please assign me that one, tag it as contributed, and probably target it for M7! :)
Comment 8 Chris Aniszczyk CLA 2008-03-14 13:16:36 EDT
I'm not completely happy with the patch and I will tell you why once I remember.

we should be going to the ext registry and finding the url for the icon and then copying them out... at least that's what my fuzzy memory recalls ;)
Comment 9 Chris Aniszczyk CLA 2008-04-27 15:48:43 EDT
moving to 3.5... I'm not happy with the current solution and removing the functionality for the 3.4 release due to time.

The ideal solution is to actually query the extension registry and copy the file from the registry representing the image.

We will investigate later, the Plug-in Spy is good enough for 3.4 at the moment :)

Thanks for your help Benjamin and sorry for not being able to get this in for 3.4
Comment 10 Chris Aniszczyk CLA 2008-04-27 15:58:27 EDT
oops, messed up the subject ;o
Comment 11 Eclipse Genie CLA 2019-01-31 01:40:09 EST
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.
Comment 12 Lars Vogel CLA 2019-09-02 15:00:14 EDT
This bug has been marked as stalebug a while ago without any further interaction.

If this report is still relevant for the current release, please reopen and remove the stalebug whiteboard flag.
Comment 13 Lars Vogel CLA 2019-09-02 15:06:41 EDT
This bug was marked as stalebug a while ago. Marking as worksforme.

If this report is still relevant for the current release, please reopen and remove the stalebug whiteboard tag.