/*****************************************************************************
* Copyright (c) 2006-2013, Cloudsmith Inc.
* The code, documentation and other materials contained herein have been
* licensed under the Eclipse Public License - v 1.0 by the copyright holder
* listed above, as the Initial Contributor under such license. The text of
* such license is available at www.eclipse.org.
*****************************************************************************/
package org.eclipse.buckminster.pde.prefs;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.pde.core.target.ITargetDefinition;
import org.osgi.service.prefs.BackingStoreException;
/**
* Custom preference handler for the target operating system preference.
*
* @author Thomas Hallgren
*/
public class TargetNLHandler extends TargetVariableHandler {
@Override
public void unset() throws BackingStoreException {
set(null);
}
@Override
protected String get(ITargetDefinition definition) throws CoreException {
return definition.getNL();
}
@Override
protected void set(ITargetDefinition definition, String value) throws CoreException {
definition.setNL(value);
}
}