edu.cmu.sei.aadl.modelsupport.eclipseinterface
Class OsateResourceManager

java.lang.Object
  extended by edu.cmu.sei.aadl.modelsupport.eclipseinterface.OsateResourceManager

public class OsateResourceManager
extends java.lang.Object

static utility methods for handling models as persistent resources

Version:
$Id: OsateResourceManager.java,v 1.17 2009-07-09 19:23:11 jseibel Exp $
Author:
phf

Field Summary
static GlobalNamespace GLOBAL_NAMESPACE
          Reference to the global namespace singleton for OSATE.
static java.util.Map<java.lang.Object,java.lang.Object> LOAD_OPTIONS
           
static java.lang.String PLUGIN_RESOURCES_DIRECTORY_NAME
           
protected static OsateResourceSet resourceSet
          The resource set to be used for all aaxl resources with cross references to each other This means all packages stored as separate files, as well as graphic file for an Aadl model
static java.util.Map<java.lang.Object,java.lang.Object> SAVE_OPTIONS
           
 
Constructor Summary
OsateResourceManager()
           
 
Method Summary
static void clearJustParsed()
          Clear all the "just parsed" flags.
static boolean containsIResourceByPath(java.util.Collection iresset, org.eclipse.core.resources.IResource matchIRes)
           
static boolean containsModelTaggedWithSyntaxErrors(org.eclipse.core.resources.IResource ires)
          check whether the ires IResource is tagged with syntax errors i.e., its corresponding aadl text file has syntax errors
static org.eclipse.core.resources.IResource convertToIResource(org.eclipse.emf.ecore.resource.Resource res)
          converts Resource into corresponding IResource without use of registry.
static void deleteComplementFile(org.eclipse.core.resources.IFile deletedfile)
          delete the complement file for the given deleted file
static void deleteComplementFileIfGenerated(org.eclipse.core.resources.IFile deletedfile)
          delete the complement file for the given deleted file if the complement is a derived file
static void deleteComplementFolder(org.eclipse.core.resources.IFolder deletedfolder)
          delete the complement file for the given deleted file
static void deleteFile(org.eclipse.core.resources.IFile model)
          Delete the given file.
static void doPropagateModelChange(org.eclipse.emf.ecore.resource.Resource origres)
          make resources as modified if their model objects point to the any object in the given model (resource)
static void doPropagateNameChange(Element obj)
          make resources as modified if their model objects point to the named object
static NamedElement findPackageOrPropertySet(java.lang.String name)
          Find an AadlPackage or a PropertySet in the resource set.
static PrivatePackageSection findPrivatePackageSection(java.lang.String name)
          Find a PrivatePackageSection in the resource set.
static Property findProperty(java.lang.String propertyName)
          Find a predeclared AADL property definition by name.
static Property findProperty(java.lang.String propertySet, java.lang.String propertyName)
          Find an AADL property definition by name.
static PropertyConstant findPropertyConstant(java.lang.String propertyName)
          Find an AADL property constant by name.
static PropertyConstant findPropertyConstant(java.lang.String propertySet, java.lang.String propertyName)
           
static PropertySet findPropertySet(java.lang.String name)
           
static PropertyType findPropertyType(java.lang.String typeName)
          Find a predeclared AADL property type by name.
static PropertyType findPropertyType(java.lang.String propertySet, java.lang.String propertyName)
           
static AadlPackage findPublicAadlPackage(java.lang.String pn, Element context)
          Find an AADL package by name in in the local aadlspec, a resource in the resource set or workspace.
static AadlPackage findPublicAadlPackageInResourceSet(java.lang.String pn)
          find public package in resource set.
static PublicPackageSection findPublicPackageSection(java.lang.String name)
          Find a PublicPackageSection in the resource set.
static org.eclipse.emf.ecore.resource.Resource findResource(java.lang.String name)
          Find the resource for given name in resource set This is done by comparing the name with the name in the root object of a CoreResourceImpl
static org.eclipse.emf.ecore.resource.Resource findResource(org.eclipse.emf.common.util.URI uri)
          Find the resource for given URI, but do not demand load
static void forceLoadResource(org.eclipse.emf.common.util.URI uri)
          force the loading of a resource identified by the uri.
static AadlPackage getAadlPackage(org.eclipse.emf.ecore.resource.Resource res)
          If the resource contains a package declaration only, then it is returned.
