org.eclipse.gmf.runtime.emf.core.resources
Class ResourceHelperImpl
java.lang.Object
org.eclipse.emf.common.notify.impl.AdapterImpl
org.eclipse.gmf.runtime.emf.core.resources.ResourceHelperImpl
- All Implemented Interfaces:
- Adapter, Adapter.Internal, IResourceHelper
public class ResourceHelperImpl
- extends AdapterImpl
- implements IResourceHelper
Default implementation of a resource helper, useful for subclassing.
Implements the default algorithms for the interface methods.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResourceHelperImpl
public ResourceHelperImpl()
getResource
protected Resource getResource()
- Obtains the resource that I help.
- Returns:
- my resource
isAdapterForType
public boolean isAdapterForType(java.lang.Object type)
- Specified by:
isAdapterForType
in interface Adapter
- Overrides:
isAdapterForType
in class AdapterImpl
create
public EObject create(EClass eClass)
- Default algorithm just uses the associated EFactory to instantiate the
EClass. If the resource is under the control of a transactional editing
domain, then it will be managed already by that domain before it is
attached to the resource.
- Specified by:
create
in interface IResourceHelper
- Parameters:
eClass
- the EClass
to instantiate
- Returns:
- the instance
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp., Borland Software Corp., and others 2005,2006. All rights reserved.