@Test public void testNavigate_negative() { Assert.assertFalse(recognizer.navigate(getProject(), "")); }
@Override public boolean navigate(Project project, String hyperlink) { if(hyperlink.startsWith("web:")) { project.getComponent(BrowserUtil.class).launchBrowser(EntityQuery.decode(hyperlink.substring(4))); return true; } else { return false; } }
WebLinkRecognizer implements Recognizer { @Override public boolean navigate(Project project, String hyperlink) { if(hyperlink.startsWith("web:")) { project.getComponent(BrowserUtil.class).launchBrowser(EntityQuery.decode(hyperlink.substring(4))); return true; } else { return false; } } }
WebLinkRecognizer implements Recognizer { @Override public boolean navigate(Project project, String hyperlink) { if(hyperlink.startsWith("web:")) { project.getComponent(BrowserUtil.class).launchBrowser(EntityQuery.decode(hyperlink.substring(4))); return true; } else { return false; } }  }
WebLinkRecognizer implements Recognizer { @Override public boolean navigate(Project project, String hyperlink) { if(hyperlink.startsWith("web:")) { project.getComponent(BrowserUtil.class).launchBrowser(EntityQuery.decode(hyperlink.substring(4))); return true; } else { return false; } }  @Override void recognize(String content, List<Candidate> candidates); @Override boolean navigate(Project project, String hyperlink); }
WebLinkRecognizer implements Recognizer { @Override public boolean navigate(Project project, String hyperlink) { if(hyperlink.startsWith("web:")) { project.getComponent(BrowserUtil.class).launchBrowser(EntityQuery.decode(hyperlink.substring(4))); return true; } else { return false; } }  @Override void recognize(String content, List<Candidate> candidates); @Override boolean navigate(Project project, String hyperlink);  }