Changeset 10325


Ignore:
Timestamp:
2005-07-27T11:57:08+12:00 (19 years ago)
Author:
mdewsnip
Message:

Opening files in an external program is now done through FileManager.openFileInExternalApplication().

Location:
trunk/gli/src/org/greenstone/gatherer
Files:
4 edited

Legend:

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

    r10265 r10325  
    139139    {
    140140    return file_queue;
     141    }
     142
     143
     144    public void openFileInExternalApplication(File file)
     145    {
     146    Gatherer.self.spawnApplication(file);
    141147    }
    142148
  • trunk/gli/src/org/greenstone/gatherer/file/FileOpenActionListener.java

    r8243 r10325  
    7373            ///ystem.err.println("Double clicked on " + record);
    7474            File file = record.getFile();
    75             if(file != null && file.isFile()) {
     75            if (file != null && file.isFile()) {
    7676            ///ystem.err.println("Running " + file);
    77             Gatherer.self.spawnApplication(file);
     77            Gatherer.f_man.openFileInExternalApplication(file);
    7878            }
    7979        }
  • trunk/gli/src/org/greenstone/gatherer/gui/EnrichPane.java

    r9856 r10325  
    616616        // Open in external program
    617617        else if (source == open_externally) {
    618         Gatherer.self.spawnApplication(node.getFile());
     618        Gatherer.f_man.openFileInExternalApplication(node.getFile());
    619619        }
    620620    }
  • trunk/gli/src/org/greenstone/gatherer/gui/GatherPane.java

    r10011 r10325  
    719719        // Open in external program
    720720        else if (source == open_externally) {
    721         Gatherer.self.spawnApplication(node.getFile());
     721        Gatherer.f_man.openFileInExternalApplication(node.getFile());
    722722        }
    723723    }
     
    755755        if(path != null) {
    756756            File file = ((FileNode)path.getLastPathComponent()).getFile();
    757             if(file != null && file.isFile()) {
    758             Gatherer.self.spawnApplication(file);
     757            if (file != null && file.isFile()) {
     758            Gatherer.f_man.openFileInExternalApplication(file);
    759759            }
    760760            else {
Note: See TracChangeset for help on using the changeset viewer.