Examples of eContainer()


Examples of com.github.jknack.antlr4ide.lang.RuleRef.eContainer()

    RuleRef ref = createMock(RuleRef.class);

    expect(diagnosticContext.getLinkText()).andReturn("some");
    expect(diagnosticContext.getContext()).andReturn(ref);

    expect(ref.eContainer()).andReturn(null);
    expect(ref.eContainer()).andReturn(rule);

    Object[] mocks = {diagnosticContext, ref, rule };

    replay(mocks);
View Full Code Here

Examples of com.google.eclipse.protobuf.protobuf.FieldOption.eContainer()

              continue;
            }
            EObject model = modelFrom(c);
            if (model instanceof FieldOption) {
              FieldOption option = (FieldOption) model;
              model = option.eContainer();
            }
            if (model instanceof Literal) {
              Literal literal = (Literal) model;
              if (shouldCalculateIndex(literal, LITERAL__INDEX)) {
                long index = literals.calculateNewIndexOf(literal);
View Full Code Here

Examples of com.google.eclipse.protobuf.protobuf.Literal.eContainer()

    Literal active = xtext.find("ACTIVE", " = 0", Literal.class);
    MessageField field = xtext.find("status", MessageField.class);
    ComplexTypeLink link = (ComplexTypeLink) field.getType();
    IScope scope = scopeProvider.scope_ComplexTypeLink_target(link, reference);
    EObject status = descriptionsIn(scope).objectDescribedAs("Status");
    assertSame(active.eContainer(), status);
  }
}
View Full Code Here

Examples of com.google.eclipse.protobuf.protobuf.Literal.eContainer()

    if (!(value instanceof LiteralLink)) {
      error(expectedIdentifier, ABSTRACT_OPTION__VALUE);
      return true;
    }
    Literal literal = ((LiteralLink) value).getTarget();
    if (!anEnum.equals(literal.eContainer())) {
      QualifiedName enumFqn = fqnProvider.getFullyQualifiedName(anEnum);
      String literalName = nodes.textOf(nodeForValueFeatureIn(option));
      String msg = String.format(literalNotInEnum, enumFqn, literalName);
      error(msg, ABSTRACT_OPTION__VALUE);
    }
View Full Code Here

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

                proposer.computeDistinctProposals(className, foundClasses));
            else
              acceptor.acceptWarning(
                "Ambiguous reference to: '" + className + "' found in: " +
                    visibleResourceList(s.eResource(), foundClasses), //
                param.eContainer(), param.eContainingFeature(),
                idx, //
                IPPDiagnostics.ISSUE__RESOURCE_AMBIGUOUS_REFERENCE,
                proposer.computeDistinctProposals(className, foundClasses));

          }
View Full Code Here

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

Examples of eu.admire.dispel.parameters.Input.eContainer()

      dst2.setTarget((Input) getTarget());

      Input in = (Input) getTarget();

      container = in.eContainer();

      if (container instanceof ProcessingElementInstance) {

        ProcessingElementInstance pei = (ProcessingElementInstance) container;
View Full Code Here

Examples of eu.admire.dispel.parameters.Output.eContainer()

      Output out = (Output) getSource();

      fnc = out.getContainingMethod();

      container = out.eContainer();

      if (container instanceof ProcessingElementInstance) {

        ProcessingElementInstance pei = (ProcessingElementInstance) container;
View Full Code Here

Examples of eu.admire.dispel.references.MethodCall.eContainer()

      MethodCall link = (MethodCall) setting.getEObject();
      if (MethodCall2EditPart.VISUAL_ID != DispelVisualIDRegistry
          .getLinkWithClassVisualID(link)) {
        continue;
      }
      if (false == link.eContainer() instanceof ProcessingElementMethodDefinition) {
        continue;
      }
      ProcessingElementMethodDefinition container = (ProcessingElementMethodDefinition) link
          .eContainer();
      result.add(new DispelLinkDescriptor(container, target, link,
View Full Code Here

Examples of fd2.MandatoryRelation.eContainer()

      MandatoryRelation link = (MandatoryRelation) setting.getEObject();
      if (MandatoryRelationEditPart.VISUAL_ID != Fd2VisualIDRegistry
          .getLinkWithClassVisualID(link)) {
        continue;
      }
      if (false == link.eContainer() instanceof BaseFeatureNode) {
        continue;
      }
      BaseFeatureNode container = (BaseFeatureNode) link.eContainer();
      result.add(new Fd2LinkDescriptor(container, target, link,
          Fd2ElementTypes.MandatoryRelation_4008,
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.