[openrtm-commit:00958] r396 - trunk/rtmtools/jp.go.aist.rtm.systemeditor/src/jp/go/aist/rtm/systemeditor

openrtm @ openrtm.org openrtm @ openrtm.org
2013年 1月 31日 (木) 16:17:29 JST


Author: ga
Date: 2013-01-31 16:17:29 +0900 (Thu, 31 Jan 2013)
New Revision: 396

Modified:
   trunk/rtmtools/jp.go.aist.rtm.systemeditor/src/jp/go/aist/rtm/systemeditor/RTSystemEditorPlugin.java
Log:
Modified RTSE Initialization

Modified: trunk/rtmtools/jp.go.aist.rtm.systemeditor/src/jp/go/aist/rtm/systemeditor/RTSystemEditorPlugin.java
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.systemeditor/src/jp/go/aist/rtm/systemeditor/RTSystemEditorPlugin.java	2013-01-31 06:59:25 UTC (rev 395)
+++ trunk/rtmtools/jp.go.aist.rtm.systemeditor/src/jp/go/aist/rtm/systemeditor/RTSystemEditorPlugin.java	2013-01-31 07:17:29 UTC (rev 396)
@@ -23,10 +23,10 @@
 	// The shared instance
 	private static RTSystemEditorPlugin plugin;
 
-	RTSELogHandler logHandler;
+	RTSELogHandler logHandler = null;
 
 	/**
-	 * The constructor 
+	 * The constructor
 	 */
 	public RTSystemEditorPlugin() {
 		plugin = this;
@@ -44,7 +44,9 @@
 	 * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
 	 */
 	public void start(BundleContext context) throws Exception {
-		logHandler.start();
+		if(logHandler!=null) {
+			logHandler.start();
+		}
 		//
 		super.start(context);
 	}
@@ -54,7 +56,9 @@
 	 * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
 	 */
 	public void stop(BundleContext context) throws Exception {
-		logHandler.stop();
+		if(logHandler!=null) {
+			logHandler.stop();
+		}
 		//
 		plugin = null;
 		super.stop(context);
@@ -106,8 +110,8 @@
 		return result;
 	}
 
-	static LogManager logManager;
-	static Logger log;
+	static LogManager logManager = null;
+	static Logger log = null;
 
 	public static Logger getLogger() {
 		if (logManager == null) {



More information about the openrtm-commit mailing list