최신버전에 맞는 타겟플렛폼 설정.
[Tadpole.git] / com.hangum.tadpole.commons.sql / src / com / hangum / tadpole / engine / TadpoleEngineActivator.java
blob2d2d4108408bba29ddea30c4245e8990444e9f9f
1 /*******************************************************************************
2 * Copyright (c) 2013 hangum.
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the GNU Lesser Public License v2.1
5 * which accompanies this distribution, and is available at
6 * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
7 *
8 * Contributors:
9 * hangum - initial API and implementation
10 ******************************************************************************/
11 package com.hangum.tadpole.engine;
13 import org.eclipse.core.runtime.ILogListener;
14 import org.eclipse.core.runtime.Platform;
15 import org.eclipse.core.runtime.Plugin;
16 import org.osgi.framework.BundleContext;
18 import com.hangum.tadpole.commons.libs.core.logs.LogListener;
20 public class TadpoleEngineActivator extends Plugin {
22 // The plug-in ID
23 public static final String PLUGIN_ID = "com.hangum.tadpole.engine";
25 // The shared instance
26 private static TadpoleEngineActivator plugin;
27 private ILogListener listener;
29 /**
30 * The constructor
32 public TadpoleEngineActivator() {
36 * (non-Javadoc)
37 * @see org.eclipse.core.runtime.Plugins#start(org.osgi.framework.BundleContext)
39 public void start(BundleContext context) throws Exception {
40 super.start(context);
41 plugin = this;
43 // eclipse 로그도 log4j에 넣어주도록 수정 ... (해야할지 살짝 의문이고 삭제해야할지도....) -hangum, 11.09
44 listener = new LogListener();
45 Platform.addLogListener(listener);
49 * (non-Javadoc)
50 * @see org.eclipse.core.runtime.Plugin#stop(org.osgi.framework.BundleContext)
52 public void stop(BundleContext context) throws Exception {
53 plugin = null;
54 super.stop(context);
56 Platform.removeLogListener(listener);
59 /**
60 * Returns the shared instance
62 * @return the shared instance
64 public static TadpoleEngineActivator getDefault() {
65 return plugin;