| /****************************************************************************** |
| * * |
| * Copyright (c) 2011, 2016 - Loetz GmbH&Co.KG, 69115 Heidelberg, Germany * |
| * * |
| * 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 * |
| * * |
| *============================================================================* |
| * Initial contribution: * |
| * Loetz GmbH & Co. KG * |
| * * |
| * based on mwe2 * |
| ******************************************************************************/ |
| package org.eclipse.osbp.xtext.dialogdsl.validation; |
| |
| import java.util.ArrayList; |
| import java.util.List; |
| import org.eclipse.emf.ecore.EPackage; |
| import org.eclipse.xtext.validation.ComposedChecks; |
| |
| @ComposedChecks(validators= {org.eclipse.osbp.xtext.basic.validation.NamesAreUniqueValidator.class}) |
| public class AbstractDialogDslValidator extends org.eclipse.xtext.xbase.annotations.validation.XbaseWithAnnotationsValidator { |
| |
| @Override |
| protected List<EPackage> getEPackages() { |
| List<EPackage> result = new ArrayList<EPackage>(super.getEPackages()); |
| result.add(EPackage.Registry.INSTANCE.getEPackage("http://osbp.eclipse.org/xtext/dialogdsl/DialogDSL")); |
| result.add(EPackage.Registry.INSTANCE.getEPackage("http://osbp.eclipse.org/dsl/common/types/v1")); |
| result.add(EPackage.Registry.INSTANCE.getEPackage("http://www.eclipse.org/Xtext/Xbase/XAnnotations")); |
| result.add(EPackage.Registry.INSTANCE.getEPackage("http://www.eclipse.org/xtext/xbase/Xbase")); |
| result.add(EPackage.Registry.INSTANCE.getEPackage("http://www.eclipse.org/xtext/common/JavaVMTypes")); |
| result.add(EPackage.Registry.INSTANCE.getEPackage("http://www.eclipse.org/xtext/xbase/Xtype")); |
| return result; |
| } |
| } |