Package org.eclipse.wst.xml.ui.internal.contentassist

Examples of org.eclipse.wst.xml.ui.internal.contentassist.ContentAssistRequest.addProposal()


              completionRegion.getTextLength(), matchString);
        }
        //add each of the directive names as a proposal
        for (int i = 0; i < directiveNames.length; i++) {
          if (directiveNames[i].startsWith(matchString)) {
            request.addProposal(new CustomCompletionProposal(
                directiveNames[i], request.getReplacementBeginPosition(),
                request.getReplacementLength(), directiveNames[i].length(),
                JSPEditorPluginImageHelper.getInstance().getImage(JSPEditorPluginImages.IMG_OBJ_TAG_JSP),
                directiveNames[i], null, null, XMLRelevanceConstants.R_JSP));
          }
View Full Code Here


          break;
        }
      }
      if (nameString == null) {
        for (int i = 0; i < directiveNames.length; i++) {
          request.addProposal(new CustomCompletionProposal(
              directiveNames[i], request.getReplacementBeginPosition(),
              request.getReplacementLength(), directiveNames[i].length(),
              JSPEditorPluginImageHelper.getInstance().getImage(JSPEditorPluginImages.IMG_OBJ_TAG_JSP),
              directiveNames[i], null, null, XMLRelevanceConstants.R_JSP));
        }
View Full Code Here

        "this",
        (IContextInformation)null,
        0,
        true,
        null);
    contentAssistRequest.addProposal(newProposal);
   
    DozerPluginUtils.addPropertyNameAttributeValueProposals(contentAssistRequest, matchString, "", type);   
    convertProposals(contentAssistRequest.getProposals());
   
    return contentAssistRequest;   
View Full Code Here

                                  key.getString(),
                                  (IContextInformation)null,
                                  0,
                                  true,
                                  bean);
          contentAssistRequest.addProposal(newProposal);
        }
      }
    }
   
    return contentAssistRequest;   
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.