blob: f2de32b843ac60869053ed59f9b895672b2b8d11 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2009, 2019 Xored Software Inc 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
* https://www.eclipse.org/legal/epl-v20.html
*
* Contributors:
* Xored Software Inc - initial API and implementation and/or initial documentation
*******************************************************************************/
package org.eclipse.rcptt.internal.core;
import org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer;
import org.eclipse.core.runtime.preferences.DefaultScope;
import org.eclipse.core.runtime.preferences.IEclipsePreferences;
import org.osgi.service.prefs.BackingStoreException;
import org.eclipse.rcptt.core.Q7;
public class CorePreferenceInitializer extends AbstractPreferenceInitializer {
@SuppressWarnings("deprecation")
@Override
public void initializeDefaultPreferences() {
IEclipsePreferences preferences = new DefaultScope()
.getNode(RcpttPlugin.PLUGIN_ID);
preferences.putInt(RcpttPlugin.COMMANDS_EXECUTION_DELAY,
Q7.DEFAULT_COMMANDS_EXECUTION_DELAY);
try {
preferences.flush();
} catch (BackingStoreException e) {
RcpttPlugin.log(e);
}
}
}