blob: 468421a27dd4d7d0b371f02dd65b88d1fc907351 [file] [log] [blame]
/*=============================================================================#
# Copyright (c) 2014, 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.tex.r.core;
import static org.eclipse.statet.jcommons.lang.ObjectUtils.nonNullAssert;
import org.eclipse.core.runtime.Platform;
import org.eclipse.core.runtime.content.IContentType;
import org.eclipse.core.runtime.content.IContentTypeManager;
import org.eclipse.statet.jcommons.lang.NonNullByDefault;
import org.eclipse.statet.docmlet.tex.core.TexCore;
import org.eclipse.statet.docmlet.tex.core.TexCoreAccess;
import org.eclipse.statet.redocs.tex.r.core.util.TexRweaveCoreAccessWrapper;
@NonNullByDefault
public class TexRweaveCore {
public static final String BUNDLE_ID= "org.eclipse.statet.redocs.tex.r"; //$NON-NLS-1$
/**
* Content type id for Sweave (LaTeX+R) document sources
*/
public static final String LTX_R_CONTENT_ID= "org.eclipse.statet.redocs.contentTypes.LtxRweave"; //$NON-NLS-1$
public static final IContentType LTX_R_CONTENT_TYPE;
static {
final IContentTypeManager contentTypeManager= Platform.getContentTypeManager();
LTX_R_CONTENT_TYPE= nonNullAssert(contentTypeManager.getContentType(LTX_R_CONTENT_ID));
}
public static final TexCoreAccess TEX_WORKBENCH_ACCESS= new TexRweaveCoreAccessWrapper(
TexCore.WORKBENCH_ACCESS );
}