public static class UMLUtil.ProfileApplicationHelper
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static UMLUtil.ProfileApplicationHelper |
INSTANCE
Deprecated.
Since the 5.1 release, direct reliance on this shared
helper instance is deprecated. Instead, use the
getInstance(Notifier) method to obtain a helper
specific to the particular model context |
Constructor and Description |
---|
ProfileApplicationHelper() |
Modifier and Type | Method and Description |
---|---|
static UMLUtil.ProfileApplicationHelper |
getInstance(org.eclipse.emf.common.notify.Notifier context)
Obtains the most appropriate
UMLUtil.ProfileApplicationHelper
instance for managing profile applications in the given
context . |
java.lang.Iterable<Package> |
getOtherApplyingPackages(Package package_) |
static UMLUtil.ProfileApplicationHelper |
setInstance(org.eclipse.emf.ecore.resource.ResourceSet resourceSet,
UMLUtil.ProfileApplicationHelper instance)
Assigns a particular helper
instance for management of
profile applications in the scope of a resource set. |
@Deprecated public static final UMLUtil.ProfileApplicationHelper INSTANCE
getInstance(Notifier)
method to obtain a helper
specific to the particular model contextpublic static UMLUtil.ProfileApplicationHelper getInstance(org.eclipse.emf.common.notify.Notifier context)
UMLUtil.ProfileApplicationHelper
instance for managing profile applications in the given
context
. This helper should always be preferred over using
the default INSTANCE
.context
- a ResourceSet
, Resource
, or
EObject
in the context of which the caller is
working with profile applicationsResourceSet
if
there is such reachable from the context
, or else the
default INSTANCE
. The result is never null
public static UMLUtil.ProfileApplicationHelper setInstance(org.eclipse.emf.ecore.resource.ResourceSet resourceSet, UMLUtil.ProfileApplicationHelper instance)
instance
for management of
profile applications in the scope of a resource set. This supersedes
the default INSTANCE
for all profile-application operations
on packages in the resource set.resourceSet
- a resource set. Must not be null
instance
- a profile application helper to assign. Must not be
null
. May be the default INSTANCE
INSTANCE
if no
specific helper was assigned