blob: d3df27402ca884a3204fcc64d0ef06ca975e5769 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
/*****************************************************************************
* Copyright (c) 2015 CEA LIST and others.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* CEA LIST - Initial API and implementation
*
*****************************************************************************/
package org.eclipse.papyrus.migration.rsa.transformation;
import org.eclipse.emf.ecore.resource.ResourceSet;
/**
* A ResourceSet which can optionally be "frozen". In frozen state,
* it won't load any additional resource, until {@link #unfreeze()} is called
*
* Freezing the ResourceSet may violate the EMF Contract of getResource() and should be used carefully.
*
* Use this when using eGet(EStructuralFeature, resolve = false) is not sufficient (Bug 457341 / Comment 17)
*
* @author Camille Letavernier
*
*/
public interface MigrationResourceSet extends ResourceSet {
/**
* Freeze this resource set: resources will not be demand-loaded anymore
* Resources which are already present in the workspace will still be accessible
*
* Frozen ResourceSets may violate the API Contract for {@link #getResource(org.eclipse.emf.common.util.URI, boolean)} ; use with care
*/
public void freeze();
/**
* Unfreeze this resource set: come back to a normal state
*/
public void unfreeze();
}
|