blob: 4c91fdaa35b3786a01296618e31fa6fbdb42bc9a [file] [log] [blame]
/*=============================================================================#
# Copyright (c) 2014, 2017 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.r.core;
import org.eclipse.core.resources.IContainer;
import org.eclipse.core.resources.IProject;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.statet.jcommons.collections.ImList;
import org.eclipse.statet.ecommons.preferences.core.Preference;
import org.eclipse.statet.ecommons.preferences.core.Preference.StringPref2;
import org.eclipse.statet.ecommons.preferences.core.PreferenceAccess;
import org.eclipse.statet.internal.r.core.RProject;
import org.eclipse.statet.ltk.buildpaths.core.IBuildpathElement;
public interface IRProject extends PreferenceAccess, IRCoreAccess {
String BUILD_PREF_QUALIFIER= RCore.BUNDLE_ID + "/build/RProject"; //$NON-NLS-1$
Preference<String> BASE_FOLDER_PATH_PREF= new StringPref2(BUILD_PREF_QUALIFIER, RProject.BASE_FOLDER_PATH_KEY);
Preference<String> RENV_CODE_PREF= new StringPref2(BUILD_PREF_QUALIFIER, RProject.RENV_CODE_KEY);
Preference<String> PACKAGE_NAME_PREF= new StringPref2(BUILD_PREF_QUALIFIER, "Package.name"); //$NON-NLS-1$
IProject getProject();
String getPackageName();
void setPackageConfig(String name) throws CoreException;
IContainer getBaseContainer();
ImList<IBuildpathElement> getRawBuildpath();
}