Package org.eclipse.wst.xml.core.internal.document

Examples of org.eclipse.wst.xml.core.internal.document.ElementImpl


    if (handle == null) {
      if (element != null && element instanceof IBeansModelElement) {
        return ((IBeansModelElement) element).getElementID();
      }
      else if (element != null && element instanceof ElementImpl) {
        ElementImpl node = (ElementImpl) element;
        IStructuredDocument document = node.getStructuredDocument();
        IFile resource = SpringUIUtils.getFile(document);
        if (document != null) {
          int startLine = document.getLineOfOffset(node
              .getStartOffset()) + 1;
          int endLine = document.getLineOfOffset(node.getEndOffset()) + 1;
          IModelElement mostspecificElement = BeansModelUtils
              .getMostSpecificModelElement(startLine, endLine,
                  resource, null);
          if (mostspecificElement != null
              && mostspecificElement instanceof IBeansModelElement) {
View Full Code Here


      LinkedModeModel linkModel = new LinkedModeModel();
      boolean hasPositions = false;
      for (Element element : properties) {
        formatter.formatNode(element);
        if (element instanceof ElementImpl) {
          ElementImpl elementImpl = (ElementImpl) element;
          int nodeOffset = elementImpl.getStartEndOffset() - 1;

          LinkedPositionGroup group = new LinkedPositionGroup();

          try {
            group.addPosition(new LinkedPosition(document, nodeOffset, 0));
View Full Code Here

TOP

Related Classes of org.eclipse.wst.xml.core.internal.document.ElementImpl

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.