|
Lines 1-5
Link Here
|
| 1 |
/******************************************************************************* |
1 |
/******************************************************************************* |
| 2 |
* Copyright (c) 2005, 2007 IBM Corporation and others. |
2 |
* Copyright (c) 2005, 2008 IBM Corporation and others. |
| 3 |
* All rights reserved. This program and the accompanying materials |
3 |
* All rights reserved. This program and the accompanying materials |
| 4 |
* are made available under the terms of the Eclipse Public License v1.0 |
4 |
* are made available under the terms of the Eclipse Public License v1.0 |
| 5 |
* which accompanies this distribution, and is available at |
5 |
* which accompanies this distribution, and is available at |
|
Lines 14-19
Link Here
|
| 14 |
import java.util.*; |
14 |
import java.util.*; |
| 15 |
import java.util.List; |
15 |
import java.util.List; |
| 16 |
import org.eclipse.core.runtime.*; |
16 |
import org.eclipse.core.runtime.*; |
|
|
17 |
import org.eclipse.core.runtime.jobs.Job; |
| 17 |
import org.eclipse.core.runtime.spi.RegistryContributor; |
18 |
import org.eclipse.core.runtime.spi.RegistryContributor; |
| 18 |
import org.eclipse.jface.dialogs.Dialog; |
19 |
import org.eclipse.jface.dialogs.Dialog; |
| 19 |
import org.eclipse.jface.dialogs.IDialogPage; |
20 |
import org.eclipse.jface.dialogs.IDialogPage; |
|
Lines 162-168
Link Here
|
| 162 |
public boolean performOk() { |
163 |
public boolean performOk() { |
| 163 |
Preferences preferences = PDECore.getDefault().getPluginPreferences(); |
164 |
Preferences preferences = PDECore.getDefault().getPluginPreferences(); |
| 164 |
preferences.setValue(ICoreConstants.P_SOURCE_LOCATIONS, encodeSourceLocations()); |
165 |
preferences.setValue(ICoreConstants.P_SOURCE_LOCATIONS, encodeSourceLocations()); |
| 165 |
PDECore.getDefault().getJavadocLocationManager().reset(); |
166 |
// Reset the javadoc locations in a job in case locations are being initialized |
|
|
167 |
Job resetJavadocJob = new Job("Reset Javadoc Locations") { //$NON-NLS-1$ |
| 168 |
protected IStatus run(IProgressMonitor monitor) { |
| 169 |
PDECore.getDefault().getJavadocLocationManager().reset(); |
| 170 |
return Status.OK_STATUS; |
| 171 |
} |
| 172 |
}; |
| 173 |
resetJavadocJob.setSystem(true); |
| 174 |
resetJavadocJob.schedule(); |
| 166 |
return true; |
175 |
return true; |
| 167 |
} |
176 |
} |
| 168 |
|
177 |
|