Last change
on this file since 40 was
36,
checked in by ftrautsch, 9 years ago
|
integration of decent models in crosspare
|
-
Property svn:mime-type set to
text/plain
|
File size:
1.0 KB
|
Line | |
---|
1 | package de.ugoe.cs.cpdp.decentApp; |
---|
2 | |
---|
3 | import org.eclipse.emf.ecore.EValidator; |
---|
4 | import org.eclipse.emf.ecore.util.EObjectValidator; |
---|
5 | |
---|
6 | import de.ugoe.cs.cpdp.decentApp.models.decent.DECENTPackage; |
---|
7 | import de.ugoe.cs.cpdp.decentApp.models.decent.impl.DECENTPackageImpl; |
---|
8 | import de.ugoe.cs.cpdp.decentApp.models.decent.util.DECENTResourceFactoryImpl; |
---|
9 | |
---|
10 | /** |
---|
11 | * Class for handling decent model files |
---|
12 | * |
---|
13 | * @author Philip Makedonski, Fabian Trautsch |
---|
14 | * |
---|
15 | */ |
---|
16 | public class DECENTResourceTool extends ResourceTool { |
---|
17 | |
---|
18 | /** |
---|
19 | * Initializes the Tool Factory, from which the models can be loaded and |
---|
20 | * inizializes the validator. |
---|
21 | */ |
---|
22 | public DECENTResourceTool(){ |
---|
23 | super(DECENTResourceTool.class.getName()); |
---|
24 | DECENTPackageImpl.init(); |
---|
25 | this.resourceFactory = new DECENTResourceFactoryImpl(); |
---|
26 | initializeValidator(); |
---|
27 | } |
---|
28 | |
---|
29 | /** |
---|
30 | * Inizializes the model validator |
---|
31 | */ |
---|
32 | @Override |
---|
33 | protected void initializeValidator(){ |
---|
34 | super.initializeValidator(); |
---|
35 | EObjectValidator validator = new EObjectValidator(); |
---|
36 | EValidator.Registry.INSTANCE.put(DECENTPackage.eINSTANCE, validator); |
---|
37 | } |
---|
38 | |
---|
39 | |
---|
40 | |
---|
41 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.