static java.util.Set<org.eclipse.emf.ecore.resource.Resource> getAllOtherResources(org.eclipse.emf.ecore.resource.Resource res)
          Get all resources in the resource set except res or standard property sets
static java.util.Set<Aadl2ResourceImpl> getAllParsedResources()
          Get all resources in the resource set that have just been parsed.
static java.util.Set<PropertySet> getAllPropertySets()
          Get all the global property sets in the resource set.
static java.util.Set<AadlPackage> getAllPublicPackages()
          Get all the global public packages in the resource set.
static java.util.Set<AadlPackage> getAllPublicPackages(Element context)
          Get all the property sets visible to the given model element.
static Element getElementFromIResource(org.eclipse.core.resources.IResource ires)
          Given an IResource, returns the root Element of the contains aadl meta model, if the resource contains one.
static org.eclipse.emf.ecore.resource.Resource getEmptyResource(org.eclipse.emf.common.util.URI uri)
          creates a Resource for file name with path within Eclipse If it exists, it will empty its content.
static org.eclipse.core.resources.IResource getIResource(org.eclipse.core.runtime.IPath path)
          return the IResource of the given path
static org.eclipse.core.runtime.IPath getOsatePath(org.eclipse.emf.common.util.URI resourceURI)
          return the IPath for the path.
static java.util.List<PropertySet> getPredeclaredPropertySets()
           
static PropertySet getPropertySet(org.eclipse.emf.ecore.resource.Resource res)
          Return the property set as the single root of this file.
static AadlPackage getPublicAadlPackage(org.eclipse.emf.ecore.resource.Resource res)
          return the AadlPackage if it has a public part.
static org.eclipse.emf.ecore.resource.Resource getResource(org.eclipse.core.resources.IResource ires)
          gets Resource for given IResource.
static org.eclipse.emf.ecore.resource.Resource getResource(org.eclipse.emf.common.util.URI uri)
          gets Resource for given URI.
static OsateResourceSet getResourceSet()
          Get the resource set shared by a collection of Aaxl, aagl files if it has not been initialized, this method will initialize it.
static boolean isAadlXMLResource(org.eclipse.core.resources.IResource ires)
          is the file an XML file of an Aadl model.
static boolean isModelTaggedWithSyntaxErrors(org.eclipse.emf.ecore.EObject model)
          check whether the IResource of the model Resource is tagged with syntax errors i.e., its corresponding aadl text file has syntax errors
static boolean isModelTaggedWithSyntaxErrors(org.eclipse.core.resources.IResource modelfile)
          check whether the model IResource is tagged with syntax errors i.e., its corresponding aadl text file has syntax errors
static boolean isModelTaggedWithSyntaxErrors(org.eclipse.emf.ecore.resource.Resource model)
          check whether the IResource of the model Resource is tagged with syntax errors i.e., its corresponding aadl text file has syntax errors
static boolean isNewerThan(org.eclipse.emf.ecore.resource.Resource a, org.eclipse.emf.ecore.resource.Resource b)
          compare modification date of a to b based on LocalTimeStamp
static boolean isPredeclaredResource(org.eclipse.emf.ecore.resource.Resource r)
           
static void load(org.eclipse.emf.ecore.resource.Resource res)
          load resource
static void loadPluginContributedAadl()
           
static org.eclipse.emf.ecore.resource.Resource loadResource(org.eclipse.emf.common.util.URI uri)
          gets Resource for given URI. returns null if it does not exist or load failed
static void populateResourceSet()
          add all model files in workspace into resourceset.
static void populateResourceSet(java.util.List<? extends org.eclipse.core.resources.IFile> files)
          add all model files into resourceset.
static void printResourceSet()
           
static void reload(org.eclipse.emf.ecore.resource.Resource res)
          load resource
static void removeResource(org.eclipse.core.resources.IResource ires)
          Unload and remove from the resource set the Resource associated with the given IResource.
static void removeResource(org.eclipse.emf.ecore.resource.Resource res)
          Unload and remove from the resource set the given Resource.
static void removeResources()
          removes the resources from the resourceset Does unload resources from resourceset
static void revertToContributed(org.eclipse.core.resources.IFile contributedResourceInWorkspace)
           
protected static void run(java.util.List<? extends org.eclipse.core.resources.IFile> files, org.eclipse.core.runtime.IProgressMonitor monitor)
          add all model files in workspace into resourceset.
