if (pDocURL.sameFile(purl)) {
if (pDocURL.sameFile(purl)) {
if (pDocURL.sameFile(purl)) {
public void run() { userAgent.setSVGCursor(holder.getCursor()); String href = elt.getHref().getAnimVal(); ParsedURL purl = new ParsedURL(elt.getBaseURI(), href); SVGOMDocument doc = (SVGOMDocument) elt.getOwnerDocument(); ParsedURL durl = doc.getParsedURL(); if (purl.sameFile(durl)) { String frag = purl.getRef(); if (frag != null && frag.length() != 0) { Element refElt = doc.getElementById(frag); if (refElt instanceof SVGOMAnimationElement) { SVGOMAnimationElement aelt = (SVGOMAnimationElement) refElt; float t = aelt.getHyperlinkBeginTime(); if (Float.isNaN(t)) { aelt.beginElement(); } else { doc.getRootElement().setCurrentTime(t); } return; } } } userAgent.openLink(elt); } }
public void run() { userAgent.setSVGCursor(holder.getCursor()); String href = elt.getHref().getAnimVal(); ParsedURL purl = new ParsedURL(elt.getBaseURI(), href); SVGOMDocument doc = (SVGOMDocument) elt.getOwnerDocument(); ParsedURL durl = doc.getParsedURL(); if (purl.sameFile(durl)) { String frag = purl.getRef(); if (frag != null && frag.length() != 0) { Element refElt = doc.getElementById(frag); if (refElt instanceof SVGOMAnimationElement) { SVGOMAnimationElement aelt = (SVGOMAnimationElement) refElt; float t = aelt.getHyperlinkBeginTime(); if (Float.isNaN(t)) { aelt.beginElement(); } else { doc.getRootElement().setCurrentTime(t); } return; } } } userAgent.openLink(elt); } }
public void run() { userAgent.setSVGCursor(holder.getCursor()); String href = elt.getHref().getAnimVal(); ParsedURL purl = new ParsedURL(elt.getBaseURI(), href); SVGOMDocument doc = (SVGOMDocument) elt.getOwnerDocument(); ParsedURL durl = doc.getParsedURL(); if (purl.sameFile(durl)) { String frag = purl.getRef(); if (frag != null && frag.length() != 0) { Element refElt = doc.getElementById(frag); if (refElt instanceof SVGOMAnimationElement) { SVGOMAnimationElement aelt = (SVGOMAnimationElement) refElt; float t = aelt.getHyperlinkBeginTime(); if (Float.isNaN(t)) { aelt.beginElement(); } else { doc.getRootElement().setCurrentTime(t); } return; } } } userAgent.openLink(elt); } }
/** * Called when a link was activated. */ public void linkActivated(LinkActivationEvent e) { String s = e.getReferencedURI(); if (svgDocument != null) { ParsedURL docURL = new ParsedURL(svgDocument.getURL()); ParsedURL url = new ParsedURL(docURL, s); if (!url.sameFile(docURL)) { return; } if (s.indexOf( '#' ) != -1) { localHistory.update(s); locationBar.setText(s); if (debugger != null) { debugger.detach(); debugger.setDocumentURL(s); } application.addVisitedURI(s); backAction.update(); forwardAction.update(); transformHistory = new TransformHistory(); previousTransformAction.update(); nextTransformAction.update(); } } }
/** * Called when a link was activated. */ public void linkActivated(LinkActivationEvent e) { String s = e.getReferencedURI(); if (svgDocument != null) { ParsedURL docURL = new ParsedURL(svgDocument.getURL()); ParsedURL url = new ParsedURL(docURL, s); if (!url.sameFile(docURL)) { return; } if (s.indexOf( '#' ) != -1) { localHistory.update(s); locationBar.setText(s); if (debugger != null) { debugger.detach(); debugger.setDocumentURL(s); } application.addVisitedURI(s); backAction.update(); forwardAction.update(); transformHistory = new TransformHistory(); previousTransformAction.update(); nextTransformAction.update(); } } }
if (newURI.sameFile(oldURI)) {
if (newURI.sameFile(oldURI)) {
if (newURI.sameFile(oldURI)) {