/** * {@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; }
/** * {@inheritDoc} * * @see org.eclipse.emf.eef.runtime.api.component.IPropertiesEditionComponent#dispose() */ public void dispose() { if (semanticAdapter != null) game.eAdapters().remove(semanticAdapter); }