1 /** 2 * <copyright> 3 * 4 * Copyright (c) 2002-2004 IBM Corporation and others. 5 * All rights reserved. This program and the accompanying materials 6 * are made available under the terms of the Eclipse Public License v1.0 7 * which accompanies this distribution, and is available at 8 * http://www.eclipse.org/legal/epl-v10.html 9 * 10 * Contributors: 11 * IBM - Initial API and implementation 12 * 13 * </copyright> 14 * 15 * $Id: ComposeableAdapterFactory.java,v 1.2 2005/06/08 06:17:05 nickb Exp $ 16 */ 17 package org.eclipse.emf.edit.provider; 18 19 20 import org.eclipse.emf.common.notify.AdapterFactory; 21 22 23 /** 24 * This provides support that allows a factory to be composed into a {@link ComposedAdapterFactory} 25 * that serves the union of the model objects from different packages. 26 */ 27 public interface ComposeableAdapterFactory extends AdapterFactory 28 { 29 /** 30 * This convenience method returns the first adapter factory that doesn't have a parent, i.e., the root. 31 */ 32 public ComposeableAdapterFactory getRootAdapterFactory(); 33 34 /** 35 * This sets the direct parent adapter factory into which this factory is composed. 36 */ 37 public void setParentAdapterFactory(ComposedAdapterFactory parentAdapterFactory); 38 } 39