static void save(org.eclipse.emf.ecore.resource.Resource res)
          save the resource as aaxl file Called by the editors.
static void saveAllParsed()
          Save all resources in the resource set that have been parsed.
static void saveAsDerived(org.eclipse.emf.ecore.resource.Resource res)
          save resource as derived file. to be called by parser.
static void tagModelWithSyntaxErrors(org.eclipse.emf.ecore.resource.Resource model)
          tag the IResource of the model Resource is tagged with syntax errors i.e., its corresponding aadl text file has syntax errors It is also touched to make sure it has a newer date than the text.
static void untagModelWithSyntaxErrors(org.eclipse.emf.ecore.resource.Resource model)
          untag the IResource of the model Resource is tagged with syntax errors i.e., its corresponding aadl text file has syntax errors
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GLOBAL_NAMESPACE

public static final GlobalNamespace GLOBAL_NAMESPACE
Reference to the global namespace singleton for OSATE.


PLUGIN_RESOURCES_DIRECTORY_NAME

public static final java.lang.String PLUGIN_RESOURCES_DIRECTORY_NAME
See Also:
Constant Field Values

resourceSet

protected static OsateResourceSet resourceSet
The resource set to be used for all aaxl resources with cross references to each other This means all packages stored as separate files, as well as graphic file for an Aadl model


LOAD_OPTIONS

public static final java.util.Map<java.lang.Object,java.lang.Object> LOAD_OPTIONS

SAVE_OPTIONS

public static final java.util.Map<java.lang.Object,java.lang.Object> SAVE_OPTIONS
Constructor Detail

OsateResourceManager

public OsateResourceManager()
Method Detail

getResourceSet

public static OsateResourceSet getResourceSet()
Get the resource set shared by a collection of Aaxl, aagl files if it has not been initialized, this method will initialize it.

Returns:
ResourceSet

printResourceSet

public static void printResourceSet()

removeResources

public static void removeResources()
removes the resources from the resourceset Does unload resources from resourceset


removeResource

public static void removeResource(org.eclipse.core.resources.IResource ires)
Unload and remove from the resource set the Resource associated with the given IResource.

Parameters:
ires -

removeResource

public static void removeResource(org.eclipse.emf.ecore.resource.Resource res)
Unload and remove from the resource set the given Resource. If the Resource is not part of the resource set no action is taken (i.e., it is not unloaded).


populateResourceSet

public static void populateResourceSet()
add all model files in workspace into resourceset. If they are already in the resource set. force their reload.


populateResourceSet

public static void populateResourceSet(java.util.List<? extends org.eclipse.core.resources.IFile> files)
add all model files into resourceset. If they are already in the resource set. force their reload.

Parameters:
files -

forceLoadResource

public static void forceLoadResource(org.eclipse.emf.common.util.URI uri)
force the loading of a resource identified by the uri. Reload if it was already loaded, but not if just saved.

Parameters:
uri -

run

protected static void run(java.util.List<? extends org.eclipse.core.resources.IFile> files,
                          org.eclipse.core.runtime.IProgressMonitor monitor)
add all model files in workspace into resourceset.


load

public static void load(org.eclipse.emf.ecore.resource.Resource res)
load resource

Parameters:
res - resource

reload

public static void reload(org.eclipse.emf.ecore.resource.Resource res)
load resource

Parameters:
res - resource

save

public static void save(org.eclipse.emf.ecore.resource.Resource res)
save the resource as aaxl file Called by the editors. Will propagate the model change to update references.

Parameters:
res - Resource

convertToIResource

public static org.eclipse.core.resources.IResource convertToIResource(org.eclipse.emf.ecore.resource.Resource res)
converts Resource into corresponding IResource without use of registry.

Parameters:
res - Resource
Returns:
IResource

getIResource

public static org.eclipse.core.resources.IResource getIResource(org.eclipse.core.runtime.IPath path)
return the IResource of the given path

Parameters:
path -
Returns:
IResource

getResource

public static org.eclipse.emf.ecore.resource.Resource getResource(org.eclipse.core.resources.IResource ires)
gets Resource for given IResource. Will create the resource if it does not exist

Parameters:
ires - IResource
Returns:
Resource

getResource

