blob: 1b918cb2d76a3f71e0a9676f5cf9cbf6f75eda47 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2018 Agence spatiale canadienne / Canadian Space Agency
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Pierre Allard,
* Regent L'Archeveque,
* Sebastien Gemme - initial API and implementation
*
* SPDX-License-Identifier: EPL-1.0
*
*******************************************************************************/
package org.eclipse.apogy.common.topology.impl;
import org.eclipse.apogy.common.topology.ApogyCommonTopologyPackage;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.ecore.impl.ENotificationImpl;
public class AggregateContentNodeCustomImpl<T> extends AggregateContentNodeImpl<T> {
public T basicGetContent() {
return getAggregateContent();
}
@Override
public void setContent(T newContent) {
T oldContent = getContent();
setAggregateContent(newContent);
eNotify(new ENotificationImpl(this, Notification.SET, ApogyCommonTopologyPackage.CONTENT_NODE__CONTENT,
oldContent, newContent));
}
@Override
public T getContent() {
return getAggregateContent();
}
} // AggregateContentNodeImpl