Last change
on this file since 39 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:
988 bytes
|
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.arffx.ARFFxPackage; |
---|
7 | import de.ugoe.cs.cpdp.decentApp.models.arffx.impl.ARFFxPackageImpl; |
---|
8 | |
---|
9 | /** |
---|
10 | * Class for handling arffx model files |
---|
11 | * |
---|
12 | * @author Philip Makedonski, Fabian Trautsch |
---|
13 | * |
---|
14 | */ |
---|
15 | public class ARFFxResourceTool extends ResourceTool { |
---|
16 | |
---|
17 | /** |
---|
18 | * Initializes the Tool Factory, from which the models can be loaded and |
---|
19 | * inizializes the validator. |
---|
20 | */ |
---|
21 | public ARFFxResourceTool(){ |
---|
22 | super(ARFFxResourceTool.class.getName()); |
---|
23 | ARFFxPackageImpl.init(); |
---|
24 | |
---|
25 | // Commented, because simulation has problems with this |
---|
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(ARFFxPackage.eINSTANCE, validator); |
---|
37 | } |
---|
38 | |
---|
39 | |
---|
40 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.