if (input instanceof ViewInput) {
ViewInput in = (ViewInput) input;
setContentDescription("Analysis Result - " + input.toString());
try {
// try to get analysis map, that we generated earlier
TreeAnalysisMap map = (TreeAnalysisMap) in.file.getProject().getSessionProperty(GoblinPlugin.RESULT_NAME);
// analysis not yet done or map generation failed
if (map == null)
return failNode;
// get needed info
TreeLoc tl = map.getAnalysis(in.file.getName(), in.sLine);
if (tl == null)
return failNode;
else{
return tl.getChildren();