Package org.eclipse.wst.sse.core.internal.provisional.text

Examples of org.eclipse.wst.sse.core.internal.provisional.text.ITextRegionList.indexOf()


    // Find the attribute region and name for which this position should
    // have a value proposed
    IStructuredDocumentRegion open = node.getFirstStructuredDocumentRegion();
    ITextRegionList openRegions = open.getRegions();
    int i = openRegions.indexOf(contentAssistRequest.getRegion());
    if (i < 0) {
      return;
    }
    ITextRegion nameRegion = null;
    while (i >= 0) {
View Full Code Here


   * list of attribute names, <code>false</code> otherwise
   */
  private boolean isAttributeNameForValueInArray(String[] attributeNames, ITextRegion attrValueRegion, int offset) {
    IStructuredDocumentRegion node = fStructuredDocument.getRegionAtCharacterOffset(offset);
    ITextRegionList regionList = node.getRegions();
    int currentIndex = regionList.indexOf(attrValueRegion);
   
    /*
     * 4 is the minimum index allowing for the tag's open, name, attribute
     * name and equals character to appear first
     */
 
View Full Code Here

   * list of attribute names, <code>false</code> otherwise
   */
  private boolean isAttributeNameForValueInArray(String[] attributeNames, ITextRegion attrValueRegion, int offset) {
    IStructuredDocumentRegion node = fStructuredDocument.getRegionAtCharacterOffset(offset);
    ITextRegionList regionList = node.getRegions();
    int currentIndex = regionList.indexOf(attrValueRegion);
   
    /*
     * 4 is the minimum index allowing for the tag's open, name, attribute
     * name and equals character to appear first
     */
 
View Full Code Here

      //only add attribute value proposals for specific elements
      if(node.getNodeName().equals(JSP11Namespace.ElementName.DIRECTIVE_TAGLIB)) {
        // Find the attribute name for which this position should have a value
        IStructuredDocumentRegion open = node.getFirstStructuredDocumentRegion();
        ITextRegionList openRegions = open.getRegions();
        int i = openRegions.indexOf(contentAssistRequest.getRegion());
        if (i < 0)
          return;
        ITextRegion nameRegion = null;
        while (i >= 0) {
          nameRegion = openRegions.get(i--);
View Full Code Here

      }
 
      // Find the attribute name for which this position should have a value
      IStructuredDocumentRegion open = node.getFirstStructuredDocumentRegion();
      ITextRegionList openRegions = open.getRegions();
      int i = openRegions.indexOf(contentAssistRequest.getRegion());
      if (i < 0) {
        return;
      }
      ITextRegion nameRegion = null;
      while (i >= 0) {
View Full Code Here

    }

    // Find the attribute name for which this position should have a value
    IStructuredDocumentRegion open = node.getFirstStructuredDocumentRegion();
    ITextRegionList openRegions = open.getRegions();
    int i = openRegions.indexOf(contentAssistRequest.getRegion());
    if (i < 0)
      return;
    ITextRegion nameRegion = null;
    while (i >= 0) {
      nameRegion = openRegions.get(i--);
View Full Code Here

      //only add attribute value proposals for specific elements
      if(node.getNodeName().equals(JSP11Namespace.ElementName.DIRECTIVE_TAGLIB)) {
        // Find the attribute name for which this position should have a value
        IStructuredDocumentRegion open = node.getFirstStructuredDocumentRegion();
        ITextRegionList openRegions = open.getRegions();
        int i = openRegions.indexOf(contentAssistRequest.getRegion());
        if (i < 0)
          return;
        ITextRegion nameRegion = null;
        while (i >= 0) {
          nameRegion = openRegions.get(i--);
View Full Code Here

      }
 
      // Find the attribute name for which this position should have a value
      IStructuredDocumentRegion open = node.getFirstStructuredDocumentRegion();
      ITextRegionList openRegions = open.getRegions();
      int i = openRegions.indexOf(contentAssistRequest.getRegion());
      if (i < 0) {
        return;
      }
      ITextRegion nameRegion = null;
      while (i >= 0) {
View Full Code Here

        node.getNodeName().equals(JSP11Namespace.ElementName.GETPROPERTY)) {
   
      // Find the attribute name for which this position should have a value
      IStructuredDocumentRegion open = node.getFirstStructuredDocumentRegion();
      ITextRegionList openRegions = open.getRegions();
      int i = openRegions.indexOf(contentAssistRequest.getRegion());
      if (i < 0)
        return;
 
      // get the attribute in question (first attr name to the left of the cursor)
      ITextRegion attrNameRegion = null;
View Full Code Here

    //only add attribute value proposals for specific elements
    if(node.getNodeName().equals(JSP11Namespace.ElementName.USEBEAN)) {
      // Find the attribute name for which this position should have a value
      IStructuredDocumentRegion open = node.getFirstStructuredDocumentRegion();
      ITextRegionList openRegions = open.getRegions();
      int i = openRegions.indexOf(contentAssistRequest.getRegion());
      if (i < 0)
        return;
      ITextRegion nameRegion = null;
      while (i >= 0) {
        nameRegion = openRegions.get(i--);
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.