|
Lines 33-39
Link Here
|
| 33 |
import org.eclipse.ui.plugin.AbstractUIPlugin; |
33 |
import org.eclipse.ui.plugin.AbstractUIPlugin; |
| 34 |
import org.osgi.framework.Bundle; |
34 |
import org.osgi.framework.Bundle; |
| 35 |
import org.osgi.framework.BundleContext; |
35 |
import org.osgi.framework.BundleContext; |
| 36 |
import org.osgi.framework.BundleException; |
|
|
| 37 |
|
36 |
|
| 38 |
import com.ibm.icu.text.MessageFormat; |
37 |
import com.ibm.icu.text.MessageFormat; |
| 39 |
|
38 |
|
|
Lines 331-356
Link Here
|
| 331 |
if (resourceManager != null) |
330 |
if (resourceManager != null) |
| 332 |
resourceManager.dispose(); |
331 |
resourceManager.dispose(); |
| 333 |
} |
332 |
} |
| 334 |
|
|
|
| 335 |
/* (non-Javadoc) |
| 336 |
* @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext) |
| 337 |
*/ |
| 338 |
public void start(BundleContext context) throws Exception { |
| 339 |
super.start(context); |
| 340 |
|
| 341 |
// See https://bugs.eclipse.org/bugs/show_bug.cgi?id=235179 |
| 342 |
// Code that depends on Platform.getBundleGroupProviders() during |
| 343 |
// workbench startup must have org.eclipse.update.configurator available. |
| 344 |
Bundle bundleGroupBundle = Platform |
| 345 |
.getBundle("org.eclipse.update.configurator"); //$NON-NLS-1$ |
| 346 |
if (bundleGroupBundle != null) { |
| 347 |
try { |
| 348 |
bundleGroupBundle.start(Bundle.START_TRANSIENT); |
| 349 |
} catch (BundleException e) { |
| 350 |
// we can't start the org.eclipse.update.configurator |
| 351 |
// this is not something we want to force, so we'll call this a |
| 352 |
// NO-OP |
| 353 |
} |
| 354 |
} |
| 355 |
} |
| 356 |
} |
333 |
} |