コード例 #1
0
  /**
   * {@inheritDoc}
   *
   * @see
   *     org.eclipse.emf.eef.runtime.api.component.IPropertiesEditionComponent#getPropertiesEditionObject()
   */
  public EObject getPropertiesEditionObject(EObject source) {
    if (source instanceof Game) {
      Game gameToUpdate = (Game) source;
      gameToUpdate.getPlayers().addAll(gamePlayersPart.getPlayersToAdd());

      return gameToUpdate;
    } else return null;
  }
コード例 #2
0
 /**
  * {@inheritDoc}
  *
  * @see org.eclipse.emf.eef.runtime.api.component.IPropertiesEditionComponent#dispose()
  */
 public void dispose() {
   if (semanticAdapter != null) game.eAdapters().remove(semanticAdapter);
 }