Examples of ModelQuery


Examples of org.eclipse.wst.xml.core.internal.contentmodel.modelquery.ModelQuery

  /**
   * @return Returns the fModelQuery.
   */
  public ModelQuery getModelQuery(IDocument doc) {
    IStructuredModel model = null;
    ModelQuery mq = null;
    try {
      model = StructuredModelManager.getModelManager().getExistingModelForRead(doc);
      mq = ModelQueryUtil.getModelQuery(model);
    }
    finally {
View Full Code Here

Examples of org.eclipse.wst.xml.core.internal.contentmodel.modelquery.ModelQuery

      CompletionProposalInvocationContext context) {

    if(!this.isXHTML) {
      IDOMNode node = (IDOMNode) contentAssistRequest.getNode();
 
      ModelQuery mq = ModelQueryUtil.getModelQuery(node.getOwnerDocument());
      if (mq != null) {
        CMDocument doc = mq.getCorrespondingCMDocument(node);
        // this shouldn't have to have the prefix coded in
        if (doc instanceof JSPCMDocument || doc instanceof CMNodeWrapper ||
            node.getNodeName().startsWith("jsp:")) { //$NON-NLS-1$
          return;
        }
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.