|
| 1 | +/***************************************************************************** |
| 2 | + * SysML 2 Pilot Implementation |
| 3 | + * Copyright (c) 2019 Model Driven Solutions, Inc. |
| 4 | + * |
| 5 | + * This program is free software: you can redistribute it and/or modify |
| 6 | + * it under the terms of the GNU Lesser General Public License as published by |
| 7 | + * the Free Software Foundation, either version 3 of the License, or |
| 8 | + * (at your option) any later version. |
| 9 | + * |
| 10 | + * This program is distributed in the hope that it will be useful, |
| 11 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 | + * GNU Lesser General Public License for more details. |
| 14 | + * |
| 15 | + * You should have received a copy of theGNU Lesser General Public License |
| 16 | + * along with this program. If not, see <https://www.gnu.org/licenses/>. |
| 17 | + * |
| 18 | + * @license LGPL-3.0-or-later <http://spdx.org/licenses/LGPL-3.0-or-later> |
| 19 | + * |
| 20 | + * Contributors: |
| 21 | + * Ed Seidewitz |
| 22 | + * |
| 23 | + *****************************************************************************/ |
| 24 | +package org.omg.sysml.util; |
| 25 | + |
| 26 | +import org.omg.kerml.xtext.KerMLStandaloneSetup; |
| 27 | +import org.omg.sysml.xtext.SysMLStandaloneSetup; |
| 28 | + |
| 29 | +public class SysMLRepositorySaveUtil extends AlfRepositorySaveUtil { |
| 30 | + |
| 31 | + public SysMLRepositorySaveUtil() { |
| 32 | + super(); |
| 33 | + KerMLStandaloneSetup.doSetup(); |
| 34 | + SysMLStandaloneSetup.doSetup(); |
| 35 | + this.addExtension(".kerml"); |
| 36 | + this.addExtension(".sysml"); |
| 37 | + } |
| 38 | + |
| 39 | + public static void main(String[] args) { |
| 40 | + new SysMLRepositorySaveUtil().run(args); |
| 41 | + } |
| 42 | + |
| 43 | +} |
0 commit comments