blob: 2b05c5c4b7854d94ebb2c378608ee700eb39bad4 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2003, 2004 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.wst.common.internal.emfworkbench.integration;
import org.eclipse.wst.common.internal.emfworkbench.EMFWorkbenchContext;
/**
* @author Administrator
*/
public class LooseComposedEditModel extends ComposedEditModel {
public LooseComposedEditModel(String editModelID, EMFWorkbenchContext context) {
super(editModelID, context);
}
public EditModel.Reference addChild(EditModel editModel) {
getChildren().add(editModel);
Reference ref = editModel.getReference();
getChildrenMap().put(ref, editModel);
return ref;
}
public void removeChild(EditModel editModel) {
getChildren().remove(editModel);
getChildrenMap().remove(editModel.getReference());
}
}