Package org.eclipse.example.library

Examples of org.eclipse.example.library.Writer


    book3.setTitle("Book 3");
    book3.setPages(3000);
    book3.setCategory(BookCategory.BIOGRAPHY_LITERAL);
    fixture.getBooks().add(book3);

    Writer writer1 = LibraryFactory.eINSTANCE.createWriter();
    writer1.setName("Writer 1");
    writer1.getBooks().add(book1);
    fixture.getWriters().add(writer1);

    Writer writer2 = LibraryFactory.eINSTANCE.createWriter();
    writer2.setName("Writer 2");
    writer2.getBooks().add(book2);
    writer2.getBooks().add(book3);
    fixture.getWriters().add(writer2);
  }
View Full Code Here


    book3.setTitle("Book 3");
    book3.setPages(3000);
    book3.setCategory(BookCategory.BIOGRAPHY_LITERAL);
    fixture.getBooks().add(book3);

    Writer writer1 = LibraryFactory.eINSTANCE.createWriter();
    writer1.setName("Writer 1");
    writer1.getBooks().add(book1);
    fixture.getWriters().add(writer1);

    Writer writer2 = LibraryFactory.eINSTANCE.createWriter();
    writer2.setName("Writer 2");
    writer2.getBooks().add(book2);
    writer2.getBooks().add(book3);
    fixture.getWriters().add(writer2);
   
    // add some anonymous content to the resource
    // e.g., an XML document consisting of
    // <test xmlns="urn:test">
View Full Code Here

   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public NotificationChain basicSetAuthor(Writer newAuthor, NotificationChain msgs) {
    Writer oldAuthor = author;
    author = newAuthor;
    if (eNotificationRequired()) {
      ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, LibraryPackage.BOOK__AUTHOR, oldAuthor, newAuthor);
      if (msgs == null) msgs = notification; else msgs.add(notification);
    }
View Full Code Here

TOP

Related Classes of org.eclipse.example.library.Writer

Copyright © 2018 www.massapicom. 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.