[openrtm-commit:03272] r826 - trunk/rtmtools/jp.go.aist.rtm.systemeditor/src/jp/go/aist/rtm/systemeditor/ui/editor/editpart
openrtm @ openrtm.org
openrtm @ openrtm.org
2018年 3月 25日 (日) 10:44:28 JST
Author: ga
Date: 2018-03-25 10:44:28 +0900 (Sun, 25 Mar 2018)
New Revision: 826
Modified:
trunk/rtmtools/jp.go.aist.rtm.systemeditor/src/jp/go/aist/rtm/systemeditor/ui/editor/editpart/ECEditPart.java
Log:
Modified EC Tab.
Modified: trunk/rtmtools/jp.go.aist.rtm.systemeditor/src/jp/go/aist/rtm/systemeditor/ui/editor/editpart/ECEditPart.java
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.systemeditor/src/jp/go/aist/rtm/systemeditor/ui/editor/editpart/ECEditPart.java 2018-03-24 03:42:15 UTC (rev 825)
+++ trunk/rtmtools/jp.go.aist.rtm.systemeditor/src/jp/go/aist/rtm/systemeditor/ui/editor/editpart/ECEditPart.java 2018-03-25 01:44:28 UTC (rev 826)
@@ -11,6 +11,7 @@
import jp.go.aist.rtm.systemeditor.ui.editor.editpolicy.ECSelectionEditPolicy;
import jp.go.aist.rtm.systemeditor.ui.editor.figure.ECFigure;
import jp.go.aist.rtm.toolscommon.model.component.Component;
+import jp.go.aist.rtm.toolscommon.model.component.ComponentPackage;
import jp.go.aist.rtm.toolscommon.model.component.CorbaComponent;
import jp.go.aist.rtm.toolscommon.model.component.CorbaExecutionContext;
import jp.go.aist.rtm.toolscommon.model.component.ExecutionContext;
@@ -368,6 +369,16 @@
@Override
public void notifyChanged(Notification notification) {
+ if (ComponentPackage.eINSTANCE.getExecutionContext_StateL().equals(notification.getFeature())) {
+ PlatformUI.getWorkbench().getDisplay().asyncExec(new Runnable() {
+ @Override
+ public void run() {
+ if (isActive()) {
+ refreshVisuals();
+ }
+ }
+ });
+ }
}
}
@@ -431,6 +442,16 @@
@Override
public void notifyChanged(Notification notification) {
+ if (ComponentPackage.eINSTANCE.getExecutionContext_StateL().equals(notification.getFeature())) {
+ PlatformUI.getWorkbench().getDisplay().asyncExec(new Runnable() {
+ @Override
+ public void run() {
+ if (isActive()) {
+ refreshVisuals();
+ }
+ }
+ });
+ }
}
}
openrtm-commit メーリングリストの案内