I am using the vis library to visualize data and I want to redirect the user to a certain code block within java after pressing a button. I am using the following code from the library to process a button click:
s = "test";
b = box(text(str () { return s; }),
fillColor("red"),
onMouseDown(bool (int butnr, map[KeyModifier,bool] modifiers) {
s = "<butnr>";
return true;
}));
render(b)
After the user clicks the button I want him to be redirected to a certain java code block in eclipse (just like what happens when you get a parse error of some sorts within the terminal). Any help would be greatly appreciated.