Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 216822 Details for
Bug 369657
FormsPlugin (Activator) unnecessary extends AbstractUIPlugin
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
simplify FormsPlugin
bug369657.patch (text/plain), 1.18 KB, created by
Paul Webster
on 2012-06-05 08:12:44 EDT
(
hide
)
Description:
simplify FormsPlugin
Filename:
MIME Type:
Creator:
Paul Webster
Created:
2012-06-05 08:12:44 EDT
Size:
1.18 KB
patch
obsolete
>diff --git a/bundles/org.eclipse.ui.forms/src/org/eclipse/ui/internal/forms/FormsPlugin.java b/bundles/org.eclipse.ui.forms/src/org/eclipse/ui/internal/forms/FormsPlugin.java >index 7fdaec6..702af9c 100644 >--- a/bundles/org.eclipse.ui.forms/src/org/eclipse/ui/internal/forms/FormsPlugin.java >+++ b/bundles/org.eclipse.ui.forms/src/org/eclipse/ui/internal/forms/FormsPlugin.java >@@ -11,20 +11,24 @@ > package org.eclipse.ui.internal.forms; > > import org.eclipse.ui.internal.forms.widgets.FormsResources; >-import org.eclipse.ui.plugin.AbstractUIPlugin; >+import org.osgi.framework.BundleActivator; > import org.osgi.framework.BundleContext; > >-public class FormsPlugin extends AbstractUIPlugin { >+public class FormsPlugin implements BundleActivator { > >- public FormsPlugin() { >+ private static BundleContext context; >+ >+ public static BundleContext getContext() { >+ return context; > } >- >+ > public void stop(BundleContext context) throws Exception { >- try { >- FormsResources.shutdown(); >- } finally { >- super.stop(context); >- } >+ FormsResources.shutdown(); >+ FormsPlugin.context = null; >+ } >+ >+ public void start(BundleContext context) throws Exception { >+ FormsPlugin.context = context; > } > > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 369657
: 216822