@Test public void testOpen() { assertFalse(new WorkspaceBrowserLauncher().open("")); assertFalse(new WorkspaceBrowserLauncher().open(null)); }
@Override public boolean open(final String url) { synchronized(NSWorkspace.class) { if(StringUtils.isNotBlank(url)) { if(NSWorkspace.sharedWorkspace().openURL(NSURL.URLWithString(url))) { return true; } log.warn(String.format("Failure opening URL %s with browser", url)); } return false; } }
WorkspaceBrowserLauncher implements BrowserLauncher { @Override public boolean open(final String url) { synchronized(NSWorkspace.class) { if(StringUtils.isNotBlank(url)) { if(NSWorkspace.sharedWorkspace().openURL(NSURL.URLWithString(url))) { return true; } log.warn(String.format("Failure opening URL %s with browser", url)); } return false; } } }
WorkspaceBrowserLauncher implements BrowserLauncher { @Override public boolean open(final String url) { synchronized(NSWorkspace.class) { if(StringUtils.isNotBlank(url)) { if(NSWorkspace.sharedWorkspace().openURL(NSURL.URLWithString(url))) { return true; } log.warn(String.format("Failure opening URL %s with browser", url)); } return false; } }  }
WorkspaceBrowserLauncher implements BrowserLauncher { @Override public boolean open(final String url) { synchronized(NSWorkspace.class) { if(StringUtils.isNotBlank(url)) { if(NSWorkspace.sharedWorkspace().openURL(NSURL.URLWithString(url))) { return true; } log.warn(String.format("Failure opening URL %s with browser", url)); } return false; } }  @Override boolean open(final String url); }
WorkspaceBrowserLauncher implements BrowserLauncher { @Override public boolean open(final String url) { synchronized(NSWorkspace.class) { if(StringUtils.isNotBlank(url)) { if(NSWorkspace.sharedWorkspace().openURL(NSURL.URLWithString(url))) { return true; } log.warn(String.format("Failure opening URL %s with browser", url)); } return false; } }  @Override boolean open(final String url);  }