Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 369657
Collapse All | Expand All

(-)a/bundles/org.eclipse.ui.forms/src/org/eclipse/ui/internal/forms/FormsPlugin.java (-9 / +13 lines)
Lines 11-30 Link Here
11
package org.eclipse.ui.internal.forms;
11
package org.eclipse.ui.internal.forms;
12
12
13
import org.eclipse.ui.internal.forms.widgets.FormsResources;
13
import org.eclipse.ui.internal.forms.widgets.FormsResources;
14
import org.eclipse.ui.plugin.AbstractUIPlugin;
14
import org.osgi.framework.BundleActivator;
15
import org.osgi.framework.BundleContext;
15
import org.osgi.framework.BundleContext;
16
16
17
public class FormsPlugin extends AbstractUIPlugin {
17
public class FormsPlugin implements BundleActivator {
18
18
19
	public FormsPlugin() {
19
	private static BundleContext context;
20
21
	public static BundleContext getContext() {
22
		return context;
20
	}
23
	}
21
	
24
22
	public void stop(BundleContext context) throws Exception {
25
	public void stop(BundleContext context) throws Exception {
23
		try {
26
		FormsResources.shutdown();
24
			FormsResources.shutdown();
27
		FormsPlugin.context = null;
25
		} finally {
28
	}
26
			super.stop(context);
29
27
		}
30
	public void start(BundleContext context) throws Exception {
31
		FormsPlugin.context = context;
28
	}
32
	}
29
33
30
}
34
}

Return to bug 369657