| /*=============================================================================# |
| # Copyright (c) 2007, 2021 Stephan Wahlbrink and others. |
| # |
| # This program and the accompanying materials are made available under the |
| # terms of the Eclipse Public License 2.0 which is available at |
| # https://www.eclipse.org/legal/epl-2.0, or the Apache License, Version 2.0 |
| # which is available at https://www.apache.org/licenses/LICENSE-2.0. |
| # |
| # SPDX-License-Identifier: EPL-2.0 OR Apache-2.0 |
| # |
| # Contributors: |
| # Stephan Wahlbrink <sw@wahlbrink.eu> - initial API and implementation |
| #=============================================================================*/ |
| |
| package org.eclipse.statet.redocs.wikitext.r.ui.sourceediting; |
| |
| import org.eclipse.statet.ecommons.templates.TemplateVariableProcessor; |
| |
| import org.eclipse.statet.docmlet.wikitext.core.WikitextCoreAccess; |
| import org.eclipse.statet.ltk.ui.sourceediting.SourceEditorViewerConfiguration; |
| import org.eclipse.statet.r.core.RCoreAccess; |
| import org.eclipse.statet.redocs.wikitext.r.core.source.WikidocRweaveDocumentSetupParticipant; |
| |
| |
| public class WikidocRweaveTemplateViewerConfigurator extends WikidocRweaveSourceViewerConfigurator { |
| |
| |
| public WikidocRweaveTemplateViewerConfigurator( |
| final WikidocRweaveDocumentSetupParticipant documentSetup, |
| final WikitextCoreAccess wikitextCoreAccess, final RCoreAccess rCoreAccess, |
| final TemplateVariableProcessor processor) { |
| super(documentSetup, wikitextCoreAccess, rCoreAccess, |
| new WikidocRweaveSourceViewerConfiguration(SourceEditorViewerConfiguration.TEMPLATE_MODE, null, null, null, null) { |
| @Override |
| protected TemplateVariableProcessor getTemplateVariableProcessor() { |
| return processor; |
| } |
| }); |
| } |
| |
| } |