| /** |
| * |
| * 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 |
| * |
| * Contributors: |
| * Christophe Loetz (Loetz GmbH&Co.KG) - initial implementation |
| * |
| */ |
| package org.eclipse.osbp.xtext.functionlibrarydsl.ui; |
| |
| import org.eclipse.ui.plugin.AbstractUIPlugin; |
| import org.eclipse.xtext.ui.editor.hover.IEObjectHover; |
| import org.eclipse.xtext.ui.editor.hover.IEObjectHoverProvider; |
| import org.eclipse.xtext.ui.editor.hover.html.IEObjectHoverDocumentationProvider; |
| import org.slf4j.Logger; |
| import org.slf4j.LoggerFactory; |
| |
| import org.eclipse.osbp.xtext.basic.ui.BasicDSLUiModuleHelper; |
| |
| /** |
| * Use this class to register components to be used within the IDE. |
| */ |
| public class FunctionLibraryDslUiModule extends org.eclipse.osbp.xtext.functionlibrarydsl.ui.AbstractFunctionLibraryDslUiModule { |
| |
| private static Logger LOGGER = LoggerFactory.getLogger(FunctionLibraryDslUiModule.class); |
| |
| public FunctionLibraryDslUiModule(AbstractUIPlugin plugin) { |
| super(plugin); |
| BasicDSLUiModuleHelper.unitTestTemplates(plugin, LOGGER); |
| } |
| |
| @Override |
| public Class<? extends IEObjectHover> bindIEObjectHover() { |
| return FunctionLibraryDSLEObjectHover.class; |
| } |
| |
| @Override |
| public Class<? extends IEObjectHoverProvider> bindIEObjectHoverProvider() { |
| return FunctionLibraryDSLEObjectHoverProvider.class; |
| } |
| |
| @Override |
| public Class<? extends IEObjectHoverDocumentationProvider> bindIEObjectHoverDocumentationProvider() { |
| return FunctionLibraryDSLEObjectHoverDocumentationProvider.class; |
| } |
| } |