Examples of TreeElement


Examples of com.intellij.psi.impl.source.tree.TreeElement

  public LombokLightMethodTreeGenerator() {
  }

  @Nullable
  public TreeElement generateTreeFor(PsiElement original, CharTable table, PsiManager manager) {
    TreeElement result = null;
    if (original instanceof LombokLightMethod || original instanceof LombokLightMethodBuilder) {
      result = ChangeUtil.copyElement((TreeElement) SourceTreeToPsiMap.psiElementToTree(original), table);
    }
    return result;
  }
View Full Code Here

Examples of com.intellij.psi.impl.source.tree.TreeElement

  public MyLightMethodTreeGenerator() {
  }

  @Nullable
  public TreeElement generateTreeFor(PsiElement original, CharTable table, PsiManager manager) {
    TreeElement result = null;
    if (original instanceof MyLightMethod)
      result = ChangeUtil.copyElement((TreeElement) SourceTreeToPsiMap.psiElementToTree(original), table);
    return result;
  }
View Full Code Here

Examples of com.intellij.psi.impl.source.tree.TreeElement

  public LombokLightMethodTreeGenerator() {
  }

  @Nullable
  public TreeElement generateTreeFor(PsiElement original, CharTable table, PsiManager manager) {
    TreeElement result = null;
    if (original instanceof LombokLightMethod || original instanceof LombokLightMethodBuilder) {
      result = ChangeUtil.copyElement((TreeElement) SourceTreeToPsiMap.psiElementToTree(original), table);
    }
    return result;
  }
View Full Code Here

Examples of org.apache.beehive.netui.tags.tree.TreeElement

    )
    protected Forward selectFrame()       
    {

        String selectNode = getRequest().getParameter(TreeElement.SELECTED_NODE);
        TreeElement n = _root.findNode(selectNode);

      return new Forward( n.getTitle() );
    }
View Full Code Here

Examples of org.apache.beehive.netui.tags.tree.TreeElement

    )
    protected Forward selectFrame()       
    {

        String selectNode = getRequest().getParameter(TreeElement.SELECTED_NODE);
        TreeElement n = _root.findNode(selectNode);

      return new Forward( n.getTitle() );
    }
View Full Code Here

Examples of org.crsh.text.ui.TreeElement

    while (stream.hasNext()) {
      MBeanInfo info = stream.next();

      //
      TreeElement root = new TreeElement(info.getClassName());

      // Descriptor
      TableElement descriptor = new TableElement().
          overflow(Overflow.HIDDEN).
          rightCellPadding(1);
      Descriptor descriptorInfo = info.getDescriptor();
      if (descriptorInfo != null) {
        for (String fieldName : descriptorInfo.getFieldNames()) {
          String fieldValue = String.valueOf(descriptorInfo.getFieldValue(fieldName));
          descriptor.row(fieldName, fieldValue);
        }
      }

      // Attributes
      TableElement attributes = new TableElement().
          overflow(Overflow.HIDDEN).
          rightCellPadding(1).
          add(new RowElement().style(Decoration.bold.fg(Color.black).bg(Color.white)).add("NAME", "TYPE", "DESCRIPTION"));
      for (MBeanAttributeInfo attributeInfo : info.getAttributes()) {
        attributes.row(attributeInfo.getName(), attributeInfo.getType(), attributeInfo.getDescription());
      }

      // Operations
      TreeElement operations = new TreeElement("Operations");
      for (MBeanOperationInfo operationInfo : info.getOperations()) {
        TableElement signature = new TableElement().
            overflow(Overflow.HIDDEN).
            rightCellPadding(1);
        MBeanParameterInfo[] parameterInfos = operationInfo.getSignature();
        for (MBeanParameterInfo parameterInfo : parameterInfos) {
          signature.row(parameterInfo.getName(), parameterInfo.getType(), parameterInfo.getDescription());
        }
        TreeElement operation = new TreeElement(operationInfo.getName());
        String impact;
        switch (operationInfo.getImpact()) {
          case MBeanOperationInfo.ACTION:
            impact = "ACTION";
            break;
          case MBeanOperationInfo.INFO:
            impact = "INFO";
            break;
          case MBeanOperationInfo.ACTION_INFO:
            impact = "ACTION_INFO";
            break;
          default:
            impact = "UNKNOWN";
        }
        operation.addChild(new TableElement().
            add(
                new RowElement().add("Type: ", operationInfo.getReturnType()),
                new RowElement().add("Description: ", operationInfo.getDescription()),
                new RowElement().add("Impact: ", impact),
                new RowElement().add(new LabelElement("Signature: "), signature)
            )
        );

        operations.addChild(operation);
      }

      //
      root.addChild(
        new TableElement().leftCellPadding(1).overflow(Overflow.HIDDEN).
          row("ClassName", info.getClassName()).
          row("Description", info.getDescription()
        )
      );
      root.addChild(new TreeElement("Descriptor").addChild(descriptor));
      root.addChild(new TreeElement("Attributes").addChild(attributes));
      root.addChild(operations);

      //
      renderers.add(root.renderer());
    }
View Full Code Here

Examples of org.jitterbit.integration.client.ui.interchange.entity.transformation.tree.TreeElement

        private void popStack(TreeElement current) {
            if (elements.empty()) {
                return;
            }
            TreeElement top = elements.peek();
            while (top != current.getParent()) {
                builder.closeSegment();
                elements.pop();
                top = elements.empty() ? null : elements.peek();
            }
View Full Code Here

Examples of org.jitterbit.integration.client.ui.interchange.entity.transformation.tree.TreeElement

    public TreeMapperNode asTreeMapperNode(TreeElement parent) {
        TreeMapperNode tmNode = null;
        String name = getTreeMapperNodeName();
        if (isFolder()) {
            TreeElement element = null;
            if (parent == null) {
                element = TreeElement.ROOT_FACTORY.newRoot(name);
            } else {
                ElementCardinality cardinality = ElementCardinality.fromTreeNode(this);
                element = parent.addElement(name, cardinality);
View Full Code Here

Examples of rex.graphics.TreeElement

        ((DefaultMBTAxisNode)((MBTNode)rowTreeNode.getUserObject())).setNonEmpty(axisEmpty.isRowEmpty());
        // Getting MBTNode Objects array associated with MDX Builder Tree.
        MBTNode[] children = (MBTNode[])((MBTNode)(r)).getMdxBuilderTreeNodes();
       
        // Getting Dimension list element and Tree Root.
        TreeElement dimTreeRoot=(TreeElement)((DimensionTreeModel)((dimTree.getTree()).getModel())).getRoot();
        int noOfDimension=dimTreeRoot.getChildCount();
        TreeElement [] dimTreeRootChild=new TreeElement[noOfDimension];
        for(int childCount=0;childCount<noOfDimension;childCount++)
        {
          dimTreeRootChild[childCount]=dimTreeRoot.getChildAt(childCount);
        }
       
        // Contains JPivot parser to parse WITH and SLICER portion of MDX Query.  
       SegregateMDXWithNWhere withNWhere=new SegregateMDXWithNWhere(removeComments(textArea.getText()));
      
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.