KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > emf > edit > domain > IEditingDomainProvider


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  */

16 package org.eclipse.emf.edit.domain;
17
18
19
20 /**
21  * This is the interface specified by an object that is able to yield its {@link EditingDomain}.
22  * See {@link AdapterFactoryEditingDomain#getEditingDomainFor AdapterFactoryEditingDomain.getEditingDomainFor}
23  * for one use of this.
24  */

25 public interface IEditingDomainProvider
26 {
27   /**
28    * This returns the editing domain.
29    * A typical usage is
30    * <pre>
31    * ((IEditingDomainProvider)((EObject)object).eResource().getResourceSet()).getEditingDomain();
32    * </pre>
33    */

34   public EditingDomain getEditingDomain();
35 }
36
Popular Tags