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
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
{
23 public static final String PLUGIN_ID
= "com.hangum.tadpole.engine";
25 // The shared instance
26 private static TadpoleEngineActivator plugin
;
27 private ILogListener listener
;
32 public TadpoleEngineActivator() {
37 * @see org.eclipse.core.runtime.Plugins#start(org.osgi.framework.BundleContext)
39 public void start(BundleContext context
) throws Exception
{
43 // eclipse 로그도 log4j에 넣어주도록 수정 ... (해야할지 살짝 의문이고 삭제해야할지도....) -hangum, 11.09
44 listener
= new LogListener();
45 Platform
.addLogListener(listener
);
50 * @see org.eclipse.core.runtime.Plugin#stop(org.osgi.framework.BundleContext)
52 public void stop(BundleContext context
) throws Exception
{
56 Platform
.removeLogListener(listener
);
60 * Returns the shared instance
62 * @return the shared instance
64 public static TadpoleEngineActivator
getDefault() {