コード例 #1
0
 /**
  * {@inheritDoc}
  *
  * @see
  *     org.eclipse.emf.eef.runtime.impl.components.StandardPropertiesEditionComponent#updateSemanticModel(org.eclipse.emf.eef.runtime.api.notify.IPropertiesEditionEvent)
  */
 public void updateSemanticModel(final IPropertiesEditionEvent event) {
   Skill skill = (Skill) semanticObject;
   if (EefprimerViewsRepository.Skill.Properties.name == event.getAffectedEditor()) {
     skill.setName(
         (java.lang.String)
             EEFConverterUtil.createFromString(
                 EcorePackage.Literals.ESTRING, (String) event.getNewValue()));
   }
 }
コード例 #2
0
  /**
   * {@inheritDoc}
   *
   * @see
   *     org.eclipse.emf.eef.runtime.api.component.IPropertiesEditionComponent#initPart(java.lang.Object,
   *     int, org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.resource.ResourceSet)
   */
  public void initPart(Object key, int kind, EObject elt, ResourceSet allResource) {
    setInitializing(true);
    if (editingPart != null && key == partKey) {
      editingPart.setContext(elt, allResource);

      final Skill skill = (Skill) elt;
      final SkillPropertiesEditionPart basePart = (SkillPropertiesEditionPart) editingPart;
      // init values
      if (isAccessible(EefprimerViewsRepository.Skill.Properties.name))
        basePart.setName(
            EEFConverterUtil.convertToString(EcorePackage.Literals.ESTRING, skill.getName()));

      // init filters

      // init values for referenced views

      // init filters for referenced views

    }
    setInitializing(false);
  }