// Path: src/com/hdweiss/codemap/util/SpanUtils.java
// public interface SpanConverter<A extends CharacterStyle, B extends CharacterStyle> {
// 	B convert(A span);
// }


import android.text.style.ClickableSpan;
import android.text.style.URLSpan;
import android.view.View;
import com.hdweiss.codemap.util.SpanUtils.SpanConverter;
package com.hdweiss.codemap.view.workspace.fragments;



public class FunctionLinkSpan extends ClickableSpan {

	private CodeMapFunction codeMapFunction;
	private String url;
	
	public FunctionLinkSpan(CodeMapFunction codeMapFunction, String url) {
		this.codeMapFunction = codeMapFunction;
		this.url = url;
	}

	@Override
	public void onClick(View widget) {
		codeMapFunction.addChildFragment(url);
	}
	
	
	public static class FunctionLinkSpanConverter implements
			SpanConverter<URLSpan, FunctionLinkSpan> {

// Path: src/com/hdweiss/codemap/util/SpanUtils.java
// public interface SpanConverter<A extends CharacterStyle, B extends CharacterStyle> {
// 	B convert(A span);
// }


// Path: src/com/hdweiss/codemap/view/workspace/fragments/FunctionLinkSpan.java
import android.text.style.ClickableSpan;
import android.text.style.URLSpan;
import android.view.View;
import com.hdweiss.codemap.util.SpanUtils.SpanConverter;

package com.hdweiss.codemap.view.workspace.fragments;



public class FunctionLinkSpan extends ClickableSpan {

	private CodeMapFunction codeMapFunction;
	private String url;
	
	public FunctionLinkSpan(CodeMapFunction codeMapFunction, String url) {
		this.codeMapFunction = codeMapFunction;
		this.url = url;
	}

	@Override
	public void onClick(View widget) {
		codeMapFunction.addChildFragment(url);
	}
	
	
	public static class FunctionLinkSpanConverter implements
			SpanConverter<URLSpan, FunctionLinkSpan> {

		private CodeMapFunction codeMapFunction;