[openrtm-commit:02607] r736 - trunk/rtmtools/jp.go.aist.rtm.systemeditor/src/jp/go/aist/rtm/systemeditor/ui/editor

openrtm @ openrtm.org openrtm @ openrtm.org
2017年 5月 8日 (月) 10:58:31 JST


Author: ga
Date: 2017-05-08 10:58:31 +0900 (Mon, 08 May 2017)
New Revision: 736

Modified:
   trunk/rtmtools/jp.go.aist.rtm.systemeditor/src/jp/go/aist/rtm/systemeditor/ui/editor/SystemDiagramEditor.java
Log:
Modified RTSystem Restoration #4034

Modified: trunk/rtmtools/jp.go.aist.rtm.systemeditor/src/jp/go/aist/rtm/systemeditor/ui/editor/SystemDiagramEditor.java
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.systemeditor/src/jp/go/aist/rtm/systemeditor/ui/editor/SystemDiagramEditor.java	2017-05-07 09:27:40 UTC (rev 735)
+++ trunk/rtmtools/jp.go.aist.rtm.systemeditor/src/jp/go/aist/rtm/systemeditor/ui/editor/SystemDiagramEditor.java	2017-05-08 01:58:31 UTC (rev 736)
@@ -331,6 +331,19 @@
 						Messages.getString("SystemDiagramEditor.6") + "\r\n"
 								+ e.getMessage());
 			}
+
+			try {
+				RtsProfileHandler handler = new RtsProfileHandler();
+				handler.restoreConnection(getSystemDiagram());
+				handler.restoreConfigSet(getSystemDiagram());
+				handler.restoreExecutionContext(getSystemDiagram());
+				doReplace(getSystemDiagram(), site);
+			} catch (Exception e) {
+				LOGGER.error("Fail to replace diagram", e);
+				throw new InvocationTargetException(e,
+						Messages.getString("SystemDiagramEditor.8"));
+			}
+
 		} catch (Exception e) {
 			throw new PartInitException(
 					Messages.getString("SystemDiagramEditor.9"), e);



openrtm-commit メーリングリストの案内