blob: d64cb69a56a6859b4a60b41026a3887959c9d67b (
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
44
45
46
47
48
49
50
51
|
/***********************************************************************
* Copyright (c) 2007-2009 Anyware Technologies, Obeo
*
* 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:
* Anyware Technologies - initial API and implementation
* Obeo
*
**********************************************************************/
package org.eclipse.papyrus.navigator.internal;
import java.util.List;
import org.eclipse.emf.ecore.resource.Resource;
import org.eclipse.papyrus.infra.core.utils.DiResourceSet;
/**
* This object computes all the loaded resources from a resource set. <br>
*
* @author <a href="mailto:david.sciamma@anyware-tech.com">David Sciamma</a>
* @author <a href="mailto:jacques.lescot@anyware-tech.com">Jacques Lescot</a>
* @author <a href="mailto:jerome.benois@obeo.fr">Jerome Benois</a>
* @author <a href="mailto:thomas.szadel@atosorigin.com">Thomas Szadel</a>
*/
public class AdditionalResources {
private DiResourceSet diResourceSet;
/**
* Constructor
*
* @param rSet
* the ResourceSet to be used to load these Additional Resources
*/
public AdditionalResources(DiResourceSet diResourceSet) {
this.diResourceSet = diResourceSet;
}
/**
* Returns all the resources without the DI and the domain resources
*
* @return the list of additional resources
*/
public List<Resource> getResources() {
return diResourceSet.getAdditionalResources();
}
}
|