/**
   * {@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 Command command = (Command) elt;
      final CommandPropertiesEditionPart basePart = (CommandPropertiesEditionPart) editingPart;
      // init values
      if (isAccessible(StatemachineViewsRepository.Command.Properties.name))
        basePart.setName(
            EEFConverterUtil.convertToString(EcorePackage.Literals.ESTRING, command.getName()));

      if (isAccessible(StatemachineViewsRepository.Command.Properties.code))
        basePart.setCode(
            EEFConverterUtil.convertToString(EcorePackage.Literals.ESTRING, command.getCode()));

      // init filters

      // init values for referenced views

      // init filters for referenced views

    }
    setInitializing(false);
  }
 /**
  * {@inheritDoc}
  *
  * @see
  *     org.eclipse.emf.eef.runtime.impl.components.StandardPropertiesEditionComponent#updatePart(org.eclipse.emf.common.notify.Notification)
  */
 public void updatePart(Notification msg) {
   super.updatePart(msg);
   if (editingPart.isVisible()) {
     CommandPropertiesEditionPart basePart = (CommandPropertiesEditionPart) editingPart;
     if (StatemachinePackage.eINSTANCE.getCommand_Name().equals(msg.getFeature())
         && msg.getNotifier().equals(semanticObject)
         && basePart != null
         && isAccessible(StatemachineViewsRepository.Command.Properties.name)) {
       if (msg.getNewValue() != null) {
         basePart.setName(
             EcoreUtil.convertToString(EcorePackage.Literals.ESTRING, msg.getNewValue()));
       } else {
         basePart.setName("");
       }
     }
     if (StatemachinePackage.eINSTANCE.getCommand_Code().equals(msg.getFeature())
         && msg.getNotifier().equals(semanticObject)
         && basePart != null
         && isAccessible(StatemachineViewsRepository.Command.Properties.code)) {
       if (msg.getNewValue() != null) {
         basePart.setCode(
             EcoreUtil.convertToString(EcorePackage.Literals.ESTRING, msg.getNewValue()));
       } else {
         basePart.setCode("");
       }
     }
   }
 }