Skip to content

Commit fc5dd3f

Browse files
- FIX: Fixed issue with main .jar file not being found on Linux due to case-sensitivity of the OS.
1 parent 4e75067 commit fc5dd3f

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

build.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
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

src/uk/ac/raubach/lit/ui/TableComponent.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)