Source:
<code>private void remove() { if (getWindow() != null) { return; } RemoveStorageModel model = new RemoveStorageModel(); setWindow(model); model.setTitle(ConstantsManager.getInstance().getConstants().removeStoragesTitle()); model.setHelpTag(HelpTag.remove_storage); model.setHashName("remove_storage"); StorageDomain storage = (StorageDomain) getSelectedItem(); boolean localFsOnly = storage.getStorageType() == StorageType.LOCALFS; AsyncDataProvider.getInstance().getHostsForStorageOperation(new AsyncQuery(new Object[]{this, model}, new INewAsyncCallback() { @Override public void onSuccess(Object target, Object returnValue) { Object[] array = (Object[]) target; StorageListModel storageListModel = (StorageListModel) array[0]; RemoveStorageModel removeStorageModel = (RemoveStorageModel) array[1]; StorageDomain storage = (StorageDomain) storageListModel.getSelectedItem(); ArrayList<VDS> hosts = (ArrayList<VDS>) returnValue; removeStorageModel.getHostList().setItems(hosts); removeStorageModel.getHostList().setSelectedItem(Linq.firstOrDefault(hosts)); <START> removeStorageModel.getFormat().setEntity(!storage.getStorageDomainType().isIsoOrImportExportDomain()); <END> if (hosts.isEmpty()) { UICommand tempVar = createCancelCommand("Cancel"); tempVar.setIsDefault(true); removeStorageModel.getCommands().add(tempVar); } else { UICommand command; command = createOKCommand("OnRemove"); removeStorageModel.getCommands().add(command); command = createCancelCommand("Cancel"); removeStorageModel.getCommands().add(command); } } }), null, localFsOnly); }</code><technical_language>this set checkbox "format" bu default for data domains? this is desired behavior? If yes, storage.getStorageDomainType().isDataDomain()</technical_language>

Target:
private void remove() { if (getWindow() != null) { return; } RemoveStorageModel model = new RemoveStorageModel(); setWindow(model); model.setTitle(ConstantsManager.getInstance().getConstants().removeStoragesTitle()); model.setHelpTag(HelpTag.remove_storage); model.setHashName("remove_storage"); StorageDomain storage = (StorageDomain) getSelectedItem(); boolean localFsOnly = storage.getStorageType() == StorageType.LOCALFS; AsyncDataProvider.getInstance().getHostsForStorageOperation(new AsyncQuery(new Object[]{this, model}, new INewAsyncCallback() { @Override public void onSuccess(Object target, Object returnValue) { Object[] array = (Object[]) target; StorageListModel storageListModel = (StorageListModel) array[0]; RemoveStorageModel removeStorageModel = (RemoveStorageModel) array[1]; StorageDomain storage = (StorageDomain) storageListModel.getSelectedItem(); ArrayList<VDS> hosts = (ArrayList<VDS>) returnValue; removeStorageModel.getHostList().setItems(hosts); removeStorageModel.getHostList().setSelectedItem(Linq.firstOrDefault(hosts)); removeStorageModel.getFormat().setEntity(storage.getStorageDomainType().isDataDomain()); if (hosts.isEmpty()) { UICommand tempVar = createCancelCommand("Cancel"); tempVar.setIsDefault(true); removeStorageModel.getCommands().add(tempVar); } else { UICommand command; command = createOKCommand("OnRemove"); removeStorageModel.getCommands().add(command); command = createCancelCommand("Cancel"); removeStorageModel.getCommands().add(command); } } }), null, localFsOnly); }