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