blob: f7364f6c38bb5d7c2158d26928d59e48a04cfa1f [file] [log] [blame]
/*=============================================================================#
# Copyright (c) 2015, 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.internal.redocs.tex.r.ui.processing;
import org.eclipse.osgi.util.NLS;
import org.eclipse.statet.jcommons.collections.ImCollections;
import org.eclipse.statet.jcommons.collections.ImList;
import org.eclipse.statet.jcommons.lang.NonNullByDefault;
import org.eclipse.statet.redocs.r.ui.processing.RWeaveDocProcessingConfig;
@NonNullByDefault
public class TexRweaveConfig extends RWeaveDocProcessingConfig {
public static final String TYPE_ID= "org.eclipse.statet.redocs.launchConfigurations.TexRweaveDocProcessing"; //$NON-NLS-1$
/*[ Attributes ]===============================================================*/
// see RWeaveDocProcessingConfig
/*[ Formats ]==================================================================*/
public static final Format SOURCE_FORMAT= createSourceFormat(
Messages.Format_LtxRweave_label );
public static Format createWeaveOutputFormat(final Format format) {
return new Format(format.getKey(),
NLS.bind(Messages.Format_RweaveResult_label, format.getInfoLabel()),
format.getExt() );
}
public static final ImList<Format> WEAVE_OUTPUT_FORMATS= ImCollections.newList(
TexRweaveConfig.EXT_LTX_FORMAT,
TexRweaveConfig.EXT_OTHER_FORMAT );
public static final ImList<Format> PRODUCE_OUTPUT_FORMATS= ImCollections.newList(
TexRweaveConfig.EXT_PDF_FORMAT,
TexRweaveConfig.EXT_OTHER_FORMAT );
}