public static org.eclipse.emf.ecore.resource.Resource getResource(org.eclipse.emf.common.util.URI uri)
gets Resource for given URI. Will create the resource if it does not exist

Parameters:
uri - URI
Returns:
Resource

loadResource

public static org.eclipse.emf.ecore.resource.Resource loadResource(org.eclipse.emf.common.util.URI uri)
gets Resource for given URI. returns null if it does not exist or load failed

Parameters:
uri - URI
Returns:
Resource

findResource

public static org.eclipse.emf.ecore.resource.Resource findResource(org.eclipse.emf.common.util.URI uri)
Find the resource for given URI, but do not demand load

Parameters:
uri - URI
Returns:
Resource, null if it is not in the resource set.

findResource

public static org.eclipse.emf.ecore.resource.Resource findResource(java.lang.String name)
Find the resource for given name in resource set This is done by comparing the name with the name in the root object of a CoreResourceImpl

Parameters:
name - String
Returns:
Resource, null if it is not in the resource set.

getEmptyResource

public static org.eclipse.emf.ecore.resource.Resource getEmptyResource(org.eclipse.emf.common.util.URI uri)
creates a Resource for file name with path within Eclipse If it exists, it will empty its content.

Parameters:
uri - uri
Returns:
Resource

getOsatePath

public static org.eclipse.core.runtime.IPath getOsatePath(org.eclipse.emf.common.util.URI resourceURI)
return the IPath for the path. Strips the leading "resource" as necessary

Parameters:
resourceURI - The URI of the Resource
Returns:
IPath to the file identified by the URI
Throws:
java.lang.IllegalArgumentException - Thrown if the URI is does not use the "platform:" protocol.

isAadlXMLResource

public static boolean isAadlXMLResource(org.eclipse.core.resources.IResource ires)
is the file an XML file of an Aadl model. Currently checks for extension "aaxl"

Parameters:
ires -

getElementFromIResource

public static Element getElementFromIResource(org.eclipse.core.resources.IResource ires)
Given an IResource, returns the root Element of the contains aadl meta model, if the resource contains one. Returns null otherwise.


getPropertySet

public static PropertySet getPropertySet(org.eclipse.emf.ecore.resource.Resource res)
Return the property set as the single root of this file. The property set must be the root itself. If the root object is not a property set or there is no root, then null is returned.

Parameters:
res - Resource to hold PropertySet
Returns:
PropertySet or null

findProperty

public static Property findProperty(java.lang.String propertySet,
                                    java.lang.String propertyName)
Find an AADL property definition by name.

Parameters:
propertySet - The name of the property set in which to look for the property definition.
propertyName - The name of the property to look for
context - The model object on whose behalf this lookup is being performed. For example, this could be the AadlSpec of the model being analyzed. Or it could be the object whose property values are of interest. See #findPropertySet(String, Element)
Returns:
The edu.cmu.sei.aadl.model.property.PropertyDefinitionof the given property if found, or null if the property definition cannot be found. The property might not be found if either the property set does not exist, or if the property is not found in the given property set.

findProperty

public static Property findProperty(java.lang.String propertyName)
Find a predeclared AADL property definition by name.

Parameters:
propertyName - The name of the property to look for
Returns:
The Property of the given property if found, or null if the property definition cannot be found. The property might not be found if either the property set does not exist, or if the property is not found in the given property set.

findPropertyConstant

public static PropertyConstant findPropertyConstant(java.lang.String propertyName)
Find an AADL property constant by name.

Parameters:
propertySet - The name of the property set in which to look for the property constant.
constantName - The name of the constant to look for
context - The model object on whose behalf this lookup is being performed. For example, this could be the AadlSpec of the model being analyzed. Or it could be the object whose property values are of interest. See #findPropertySet(String, Element)
Returns:
The edu.cmu.sei.aadl.model.property.PropertyConstantof the given constant if found, or null if the property constant cannot be found. The constant might not be found if either the property set does not exist, or if the constant is not found in the given property set.

findPropertyConstant

public static PropertyConstant findPropertyConstant(java.lang.String propertySet,
                                                    java.lang.String propertyName)

findPropertyType

public static PropertyType findPropertyType(java.lang.String typeName)
Find a predeclared AADL property type by name.

Parameters:
typeName - The name of the type to look for
Returns:
The edu.cmu.sei.aadl.model.property.PropertyTypeof the given type if found, or null if the property type cannot be found. The type might not be found if either the property set does not exist, or if the type is not found in the given property set.

