1 /** 2 * Copyright (c) 2010, 2015 BestSolution.at and others. 3 * 4 * This program and the accompanying materials 5 * are made available under the terms of the Eclipse Public License 2.0 6 * which accompanies this distribution, and is available at 7 * https://www.eclipse.org/legal/epl-2.0/ 8 * 9 * SPDX-License-Identifier: EPL-2.0 10 * 11 * Contributors: 12 * Tom Schindl <tom.schindl@bestsolution.at> - initial API and implementation 13 * IBM Corporation - initial API and implementation 14 * Steven Spungin <steven@spungin.tv> - Bug 463223 15 */ 16 package org.eclipse.e4.ui.model.fragment; 17 18 import java.util.List; 19 import org.eclipse.e4.ui.model.application.MApplication; 20 import org.eclipse.e4.ui.model.application.MApplicationElement; 21 22 /** 23 * <!-- begin-user-doc --> 24 * A representation of the model object '<em><b>Model Fragment</b></em>'. 25 * <!-- end-user-doc --> 26 * 27 * <!-- begin-model-doc --> 28 * <p> 29 * <strong>Developers</strong>: 30 * Add more detailed documentation by editing this comment in 31 * /org.eclipse.e4.ui.model.workbench/model/ModelFragment.ecore. 32 * There is a GenModel/documentation node under each type and attribute. 33 * </p> 34 * @since 1.0 35 * <!-- end-model-doc --> 36 * 37 * <p> 38 * The following features are supported: 39 * </p> 40 * <ul> 41 * <li>{@link org.eclipse.e4.ui.model.fragment.MModelFragment#getElements <em>Elements</em>}</li> 42 * </ul> 43 * 44 * @model abstract="true" 45 * @generated 46 */ 47 public interface MModelFragment { 48 /** 49 * Returns the value of the '<em><b>Elements</b></em>' containment reference list. 50 * The list contents are of type {@link org.eclipse.e4.ui.model.application.MApplicationElement}. 51 * <!-- begin-user-doc --> 52 * <!-- end-user-doc --> 53 * <!-- begin-model-doc --> 54 * <p> 55 * <strong>Developers</strong>: 56 * Add more detailed documentation by editing this comment in 57 * /org.eclipse.e4.ui.model.workbench/model/ModelFragment.ecore. 58 * There is a GenModel/documentation node under each type and attribute. 59 * </p> 60 * <!-- end-model-doc --> 61 * @return the value of the '<em>Elements</em>' containment reference list. 62 * @model containment="true" 63 * @generated 64 */ getElements()65 List<MApplicationElement> getElements(); 66 67 /** 68 * <!-- begin-user-doc --> 69 * Merges this MModelFragment into an MApplication. 70 * @param application The MApplication to merge into. Must not be null. 71 * @return A list of MApplicationElements that were added to the MApplication. Must not be null. 72 * <!-- end-user-doc --> 73 * <!-- begin-model-doc --> 74 * <p> 75 * <strong>Developers</strong>: 76 * Add more detailed documentation by editing this comment in 77 * /org.eclipse.e4.ui.model.workbench/model/ModelFragment.ecore. 78 * There is a GenModel/documentation node under each type and attribute. 79 * </p> 80 * <!-- end-model-doc --> 81 * @model 82 * @generated 83 */ merge(MApplication application)84 List<MApplicationElement> merge(MApplication application); 85 86 } // MModelFragment 87