import org.osgi.framework.BundleContext;
import org.osgi.framework.ServiceRegistration;
-/**
- * The activator class controls the plug-in life cycle
- */
+/** The activator class controls the plug-in life cycle */
public class WorkbenchUiPlugin extends AbstractUIPlugin implements ILogListener {
-
private final static Log log = LogFactory.getLog(WorkbenchUiPlugin.class);
+ // The plug-in ID
+ public final static String PLUGIN_ID = "org.argeo.cms.ui.workbench"; //$NON-NLS-1$
+
private ResourceBundle messages;
-
private static BundleContext bundleContext;
+
public static InheritableThreadLocal<Display> display = new InheritableThreadLocal<Display>() {
@Override
}
};
- // The plug-in ID
- // public final static String PLUGIN_ID = "org.argeo.security.ui"; //$NON-NLS-1$
- public final static String PLUGIN_ID = "org.argeo.cms.ui.workbench"; //$NON-NLS-1$
final static String CONTEXT_KEYRING = "KEYRING";
public void start(BundleContext context) throws Exception {
super.start(context);
-
bundleContext = context;
-
defaultCallbackHandler = new DefaultCallbackHandler();
defaultCallbackHandlerReg = context.registerService(
CallbackHandler.class, defaultCallbackHandler, null);
Platform.addLogListener(this);
if (log.isTraceEnabled())
log.trace("Eclipse logging now directed to standard logging");
-
}
public void stop(BundleContext context) throws Exception {
return bundleContext;
}
- // * Returns the shared instance
- // *
- // * @return the shared instance
- // */
+ /*
+ * Returns the shared instance
+ *
+ * @return the shared instance
+ */
public static WorkbenchUiPlugin getDefault() {
return plugin;
}