findPropertyType

public static PropertyType findPropertyType(java.lang.String propertySet,
                                            java.lang.String propertyName)

getAllPropertySets

public static java.util.Set<PropertySet> getAllPropertySets()
Get all the global property sets in the resource set.

Returns:
Set of PropertySetobjects.

getAllPublicPackages

public static java.util.Set<AadlPackage> getAllPublicPackages()
Get all the global public packages in the resource set.

Returns:
Set of Public Packages.

getAllPublicPackages

public static java.util.Set<AadlPackage> getAllPublicPackages(Element context)
Get all the property sets visible to the given model element. If the given element is null, only the global property sets are returned. If the given element is not null, then any locally declared property sets in the model object's name space (see #findPropertySet(String, Element)) are also returned, and they shadow any globally declared property sets with the same name.

Parameters:
context - The model object on whose behalf this lookup is being performed. For example, this could be the AadlSpec of the model being analyzed. Or it could be the object whose property values are of interest. See #findPropertySet(String, Element)

findPublicAadlPackage

public static AadlPackage findPublicAadlPackage(java.lang.String pn,
                                                Element context)
Find an AADL package by name in in the local aadlspec, a resource in the resource set or workspace. The package must have a public part.

Parameters:
pn - string property set name
context - AObject whose root object may provide a local context for package lookup
Returns:
AadlPackage to the package, null if not found.

findPublicAadlPackageInResourceSet

public static AadlPackage findPublicAadlPackageInResourceSet(java.lang.String pn)
find public package in resource set.

Parameters:
pn - package name in AADL syntax
Returns:
AadlPackage or null

getPublicAadlPackage

public static AadlPackage getPublicAadlPackage(org.eclipse.emf.ecore.resource.Resource res)
return the AadlPackage if it has a public part. The AadlPackage may be the root itself or the single element of the AadlSpec

Parameters:
res - Resource to hold AadlPackage
Returns:
AadlPackage or null

getAadlPackage

public static AadlPackage getAadlPackage(org.eclipse.emf.ecore.resource.Resource res)
If the resource contains a package declaration only, then it is returned. The package can have public, private, or both public and private parts.


getAllParsedResources

public static java.util.Set<Aadl2ResourceImpl> getAllParsedResources()
Get all resources in the resource set that have just been parsed.

Returns:
Set of Resource objects.

clearJustParsed

public static void clearJustParsed()
Clear all the "just parsed" flags.


saveAllParsed

public static void saveAllParsed()
Save all resources in the resource set that have been parsed. They are saved and marked as derived.


saveAsDerived

public static void saveAsDerived(org.eclipse.emf.ecore.resource.Resource res)
save resource as derived file. to be called by parser.

Parameters:
res -

containsIResourceByPath

public static boolean containsIResourceByPath(java.util.Collection iresset,
                                              org.eclipse.core.resources.IResource matchIRes)

tagModelWithSyntaxErrors

public static void tagModelWithSyntaxErrors(org.eclipse.emf.ecore.resource.Resource model)
tag the IResource of the model Resource is tagged with syntax errors i.e., its corresponding aadl text file has syntax errors It is also touched to make sure it has a newer date than the text.

Parameters:
model - Resource of aaxl model

untagModelWithSyntaxErrors

public static void untagModelWithSyntaxErrors(org.eclipse.emf.ecore.resource.Resource model)
untag the IResource of the model Resource is tagged with syntax errors i.e., its corresponding aadl text file has syntax errors

Parameters:
model - Resource of aaxl model

isModelTaggedWithSyntaxErrors

public static boolean isModelTaggedWithSyntaxErrors(org.eclipse.emf.ecore.EObject model)
check whether the IResource of the model Resource is tagged with syntax errors i.e., its corresponding aadl text file has syntax errors

Parameters:
model - any EObject in the model
Returns:
true if its resource is tagged as its aadl text equivalent having syntax errors

isModelTaggedWithSyntaxErrors

public static boolean isModelTaggedWithSyntaxErrors(org.eclipse.emf.ecore.resource.Resource model)
check whether the IResource of the model Resource is tagged with syntax errors i.e., its corresponding aadl text file has syntax errors

Parameters:
model - Resource of aaxl model
Returns:
true if it is tagged as its aadl text equivalent having syntax errors

