예제 #1
0
 @Override
 public void setEnabled(boolean enabled) {
   super.setEnabled(enabled);
   getMenuPresenter().setEnabled(enabled);
   if (enabled) {
     getMenuPresenter().setSelected(context.getMeasurementModeEnabled());
   }
 }
예제 #2
0
 @Override
 public void actionPerformed(ActionEvent ev) {
   context.setMeasurementMode(!context.getMeasurementModeEnabled());
   getMenuPresenter().setSelected(context.getMeasurementModeEnabled());
 }