Commit 1ce2520
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 obtaining 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 9b4a047 commit 1ce2520
File tree
3 files changed
+47
-325
lines changed- bundles/org.eclipse.jface/src/org/eclipse/jface/resource
3 files changed
+47
-325
lines changedLines changed: 0 additions & 313 deletions
This file was deleted.
Lines changed: 20 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
| 22 | + | |
21 | 23 | | |
22 | 24 | | |
23 | 25 | | |
| |||
76 | 78 | | |
77 | 79 | | |
78 | 80 | | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
79 | 84 | | |
80 | 85 | | |
81 | 86 | | |
| |||
84 | 89 | | |
85 | 90 | | |
86 | 91 | | |
87 | | - | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
88 | 107 | | |
89 | 108 | | |
90 | 109 | | |
| |||
0 commit comments