Search in sources :

Example 1 with TektonRootNode

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;
    }
}
Also used : TektonRootNode(com.redhat.devtools.intellij.tektoncd.tree.TektonRootNode) TektonTreeStructure(com.redhat.devtools.intellij.tektoncd.tree.TektonTreeStructure) IOException(java.io.IOException)

Aggregations

TektonRootNode (com.redhat.devtools.intellij.tektoncd.tree.TektonRootNode)1 TektonTreeStructure (com.redhat.devtools.intellij.tektoncd.tree.TektonTreeStructure)1 IOException (java.io.IOException)1