public boolean handleDataClick(TrackClickEvent te) {
Feature f = getFeatureAtMousePosition(te);
if (f != null && f instanceof Mutation) {
final Mutation mut = (Mutation) f;
final MouseEvent me = te.getMouseEvent();
System.out.println("Submitting");
LongRunningTask.submit(new NamedRunnable() {
public String getName() {
return "Call OMA";
}
public void run() {
StringBuffer buf = new StringBuffer();
buf.append("<html>");
final String omaURL = mut.getOMAUrl();
if (omaURL != null) {
System.out.println("Running");
String omaText = getOMAText(mut, omaURL);
if (omaText != null) {
buf.append(omaText);
buf.append("<p>----------------------------------</p>");
}
}
buf.append(mut.getFullDescription());
buf.append("</html>");
final TooltipTextFrame tf = new TooltipTextFrame(MutationTrack.this.getName(), buf.toString());
Point p = me.getComponent().getLocationOnScreen();