Commit 1f8f8eb
committed
Merge FileImageDescriptor into URLImageDescriptor and clean it up
In it's core the FileImageDescriptor queries the given context class for
a resource at the given path and then operates on the returned URL or
directly fetches the resource's stream. By optaining the resource's URL
immediately and using an URLImageDescriptor with it a lot of similar
code and logic from the FileImageDescriptor can be saved.
Additionally apply a few minor code clean-ups and remove a unused
internal method.1 parent 9a586ab commit 1f8f8eb
File tree
3 files changed
+75
-406
lines changed- bundles/org.eclipse.jface/src/org/eclipse/jface/resource
3 files changed
+75
-406
lines changedLines changed: 0 additions & 313 deletions
This file was deleted.
Lines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
79 | 82 | | |
80 | 83 | | |
81 | 84 | | |
| |||
84 | 87 | | |
85 | 88 | | |
86 | 89 | | |
87 | | - | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
88 | 95 | | |
89 | 96 | | |
90 | 97 | | |
| |||
0 commit comments