/******************************************************************************* * Copyright (c) 2014 Rohde & Schwarz GmbH & Co. KG and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * Martin Runge - initial implementation of cmake support *******************************************************************************/ package org.eclipse.cdt.cmake.ui; import org.eclipse.cdt.cmake.Activator; import org.eclipse.cdt.cmake.ui.PreferenceConstants; import org.eclipse.core.variables.IValueVariable; import org.eclipse.core.variables.IValueVariableInitializer; public class ProjectPathInitializer implements IValueVariableInitializer { @Override public void initialize(IValueVariable variable) { String projPathPref = Activator.getDefault().getPreferenceStore().getString(PreferenceConstants.P_PROJPATH); variable.setValue(projPathPref); } }