Пример #1
0
 /**
  * If we needed to retrieve additional mappings for the given context's scope, this will return
  * them.
  *
  * @param context The context to check for additional mappings.
  * @return The additional mappings for the given context if any, <code>null</code> otherwise.
  */
 public static ResourceMapping[] getAdditionalMappings(ISynchronizationContext context) {
   return (ResourceMapping[]) context.getCache().get(EMFModelProvider.EMF_ADDITIONAL_MAPPINGS);
 }
Пример #2
0
 /**
  * Caches the given mappings within the given synchronization context.
  *
  * @param context Context in which to cache the given additional mappings.
  * @param additionalMappings Additional mappings discovered for this context.
  */
 public static void cacheAdditionalMappings(
     ISynchronizationContext context, ResourceMapping[] additionalMappings) {
   context.getCache().put(EMFModelProvider.EMF_ADDITIONAL_MAPPINGS, additionalMappings);
 }