@Override public void chatLinkClicked(URI url) { String action = url.getPath(); if (action.equals("/SHOWPREVIEW")) { enableReplacement.setSelected(cfg.getBoolean(ReplacementProperty.REPLACEMENT_ENABLE, true)); enableReplacementProposal.setSelected( cfg.getBoolean(ReplacementProperty.REPLACEMENT_PROPOSAL, true)); currentMessageID = url.getQuery(); currentLinkPosition = url.getFragment(); this.setVisible(true); this.setLocationRelativeTo(chatPanel); } }
private /*synchronized*/ void add_a_documentation_URL(String URLname) throws VisualizerLoadException { try { URI infoURI = new URI(URLname); if (infoURI.getScheme() == null) { // Now we recreate it with the appended rel scheme infoURI = new URI("Rel:" + URLname); } // If it does have a scheme definition then it's already set to go. GaigsAV.docCtlTable.put(new Integer(Snaps), infoURI); // add map snap -> URI // System.out.println("Adding documentation URL for snap " + Snaps + " " + my_url.toString()); } catch (Exception e) { throw new VisualizerLoadException("Aieee... bad SHO file"); } }