blob: d8b1ef46f9d456123a5784d8cea5d814ba07114f [file] [log] [blame]
/*=============================================================================#
# Copyright (c) 2007, 2019 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.IWikitextCoreAccess;
import org.eclipse.statet.ltk.ui.sourceediting.SourceEditorViewerConfiguration;
import org.eclipse.statet.r.core.IRCoreAccess;
import org.eclipse.statet.redocs.wikitext.r.core.source.WikidocRweaveDocumentSetupParticipant;
public class WikidocRweaveTemplateViewerConfigurator extends WikidocRweaveSourceViewerConfigurator {
public WikidocRweaveTemplateViewerConfigurator(
final WikidocRweaveDocumentSetupParticipant documentSetup,
final IWikitextCoreAccess wikitextCoreAccess, final IRCoreAccess rCoreAccess,
final TemplateVariableProcessor processor) {
super(documentSetup, wikitextCoreAccess, rCoreAccess,
new WikidocRweaveSourceViewerConfiguration(SourceEditorViewerConfiguration.TEMPLATE_MODE, null, null, null, null) {
@Override
protected TemplateVariableProcessor getTemplateVariableProcessor() {
return processor;
}
});
}
}