use of org.eclipse.xtext.ui.tests.editor.contentassist.bug377311.Child in project xtext-eclipse by eclipse.
the class Bug377311TestLanguageSemanticSequencer method sequence.
@Override
public void sequence(ISerializationContext context, EObject semanticObject) {
EPackage epackage = semanticObject.eClass().getEPackage();
ParserRule rule = context.getParserRule();
Action action = context.getAssignedAction();
Set<Parameter> parameters = context.getEnabledBooleanParameters();
if (epackage == Bug377311Package.eINSTANCE)
switch(semanticObject.eClass().getClassifierID()) {
case Bug377311Package.CHILD:
sequence_Child(context, (Child) semanticObject);
return;
case Bug377311Package.ROOT:
sequence_Root(context, (Root) semanticObject);
return;
}
if (errorAcceptor != null)
errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context));
}
use of org.eclipse.xtext.ui.tests.editor.contentassist.bug377311.Child in project xtext-core by eclipse.
the class ReferenceImpl method setRefChild.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setRefChild(Child newRefChild) {
Child oldRefChild = refChild;
refChild = newRefChild;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, Bug311337Package.REFERENCE__REF_CHILD, oldRefChild, refChild));
}
use of org.eclipse.xtext.ui.tests.editor.contentassist.bug377311.Child in project xtext-core by eclipse.
the class Bug311337TestLanguageSemanticSequencer method sequence.
@Override
public void sequence(ISerializationContext context, EObject semanticObject) {
EPackage epackage = semanticObject.eClass().getEPackage();
ParserRule rule = context.getParserRule();
Action action = context.getAssignedAction();
Set<Parameter> parameters = context.getEnabledBooleanParameters();
if (epackage == Bug311337Package.eINSTANCE)
switch(semanticObject.eClass().getClassifierID()) {
case Bug311337Package.CHILD:
sequence_Child(context, (Child) semanticObject);
return;
case Bug311337Package.DEFINITION:
sequence_Definition(context, (Definition) semanticObject);
return;
case Bug311337Package.MODEL:
sequence_Model(context, (Model) semanticObject);
return;
case Bug311337Package.NESTED_REF:
sequence_Reference(context, (NestedRef) semanticObject);
return;
case Bug311337Package.REFERENCE:
sequence_Reference(context, (Reference) semanticObject);
return;
}
if (errorAcceptor != null)
errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context));
}
use of org.eclipse.xtext.ui.tests.editor.contentassist.bug377311.Child in project podam by devopsfolks.
the class PodamFactoryBasicTypesTest method podamShouldSupportCircularDependencies.
@Test
@Title("Podam should fill in POJOs which have a circular dependency")
public void podamShouldSupportCircularDependencies() throws Exception {
PodamFactory podamFactory = podamFactorySteps.givenAStandardPodamFactory();
Parent parent = podamInvocationSteps.whenIInvokeTheFactoryForClass(Parent.class, podamFactory);
podamValidationSteps.thePojoMustBeOfTheType(parent, Parent.class);
Child child = parent.getChild();
podamValidationSteps.thePojoMustBeOfTheType(child, Child.class);
}
use of org.eclipse.xtext.ui.tests.editor.contentassist.bug377311.Child in project xtext-core by eclipse.
the class ModelImpl method basicSetChildren.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetChildren(Child newChildren, NotificationChain msgs) {
Child oldChildren = children;
children = newChildren;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Bug250313Package.MODEL__CHILDREN, oldChildren, newChildren);
if (msgs == null)
msgs = notification;
else
msgs.add(notification);
}
return msgs;
}
Aggregations