use of com.redhat.devtools.intellij.tektoncd.tree.TektonRootNode in project intellij-tekton by redhat-developer.
the class TreeHelper method getTkn.
public static Tkn getTkn(Project project) {
try {
TektonTreeStructure treeStructure = (TektonTreeStructure) getTree(project).getClientProperty(Constants.STRUCTURE_PROPERTY);
TektonRootNode root = (TektonRootNode) treeStructure.getRootElement();
return root.getTkn();
} catch (Exception ex) {
return null;
}
}
Aggregations