Cyberduck Mountain Duck CLI

Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/osx/src/main/java/ch/cyberduck/ui/cocoa/quicklook/QuartzQuickLook.java

    r39424 r40957  
    2323import ch.cyberduck.core.Local;
    2424
     25import org.apache.log4j.Logger;
    2526import org.rococoa.ID;
    2627import org.rococoa.cocoa.foundation.NSInteger;
     
    3031
    3132public final class QuartzQuickLook implements QuickLook {
     33    private static final Logger log = Logger.getLogger(QuartzQuickLook.class);
    3234
    3335    private final List<QLPreviewItem> previews
     
    7173
    7274    @Override
    73     public boolean isAvailable() {
    74         return null != panel;
    75     }
    76 
    77     @Override
    7875    public boolean isOpen() {
    7976        return QLPreviewPanel.sharedPreviewPanelExists() && panel.isVisible();
     
    8986        panel.makeKeyAndOrderFront(null);
    9087        if(null == panel.dataSource()) {
    91             // Do not reload data yet because datasource is not yet setup.
    92             // Focus has probably changed to another application since
     88            log.warn("Do not reload data yet because datasource is not yet setup. Focus has probably changed to another application since");
    9389            return;
    9490        }
     
    9894    @Override
    9995    public void close() {
    100         panel.close();
     96        panel.setDataSource(null);
     97        panel.orderOut(null);
    10198    }
    10299
    103100    @Override
    104101    public void didEndQuickLook() {
    105         panel.setDataSource(null);
     102        previews.clear();
    106103    }
    107104}
Note: See TracChangeset for help on using the changeset viewer.
swiss made software