source: trunk/CrossPare/src/de/ugoe/cs/cpdp/decentApp/DECENTResourceTool.java @ 39

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: 1.0 KB
Line 
1package de.ugoe.cs.cpdp.decentApp;
2
3import org.eclipse.emf.ecore.EValidator;
4import org.eclipse.emf.ecore.util.EObjectValidator;
5
6import de.ugoe.cs.cpdp.decentApp.models.decent.DECENTPackage;
7import de.ugoe.cs.cpdp.decentApp.models.decent.impl.DECENTPackageImpl;
8import 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 */
16public 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.