From 811e5057ad9cccd5cbe3990792ede6eee39c800a Mon Sep 17 00:00:00 2001 From: Markus Schorn Date: Tue, 19 Feb 2008 13:16:05 +0000 Subject: [PATCH] Removed delay in scheduling job to write indexer preferences. --- .../src/org/eclipse/cdt/internal/core/CCoreInternals.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/core/CCoreInternals.java b/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/core/CCoreInternals.java index d73a5161130..7b8975ebf86 100644 --- a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/core/CCoreInternals.java +++ b/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/core/CCoreInternals.java @@ -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(); } }