Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright (c) 2004, 2007 IBM Corporation and others. All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at Contributors: IBM Corporation - initial API and implementation /
package org.eclipse.ant.internal.ui.editor;
    private AntEditor fEditor;
    public AntElementHyperlinkDetector() {    
	/* (non-Javadoc)
	 * @see org.eclipse.jface.text.hyperlink.IHyperlinkDetector#detectHyperlinks(org.eclipse.jface.text.ITextViewer, org.eclipse.jface.text.IRegion, boolean)
	public IHyperlink[] detectHyperlinks(ITextViewer textViewerIRegion regionboolean canShowMultipleHyperlinks) {
		 if (region == null) {
			return null;
        region= XMLTextHover.getRegion(textViewerregion.getOffset());
        Object linkTarget.findTarget(region);
		if (linkTarget == null) {
			return null;
        return new IHyperlink[] {new AntElementHyperlink(regionlinkTarget)};
New to GrepCode? Check out our FAQ X