コード例 #1
0
  private void initAdvancedModeFromLocalStorage(UnitVmModel model) {
    if (model.getIsAdvancedModeLocalStorageKey() == null) {
      return;
    }

    boolean isAdvancedMode =
        Boolean.parseBoolean(clientStorage.getLocalItem(model.getIsAdvancedModeLocalStorageKey()));
    model.getAdvancedMode().setEntity(isAdvancedMode);
  }
コード例 #2
0
  private void storeAdvancedModeToLocalStorage(UnitVmModel model) {
    if (model.getIsAdvancedModeLocalStorageKey() == null) {
      return;
    }

    clientStorage.setLocalItem(
        model.getIsAdvancedModeLocalStorageKey(),
        Boolean.toString(model.getAdvancedMode().getEntity()));
  }