Bug 548799 - [Platform] Replace usage of AbstractUIPlugin#imageDescriptorFromPlugin with new API from Bug 520080
Summary: [Platform] Replace usage of AbstractUIPlugin#imageDescriptorFromPlugin with n...
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: IDE (show other bugs)
Version: 4.13   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 4.13 M3   Edit
Assignee: Alexander Fedorov CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 466703 (view as bug list)
Depends on: 551313
Blocks: 549861
  Show dependency tree
 
Reported: 2019-06-30 04:55 EDT by Lars Vogel CLA
Modified: 2020-04-22 05:11 EDT (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lars Vogel CLA 2019-06-30 04:55:19 EDT
Once Bug 520080 is fixed, I suggest we replace the usage of AbstractUI#PluginimageDescriptorFromPlugin with the new API. 

Once this is done, we can deprecated AbstractUI#PluginimageDescriptorFromPlugin.
Comment 1 Eclipse Genie CLA 2019-07-01 04:31:16 EDT
New Gerrit change created: https://git.eclipse.org/r/145203
Comment 3 Alexander Fedorov CLA 2019-07-01 06:46:49 EDT
Bug 548827 has been submitted to track API improvements
Comment 4 Eclipse Genie CLA 2019-07-04 04:03:17 EDT
New Gerrit change created: https://git.eclipse.org/r/145452
Comment 5 Eclipse Genie CLA 2019-07-04 04:10:31 EDT
New Gerrit change created: https://git.eclipse.org/r/145453
Comment 7 Eclipse Genie CLA 2019-07-04 08:47:20 EDT
New Gerrit change created: https://git.eclipse.org/r/145473
Comment 8 Eclipse Genie CLA 2019-07-04 09:24:02 EDT
New Gerrit change created: https://git.eclipse.org/r/145475
Comment 12 Eclipse Genie CLA 2019-07-04 12:46:43 EDT
New Gerrit change created: https://git.eclipse.org/r/145488
Comment 13 Eclipse Genie CLA 2019-07-04 12:50:56 EDT
New Gerrit change created: https://git.eclipse.org/r/145489
Comment 16 Eclipse Genie CLA 2019-07-15 11:34:27 EDT
New Gerrit change created: https://git.eclipse.org/r/146094
Comment 17 Eclipse Genie CLA 2019-07-15 12:20:12 EDT
New Gerrit change created: https://git.eclipse.org/r/146098
Comment 19 Eclipse Genie CLA 2019-07-15 13:36:40 EDT
New Gerrit change created: https://git.eclipse.org/r/146106
Comment 22 Eclipse Genie CLA 2019-07-16 03:23:14 EDT
New Gerrit change created: https://git.eclipse.org/r/146130
Comment 24 Eclipse Genie CLA 2019-07-18 03:36:00 EDT
New Gerrit change created: https://git.eclipse.org/r/146291
Comment 26 Paul Pazderski CLA 2019-07-19 07:35:23 EDT
Another easy to miss user of imageDescriptorFromPlugin is PDE's plugin sample code.
https://git.eclipse.org/c/pde/eclipse.pde.ui.git/tree/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/wizards/plugin/PluginClassCodeGenerator.java#n142
Just noticed that while creating a new plugin.
Comment 27 Alexander Fedorov CLA 2019-07-19 08:49:37 EDT
(In reply to Paul Pazderski from comment #26)
> Another easy to miss user of imageDescriptorFromPlugin is PDE's plugin
> sample code.
> https://git.eclipse.org/c/pde/eclipse.pde.ui.git/tree/ui/org.eclipse.pde.ui/
> src/org/eclipse/pde/internal/ui/wizards/plugin/PluginClassCodeGenerator.
> java#n142
> Just noticed that while creating a new plugin.

Thanks for this finding, Paul!
Do you think it will be better to have separate tickets for PDE and JDT?
Comment 28 Paul Pazderski CLA 2019-07-19 09:12:11 EDT
If I knew, I'd have already made one. On one hand this ticket kind of implies "replace usage in Platform" but on the other hand you are an PDE committer so PDE is kind of informed already and a ticket may be overkill if it's only this template change.

I don't see the relation to JDT. If you mean replace usage of imageDescriptorFromPlugin in JDT I think a separate ticket is appropriate.
Comment 29 Julian Honnen CLA 2019-07-19 10:51:56 EDT
(In reply to Paul Pazderski from comment #28)
> If I knew, I'd have already made one. On one hand this ticket kind of
> implies "replace usage in Platform" but on the other hand you are an PDE
> committer so PDE is kind of informed already and a ticket may be overkill if
> it's only this template change.

Please do create a PDE bug for improving the templates.
Comment 30 Eclipse Genie CLA 2019-07-20 12:12:34 EDT
New Gerrit change created: https://git.eclipse.org/r/146412
Comment 32 Alexander Fedorov CLA 2019-07-20 14:36:28 EDT
(In reply to Julian Honnen from comment #29)
> 
> Please do create a PDE bug for improving the templates.

Bug 549441 - [PDE] Rework usages of AbstractUIPlugin#imageDescriptorFromPlugin
Bug 549442 - [JDT] Rework usages of AbstractUIPlugin#imageDescriptorFromPlugin
Comment 33 Eclipse Genie CLA 2019-07-21 04:18:01 EDT
New Gerrit change created: https://git.eclipse.org/r/146418
Comment 35 Eclipse Genie CLA 2019-07-29 10:31:06 EDT
New Gerrit change created: https://git.eclipse.org/r/146734
Comment 37 Lars Vogel CLA 2020-02-24 13:07:03 EST
*** Bug 466703 has been marked as a duplicate of this bug. ***