Revision 0caafa75
Added by Andreas Müller over 1 year ago
eu.etaxonomy.taxeditor.application/src/main/java/eu/etaxonomy/taxeditor/TaxonomicEditorPlugin.java | ||
---|---|---|
1 | 1 |
package eu.etaxonomy.taxeditor; |
2 | 2 |
|
3 |
import org.apache.logging.log4j.LogManager;import org.apache.logging.log4j.Logger; |
|
3 |
import org.apache.logging.log4j.LogManager; |
|
4 |
import org.apache.logging.log4j.Logger; |
|
4 | 5 |
import org.eclipse.equinox.p2.core.IProvisioningAgent; |
5 | 6 |
import org.eclipse.equinox.p2.engine.IProfileRegistry; |
6 | 7 |
import org.eclipse.equinox.p2.operations.ProvisioningSession; |
... | ... | |
21 | 22 |
* @author n.hoffmann |
22 | 23 |
*/ |
23 | 24 |
public class TaxonomicEditorPlugin extends AbstractUIPlugin { |
24 |
|
|
25 |
private static final Logger logger = LogManager.getLogger(TaxonomicEditorPlugin.class);
|
|
25 |
|
|
26 |
private static final Logger logger = LogManager.getLogger(); |
|
26 | 27 |
|
27 | 28 |
// The plug-in ID |
28 | 29 |
/** Constant <code>PLUGIN_ID="eu.etaxonomy.taxeditor.application"</code> */ |
... | ... | |
107 | 108 |
if (ui == null) { |
108 | 109 |
ServiceReference<?> reference = bundleContext.getServiceReference(IProvisioningAgent.SERVICE_NAME); |
109 | 110 |
IProvisioningAgent agent = (IProvisioningAgent) bundleContext.getService(reference); |
110 |
|
|
111 |
|
|
111 | 112 |
session = new ProvisioningSession(agent); |
112 |
|
|
113 |
|
|
113 | 114 |
Policy policy = null;// = (Policy) ServiceHelper.getService(ProvUIActivator.getContext(), Policy.class.getName()); |
114 | 115 |
if (policy == null) { |
115 | 116 |
policy = new Policy(); |
116 |
|
|
117 |
|
|
117 | 118 |
} |
118 | 119 |
ui = new ProvisioningUI(session, IProfileRegistry.SELF, policy); |
119 | 120 |
} |
Also available in: Unified diff
ref #10186 further remove ConversationHolder and cleanup