Skip to content

Commit

Permalink
- FIX: Fixed issue with main .jar file not being found on Linux due t…
Browse files Browse the repository at this point in the history
…o case-sensitivity of the OS.
  • Loading branch information
sebastian-raubach committed Dec 1, 2018
1 parent 4e75067 commit fc5dd3f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
~ limitations under the License.
-->

<project name="Lit" basedir="." default="clean-build">
<project name="lit" basedir="." default="clean-build">

<property name="src.dir" value="src"/>

Expand Down
6 changes: 5 additions & 1 deletion src/uk/ac/raubach/lit/ui/TableComponent.java
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,13 @@ public String getText(Object element)
@Override
public Image getImage(Object element)
{
File file = new File(((Config.Program) element).getPath());

// First, try to get the icon from the file system
Icon icon = FileSystemView.getFileSystemView()
.getSystemIcon(new File(((Config.Program) element).getPath()));
.getSystemIcon(file);

// If there is an icon, use it
if (icon != null)
{
ImageData data = IconToImage.convertToSWT(icon);
Expand Down

0 comments on commit fc5dd3f

Please sign in to comment.