File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 1414 ~ limitations under the License.
1515 -->
1616
17- <project name =" Lit " basedir =" ." default =" clean-build" >
17+ <project name =" lit " basedir =" ." default =" clean-build" >
1818
1919 <property name =" src.dir" value =" src" />
2020
Original file line number Diff line number Diff line change @@ -126,9 +126,13 @@ public String getText(Object element)
126126 @ Override
127127 public Image getImage (Object element )
128128 {
129+ File file = new File (((Config .Program ) element ).getPath ());
130+
131+ // First, try to get the icon from the file system
129132 Icon icon = FileSystemView .getFileSystemView ()
130- .getSystemIcon (new File ((( Config . Program ) element ). getPath ()) );
133+ .getSystemIcon (file );
131134
135+ // If there is an icon, use it
132136 if (icon != null )
133137 {
134138 ImageData data = IconToImage .convertToSWT (icon );
You can’t perform that action at this time.
0 commit comments