use of org.eclipse.xtext.serializer.contextFinderTest.ParentRefTestChild in project xtext-core by eclipse.
the class ParentRefTest1Impl method basicSetChild1.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetChild1(ParentRefTestChild newChild1, NotificationChain msgs) {
ParentRefTestChild oldChild1 = child1;
child1 = newChild1;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ContextFinderTestPackage.PARENT_REF_TEST1__CHILD1, oldChild1, newChild1);
if (msgs == null)
msgs = notification;
else
msgs.add(notification);
}
return msgs;
}
use of org.eclipse.xtext.serializer.contextFinderTest.ParentRefTestChild in project xtext-core by eclipse.
the class ParentRefTest2Impl method basicSetChild2.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetChild2(ParentRefTestChild newChild2, NotificationChain msgs) {
ParentRefTestChild oldChild2 = child2;
child2 = newChild2;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ContextFinderTestPackage.PARENT_REF_TEST2__CHILD2, oldChild2, newChild2);
if (msgs == null)
msgs = notification;
else
msgs.add(notification);
}
return msgs;
}
use of org.eclipse.xtext.serializer.contextFinderTest.ParentRefTestChild in project xtext-core by eclipse.
the class ParentRefTestChildImpl method basicSetChild.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetChild(ParentRefTestChild newChild, NotificationChain msgs) {
ParentRefTestChild oldChild = child;
child = newChild;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ContextFinderTestPackage.PARENT_REF_TEST_CHILD__CHILD, oldChild, newChild);
if (msgs == null)
msgs = notification;
else
msgs.add(notification);
}
return msgs;
}
use of org.eclipse.xtext.serializer.contextFinderTest.ParentRefTestChild in project xtext-core by eclipse.
the class ContextFinderTest method testParentRefTest1.
@Test
public void testParentRefTest1() throws Exception {
Model model = parseHelper.parse("#4 kw1 foo");
ParentRefTestChild child1 = ((ParentRefTest1) model.getParentRef()).getChild1();
assertEquals("ParentRefTestChild1", findContextsByContentsAndContainer(child1));
}
use of org.eclipse.xtext.serializer.contextFinderTest.ParentRefTestChild in project xtext-core by eclipse.
the class ContextFinderTest method testParentRefTest2.
@Test
public void testParentRefTest2() throws Exception {
Model model = parseHelper.parse("#4 kw2 foo");
ParentRefTestChild child2 = ((ParentRefTest2) model.getParentRef()).getChild2();
assertEquals("ParentRefTestChild2", findContextsByContentsAndContainer(child2));
}
Aggregations