Package org.springframework.ide.eclipse.beans.ui.editor.hyperlink

Examples of org.springframework.ide.eclipse.beans.ui.editor.hyperlink.NodeElementHyperlink


    if (REF_ATTRIBUTE.equals(annotationData.getKind())) {
      Node bean = BeansEditorUtils.getFirstReferenceableNodeById(node.getOwnerDocument(), target, file);
      if (bean != null) {
        IRegion region = getHyperlinkRegion(bean);
        return new NodeElementHyperlink(hyperlinkRegion, region, textViewer);
      }
      else {
        // assume this is an external reference
        Iterator<?> beans = BeansEditorUtils.getBeansFromConfigSets(file).iterator();
        while (beans.hasNext()) {
View Full Code Here


    if (nodes.getLength() > 0) {
      for (int i = 0; i < nodes.getLength(); i++) {
        String id = BeansEditorUtils.getAttribute(nodes.item(i), "id");
        if (target.equals(id)) {
          IRegion region = HyperlinkUtils.getHyperlinkRegion(nodes.item(i));
          return new NodeElementHyperlink(hyperlinkRegion, region, textViewer);
        }
      }
    }
    return null;
  }
View Full Code Here

    for (int i = 0; i < beanNodes.getLength(); i++) {
      Node beanNode = beanNodes.item(i);
      if ("pointcut".equals(beanNode.getLocalName())) {
        if (name.equals(BeansEditorUtils.getAttribute(beanNode, "id"))) {
          IRegion region = HyperlinkUtils.getHyperlinkRegion(beanNode);
          return new NodeElementHyperlink(hyperlinkRegion, region, textViewer);
        }
      }
    }
    return null;
  }
View Full Code Here

    for (int i = 0; i < children.getLength(); i++) {
      Node child = children.item(i);
      if ("step".equals(child.getLocalName())) {
        if (name.equals(BeansEditorUtils.getAttribute(child, "id"))) {
          IRegion region = HyperlinkUtils.getHyperlinkRegion(child);
          link = new NodeElementHyperlink(hyperlinkRegion, region, textViewer);
        }
      }
      if (link == null && child.hasChildNodes()) {
        link = searchStepElements(name, child, textViewer, hyperlinkRegion);
      }
View Full Code Here

TOP

Related Classes of org.springframework.ide.eclipse.beans.ui.editor.hyperlink.NodeElementHyperlink

Copyright © 2018 www.massapicom. 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.