@Test public void testSelect() { QuickLook q = new QuartzQuickLook(); final List<Local> files = new ArrayList<Local>(); files.add(new NullLocal("f")); files.add(new NullLocal("b")); q.select(files); }
@Override public void select(final List<Local> files) { if(log.isDebugEnabled()) { log.debug(String.format("Select files for %s", files)); } previews.clear(); for(final Local selected : files) { previews.add(new QLPreviewItem() { @Override public NSURL previewItemURL() { return NSURL.fileURLWithPath(selected.getAbsolute()); } @Override public String previewItemTitle() { return selected.getDisplayName(); } }); } }
QuartzQuickLook implements QuickLook { @Override public void select(final List<Local> files) { if(log.isDebugEnabled()) { log.debug(String.format("Select files for %s", files)); } previews.clear(); for(final Local selected : files) { previews.add(new QLPreviewItem() { @Override public NSURL previewItemURL() { return NSURL.fileURLWithPath(selected.getAbsolute()); } @Override public String previewItemTitle() { return selected.getDisplayName(); } }); } } }
QuartzQuickLook implements QuickLook { @Override public void select(final List<Local> files) { if(log.isDebugEnabled()) { log.debug(String.format("Select files for %s", files)); } previews.clear(); for(final Local selected : files) { previews.add(new QLPreviewItem() { @Override public NSURL previewItemURL() { return NSURL.fileURLWithPath(selected.getAbsolute()); } @Override public String previewItemTitle() { return selected.getDisplayName(); } }); } }  }
QuartzQuickLook implements QuickLook { @Override public void select(final List<Local> files) { if(log.isDebugEnabled()) { log.debug(String.format("Select files for %s", files)); } previews.clear(); for(final Local selected : files) { previews.add(new QLPreviewItem() { @Override public NSURL previewItemURL() { return NSURL.fileURLWithPath(selected.getAbsolute()); } @Override public String previewItemTitle() { return selected.getDisplayName(); } }); } }  @Override void select(final List<Local> files); @Override boolean isOpen(); @Override void open(); @Override void close(); }
QuartzQuickLook implements QuickLook { @Override public void select(final List<Local> files) { if(log.isDebugEnabled()) { log.debug(String.format("Select files for %s", files)); } previews.clear(); for(final Local selected : files) { previews.add(new QLPreviewItem() { @Override public NSURL previewItemURL() { return NSURL.fileURLWithPath(selected.getAbsolute()); } @Override public String previewItemTitle() { return selected.getDisplayName(); } }); } }  @Override void select(final List<Local> files); @Override boolean isOpen(); @Override void open(); @Override void close();  }