public class MetamodelURIMappingHelper extends Object
Modifier and Type | Method and Description |
---|---|
static Resource |
createMappingResource(IProject project) |
static IMetamodelProvider |
createMetamodelProvider(IProject project,
IMetamodelProvider delegate,
ResourceSet resourceSet) |
static MappingContainer |
createNewMappings(Resource resource) |
static IFile |
getMappingFileHandle(IProject project) |
static MappingContainer |
getMappings(Resource resource) |
static boolean |
hasMappingResource(IProject project) |
static MappingContainer |
loadMappings(IProject project) |
static EPackage.Registry |
mappingsToEPackageRegistry(IProject project,
ResourceSet resourceSet) |
static IStatus |
saveMappings(IProject project,
MappingContainer mappings,
boolean merge)
Persists the given metamodel URI mappings for the given project.
|
public static IStatus saveMappings(IProject project, MappingContainer mappings, boolean merge)
project
- the project to which to associate the mappingsmappings
- container of mappings to be persistedmerge
- indicate whether the passed mappings should be merged with
existing if any or overwrite them.IllegalArgumentException
- if project or mappings
is null
public static MappingContainer loadMappings(IProject project) throws IOException
IOException
public static boolean hasMappingResource(IProject project)
public static MappingContainer getMappings(Resource resource)
public static MappingContainer createNewMappings(Resource resource)
public static EPackage.Registry mappingsToEPackageRegistry(IProject project, ResourceSet resourceSet)
public static IMetamodelProvider createMetamodelProvider(IProject project, IMetamodelProvider delegate, ResourceSet resourceSet)
Copyright © 2008, 2018 Borland Software Corporation and others. All Rights Reserved.