| /******************************************************************************* |
| * Copyright (c) 2012, 2018 Willink Transformations and others. |
| * 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 |
| * |
| * Contributors: |
| * E.D.Willink - initial API and implementation |
| *******************************************************************************/ |
| package org.eclipse.qvtd.xtext.qvtrelation.ui; |
| |
| import org.eclipse.ocl.xtext.base.ui.commands.ToggleNatureCommand; |
| import org.eclipse.qvtd.xtext.qvtbase.ui.QVTbaseJavaClassPathResourceForIEditorInputFactory; |
| import org.eclipse.qvtd.xtext.qvtbase.ui.commands.ToggleQVTdNatureCommand; |
| import org.eclipse.qvtd.xtext.qvtrelation.ui.internal.QVTrelationActivator; |
| import org.eclipse.qvtd.xtext.qvtrelation.ui.model.QVTrelationDocumentProvider; |
| import org.eclipse.ui.plugin.AbstractUIPlugin; |
| import org.eclipse.xtext.ui.editor.model.IResourceForEditorInputFactory; |
| import org.eclipse.xtext.ui.editor.model.XtextDocumentProvider; |
| |
| /** |
| * Use this class to register components to be used within the IDE. |
| */ |
| public class QVTrelationUiModule extends org.eclipse.qvtd.xtext.qvtrelation.ui.AbstractQVTrelationUiModule |
| { |
| public static final String PLUGIN_ID = "org.eclipse.qvtd.xtext.qvtrelation.ui"; |
| public static final String EDITOR_ID = QVTrelationActivator.ORG_ECLIPSE_QVTD_XTEXT_QVTRELATION_QVTRELATION; |
| public static final String MARKER_ID = "org.eclipse.qvtd.xtext.qvtrelation.ui.Marker"; |
| |
| public QVTrelationUiModule(AbstractUIPlugin plugin) { |
| super(plugin); |
| } |
| |
| public Class<? extends XtextDocumentProvider> bindXtextDocumentProvider() { |
| return QVTrelationDocumentProvider.class; |
| } |
| |
| @Override |
| public Class<? extends IResourceForEditorInputFactory> bindIResourceForEditorInputFactory() { |
| return QVTbaseJavaClassPathResourceForIEditorInputFactory.class; |
| } |
| |
| public Class<? extends ToggleNatureCommand> bindToggleNatureCommand() { |
| return ToggleQVTdNatureCommand.class; |
| } |
| } |