1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Removed delay in scheduling job to write indexer preferences.

This commit is contained in:
Markus Schorn 2008-02-19 13:16:05 +00:00
parent 74593bcfb3
commit 811e5057ad

View file

@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2006, 2007 Wind River Systems, Inc. and others.
* Copyright (c) 2006, 2008 Wind River Systems, 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
@ -8,7 +8,6 @@
* Contributors:
* Markus Schorn - initial API and implementation
*******************************************************************************/
package org.eclipse.cdt.internal.core;
import org.eclipse.cdt.core.CCorePlugin;
@ -45,7 +44,8 @@ public class CCoreInternals {
*/
public static void savePreferences(final IProject project) {
Job job= new Job(CCorePlugin.getResourceString("CCoreInternals.savePreferencesJob")) { //$NON-NLS-1$
protected IStatus run(IProgressMonitor monitor) {
@Override
protected IStatus run(IProgressMonitor monitor) {
try {
if (project != null) {
new LocalProjectScope(project).getNode(CCorePlugin.PLUGIN_ID).flush();
@ -72,6 +72,6 @@ public class CCoreInternals {
};
job.setRule(MultiRule.combine(rules));
}
job.schedule(2000);
job.schedule();
}
}