Changeset 4386


Ignore:
Timestamp:
2003-05-28T12:37:08+12:00 (21 years ago)
Author:
jmt12
Message:

It turns out FileSystemView.getSystemIcon() crashes some platforms, so I'll remove it. At some stage we could reimplement getIcon() to load an appropriate icon from a static cache of icons we hardcode.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/file/FileNode.java

    r4385 r4386  
    33import java.io.File;
    44import java.util.*;
     5import javax.swing.*;
    56import javax.swing.filechooser.*;
    67import javax.swing.tree.*;
     
    159160    /** Retrieve the icon the system thinks should be assigned to this node. If this node has no file then the icon will be null. */
    160161    public ImageIcon getIcon() {
    161     ImageIcon icon = null; // Default icon according to tree...
    162     if(file != null) {
    163         Icon raw_icon = FileSystemView.getFileSystemView().getSystemIcon(file);
    164         icon = new ImageIcon(raw_icon);
    165     }
    166     return icon;
     162    return null;
    167163    }
    168164
Note: See TracChangeset for help on using the changeset viewer.