Package com.puppetlabs.geppetto.pp

Examples of com.puppetlabs.geppetto.pp.ResourceBody.eContainer()


    // if(ppga.getWSRule() == context.getCurrentNode().getGrammarElement())
    // return;
    // }
    try {
      // figure out the shape of the resource
      ResourceExpression resourceExpr = (ResourceExpression) resourceBody.eContainer();

      ClassifierAdapter adapter = ClassifierAdapterFactory.eINSTANCE.adapt(resourceExpr);
      int resourceType = adapter.getClassifier();
      // If resource is good, and not 'class', then it must have a known reference type.
      // the resource type - also requires getting the type name from the override's expression).
View Full Code Here


      super.completeAttributeOperation_Op(model, assignment, context, acceptor);
      return;
    }
    try {
      // figure out the shape of the resource
      ResourceExpression resourceExpr = (ResourceExpression) resourceBody.eContainer();

      ClassifierAdapter adapter = ClassifierAdapterFactory.eINSTANCE.adapt(resourceExpr);
      int resourceType = adapter.getClassifier();
      acceptor.accept(createCompletionProposal("=>", context));
      if(resourceType == RESOURCE_IS_OVERRIDE)
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.