class TimeInstantEditor implements IsWidget {

    void changeIntervalType() {
        int selectedIdx = view.getSelectedIntervalTypeIndex();
        DateIntervalType intervalType = INTERVAL_TYPES.get(selectedIdx);
        timeInstant.setIntervalType(intervalType);

        onChangeCommand.execute();
        initIntervalTypeSelector();
    }

    @Inject public  TimeInstantEditor(View view, TimeAmountEditor timeAmountEditor);

}