|
Lines 1-5
Link Here
|
| 1 |
/******************************************************************************* |
1 |
/******************************************************************************* |
| 2 |
* Copyright (c) 2000, 2009 IBM Corporation and others. |
2 |
* Copyright (c) 2000, 2010 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 17-22
Link Here
|
| 17 |
import java.util.Map; |
17 |
import java.util.Map; |
| 18 |
import org.eclipse.core.internal.runtime.*; |
18 |
import org.eclipse.core.internal.runtime.*; |
| 19 |
import org.eclipse.core.runtime.preferences.*; |
19 |
import org.eclipse.core.runtime.preferences.*; |
|
|
20 |
import org.eclipse.osgi.service.datalocation.Location; |
| 20 |
import org.eclipse.osgi.service.debug.DebugOptions; |
21 |
import org.eclipse.osgi.service.debug.DebugOptions; |
| 21 |
import org.eclipse.osgi.util.NLS; |
22 |
import org.eclipse.osgi.util.NLS; |
| 22 |
import org.osgi.framework.*; |
23 |
import org.osgi.framework.*; |
|
Lines 387-392
Link Here
|
| 387 |
* @deprecated Replaced by InstanceScope.getNode(<bundleId>).flush() |
388 |
* @deprecated Replaced by InstanceScope.getNode(<bundleId>).flush() |
| 388 |
*/ |
389 |
*/ |
| 389 |
public final void savePluginPreferences() { |
390 |
public final void savePluginPreferences() { |
|
|
391 |
|
| 392 |
Location instance = InternalPlatform.getDefault().getInstanceLocation(); |
| 393 |
if (instance == null || !instance.isSet()) |
| 394 |
// If the instance area is not set there is no point in getting or setting the preferences. |
| 395 |
// There is nothing to save in this case. |
| 396 |
return; |
| 390 |
// populate the "preferences" instance variable. We still might |
397 |
// populate the "preferences" instance variable. We still might |
| 391 |
// need to save them because someone else might have |
398 |
// need to save them because someone else might have |
| 392 |
// made changes via the OSGi APIs. |
399 |
// made changes via the OSGi APIs. |