Package org.pdtextensions.semanticanalysis.model.validators

Examples of org.pdtextensions.semanticanalysis.model.validators.Category


   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public void setCategory(Category newCategory) {
    Category oldCategory = category;
    category = newCategory;
    if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, ValidatorsPackage.VALIDATOR__CATEGORY, oldCategory, category));
  }
View Full Code Here


  private void registerCategory(IConfigurationElement el) {
    if (!el.getName().equals(ELEMENT_CATEGORY)) {
      return;
    }
    final Category category = ValidatorsFactory.eINSTANCE.createCategory();
    category.setId(el.getAttribute(ATTR_ID));
    category.setLabel(el.getAttribute(ATTR_LABEL));
    category.setDescription(el.getAttribute(ATTR_DESCRIPTION));
   
    categories.put(category.getId(), category);
  }
View Full Code Here

  }

  @Test
  public void initializationCategories() {
    String defaultId = "org.pdtextensions.semanticanalysis.defaultCategory";
    Category cat = testService.getManager().getCategory(defaultId);

    assertNotNull(cat);
    assertEquals(cat.getId(), defaultId);
  }
View Full Code Here

TOP

Related Classes of org.pdtextensions.semanticanalysis.model.validators.Category

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.