[openrtm-commit:01741] r555 - trunk/rtmtools/jp.go.aist.rtm.rtcbuilder/src/jp/go/aist/rtm/rtcbuilder/ui/editors
openrtm @ openrtm.org
openrtm @ openrtm.org
2016年 2月 22日 (月) 14:10:35 JST
Author: ga
Date: 2016-02-22 14:10:35 +0900 (Mon, 22 Feb 2016)
New Revision: 555
Modified:
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder/src/jp/go/aist/rtm/rtcbuilder/ui/editors/ActivityEditorFormPage.java
Log:
Modified behavior of the activity tab #3447
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder/src/jp/go/aist/rtm/rtcbuilder/ui/editors/ActivityEditorFormPage.java
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder/src/jp/go/aist/rtm/rtcbuilder/ui/editors/ActivityEditorFormPage.java 2016-02-22 04:53:20 UTC (rev 554)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder/src/jp/go/aist/rtm/rtcbuilder/ui/editors/ActivityEditorFormPage.java 2016-02-22 05:10:35 UTC (rev 555)
@@ -197,6 +197,28 @@
@Override
public void mouseDoubleClick(MouseEvent e) {
+ RtcParam rtcParam = editor.getRtcParam();
+ int index = implChk.indexOf(e.getSource());
+ if(index==IRtcBuilderConstants.ACTIVITY_INITIALIZE) {
+ onBtn.setSelection(true);
+ offBtn.setSelection(false);
+ onBtn.setEnabled(false);
+ offBtn.setEnabled(false);
+ } else {
+ rtcParam.setActionImplemented(index, !rtcParam.getActionImplemented(index));
+ if( rtcParam.getActionImplemented(index) ) {
+ onBtn.setSelection(true);
+ offBtn.setSelection(false);
+ implChk.get(index).setBackground(new Color(PlatformUI.getWorkbench().getDisplay(), BuilderViewPreferenceManager.defaultRGBMap.get(BuilderViewPreferenceManager.COLOR_COMPONENT)));
+ } else {
+ onBtn.setSelection(false);
+ offBtn.setSelection(true);
+ implChk.get(index).setBackground(getSite().getShell().getDisplay().getSystemColor(SWT.COLOR_WHITE));
+ }
+ onBtn.setEnabled(true);
+ offBtn.setEnabled(true);
+ }
+ update();
}
@Override
More information about the openrtm-commit
mailing list