@Test public void testOpen() throws Exception { new WorkspaceApplicationLauncher().open(new NullLocal("t")); final NullLocal file = new NullLocal(System.getProperty("java.io.tmpdir"), UUID.randomUUID().toString()); LocalTouchFactory.get().touch(file); new WorkspaceApplicationLauncher().open(file); file.delete(); }
@Override public boolean open(final Local file) { synchronized(NSWorkspace.class) { if(!workspace.openFile(file.getAbsolute())) { log.warn(String.format("Error opening file %s", file)); return false; } return true; } }
WorkspaceApplicationLauncher implements ApplicationLauncher { @Override public boolean open(final Local file) { synchronized(NSWorkspace.class) { if(!workspace.openFile(file.getAbsolute())) { log.warn(String.format("Error opening file %s", file)); return false; } return true; } } }
WorkspaceApplicationLauncher implements ApplicationLauncher { @Override public boolean open(final Local file) { synchronized(NSWorkspace.class) { if(!workspace.openFile(file.getAbsolute())) { log.warn(String.format("Error opening file %s", file)); return false; } return true; } }  }
WorkspaceApplicationLauncher implements ApplicationLauncher { @Override public boolean open(final Local file) { synchronized(NSWorkspace.class) { if(!workspace.openFile(file.getAbsolute())) { log.warn(String.format("Error opening file %s", file)); return false; } return true; } }  void register(final Application application, final ApplicationQuitCallback callback); @Override boolean open(final Local file); @Override boolean open(final Local file, final Application application, final ApplicationQuitCallback callback); @Override boolean open(final Application application, final String args); @Override void bounce(final Local file); }
WorkspaceApplicationLauncher implements ApplicationLauncher { @Override public boolean open(final Local file) { synchronized(NSWorkspace.class) { if(!workspace.openFile(file.getAbsolute())) { log.warn(String.format("Error opening file %s", file)); return false; } return true; } }  void register(final Application application, final ApplicationQuitCallback callback); @Override boolean open(final Local file); @Override boolean open(final Local file, final Application application, final ApplicationQuitCallback callback); @Override boolean open(final Application application, final String args); @Override void bounce(final Local file);  }