blob: b04d9cf0297056d18c87211753f9dd74c0a49f88 (
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
52
53
54
55
56
57
58
59
60
|
/**
* Copyright (c) 2012 Mia-Software.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* Nicolas Bros (Mia-Software) - Bug 379683 - customizable Tree content provider
* Gregoire Dupe (Mia-Software) - Bug 386387 - [CustomizedTreeContentProvider] The TreeElements are not preserved between two calls to getElements()
*/
package org.eclipse.papyrus.emf.facet.custom.metamodel.v0_2_0.internal.treeproxy.impl;
import org.eclipse.papyrus.emf.facet.custom.metamodel.v0_2_0.internal.treeproxy.EAttributeTreeElement;
import org.eclipse.papyrus.emf.facet.custom.metamodel.v0_2_0.internal.treeproxy.EObjectTreeElement;
import org.eclipse.papyrus.emf.facet.custom.metamodel.v0_2_0.internal.treeproxy.EReferenceTreeElement;
import org.eclipse.papyrus.emf.facet.custom.metamodel.v0_2_0.internal.treeproxy.EStructuralFeatureTreeElement;
import org.eclipse.papyrus.emf.facet.custom.metamodel.v0_2_0.internal.treeproxy.TreeproxyFactory;
/**
* An implementation of the model <b>Factory</b>.
*
*/
public class TreeproxyFactoryImpl implements TreeproxyFactory {
/**
* Creates the default factory implementation.
*
*/
public static TreeproxyFactory init() {
return new TreeproxyFactoryImpl();
}
public TreeproxyFactoryImpl() {
super();
}
public EObjectTreeElement createEObjectTreeElement() {
EObjectTreeElementImpl eObjectTreeElement = new EObjectTreeElementImpl();
return eObjectTreeElement;
}
public EReferenceTreeElement createEReferenceTreeElement() {
EReferenceTreeElementImpl eReferenceTreeElement = new EReferenceTreeElementImpl();
return eReferenceTreeElement;
}
public EAttributeTreeElement createEAttributeTreeElement() {
EAttributeTreeElementImpl eAttributeTreeElement = new EAttributeTreeElementImpl();
return eAttributeTreeElement;
}
public EStructuralFeatureTreeElement createEStructuralFeatureTreeElement() {
EStructuralFeatureTreeElementImpl eStructuralFeatureTreeElement = new EStructuralFeatureTreeElementImpl();
return eStructuralFeatureTreeElement;
}
} // TreeproxyFactoryImpl
|