isModelTaggedWithSyntaxErrors

public static boolean isModelTaggedWithSyntaxErrors(org.eclipse.core.resources.IResource modelfile)
check whether the model IResource is tagged with syntax errors i.e., its corresponding aadl text file has syntax errors

Parameters:
modelfile - aaxl file
Returns:
true if it is tagged as its aadl text equivalent having syntax errors

containsModelTaggedWithSyntaxErrors

public static boolean containsModelTaggedWithSyntaxErrors(org.eclipse.core.resources.IResource ires)
check whether the ires IResource is tagged with syntax errors i.e., its corresponding aadl text file has syntax errors

Parameters:
ires - project, folder, or IResource
Returns:
true if it contains a IResource that is tagged as its aadl text equivalent having syntax errors

getAllOtherResources

public static java.util.Set<org.eclipse.emf.ecore.resource.Resource> getAllOtherResources(org.eclipse.emf.ecore.resource.Resource res)
Get all resources in the resource set except res or standard property sets

Parameters:
res - resoruce to be excluded
Returns:
Set of Resource objects.

loadPluginContributedAadl

public static void loadPluginContributedAadl()

revertToContributed

public static void revertToContributed(org.eclipse.core.resources.IFile contributedResourceInWorkspace)
                                throws java.io.IOException,
                                       org.eclipse.core.runtime.CoreException
Throws:
java.io.IOException
org.eclipse.core.runtime.CoreException

isPredeclaredResource

public static boolean isPredeclaredResource(org.eclipse.emf.ecore.resource.Resource r)

deleteComplementFileIfGenerated

public static void deleteComplementFileIfGenerated(org.eclipse.core.resources.IFile deletedfile)
delete the complement file for the given deleted file if the complement is a derived file

Parameters:
deletedfile -

deleteComplementFile

public static void deleteComplementFile(org.eclipse.core.resources.IFile deletedfile)
delete the complement file for the given deleted file

Parameters:
deletedfile -

deleteComplementFolder

public static void deleteComplementFolder(org.eclipse.core.resources.IFolder deletedfolder)
delete the complement file for the given deleted file

Parameters:
deletedfolder -

deleteFile

public static void deleteFile(org.eclipse.core.resources.IFile model)
Delete the given file.


doPropagateModelChange

public static void doPropagateModelChange(org.eclipse.emf.ecore.resource.Resource origres)
make resources as modified if their model objects point to the any object in the given model (resource)

Parameters:
obj -

doPropagateNameChange

public static void doPropagateNameChange(Element obj)
make resources as modified if their model objects point to the named object

Parameters:
obj -

findPublicPackageSection

public static PublicPackageSection findPublicPackageSection(java.lang.String name)
Find a PublicPackageSection in the resource set. The name of a PublicPackageSection is the same as the name of its containing AadlPackage. Returns null if a PublicPackageSection with the specified name cannot be found.

Parameters:
name - The name of the AadlPackage and PublicPackageSection to search for.
Returns:
The specified PublicPackageSection or null if it cannot be found.

findPrivatePackageSection

public static PrivatePackageSection findPrivatePackageSection(java.lang.String name)
Find a PrivatePackageSection in the resource set. The name of a PrivatePackageSection is the same as the name of its containing AadlPackage. Returns null if a PrivatePackageSection with the specified name cannot be found.

Parameters:
name - The name of the AadlPackage and PrivatePackageSection to search for.
Returns:
The specified PrivatePackageSection or null if it cannot be found.

findPackageOrPropertySet

public static NamedElement findPackageOrPropertySet(java.lang.String name)
Find an AadlPackage or a PropertySet in the resource set. Returns null if an AadlPackage or a PropertySet with the specified name cannot be found.

Parameters:
name - The name of the AadlPackage or PropertySet to search for.
Returns:
The specified AadlPackage or PropertySet or null if it cannot be found.

findPropertySet

public static PropertySet findPropertySet(java.lang.String name)

getPredeclaredPropertySets

public static java.util.List<PropertySet> getPredeclaredPropertySets()

isNewerThan

public static boolean isNewerThan(org.eclipse.emf.ecore.resource.Resource a,
                                  org.eclipse.emf.ecore.resource.Resource b)
compare modification date of a to b based on LocalTimeStamp

Parameters:
res - Resource to be compared against
Returns:
true if a is newer than b