ckModifyGenre.getSelection() ||
ckModifyYear.getSelection() ||
ckModifyComment.getSelection();
if (isModified) {
TagUpdater tagUpdater = new TagUpdater(_itemList,
ckModifyTrackNumber.getSelection(), teTrackNumber.getText(),
ckModifyTitle.getSelection(), teTitle.getText(),
ckModifyArtist.getSelection(), cbArtist.getText(),
ckModifyAlbum.getSelection(), cbAlbum.getText(),
ckModifyGenre.getSelection(), cbGenre.getText(),
ckModifyYear.getSelection(), teYear.getText(),
ckModifyComment.getSelection(), teComment.getText());
ProgressMonitorDialog dialog = new ProgressMonitorDialog(Display.getDefault().getActiveShell());
try {
dialog.run(true, true, tagUpdater);
} catch (InvocationTargetException e) {
Log.getInstance(MetaDataDialog.class).error(e.getMessage());
} catch (InterruptedException e) {
Log.getInstance(MetaDataDialog.class).error(e.getMessage());
}
Controller.getInstance().getHSQLController().doCommitDatabase();
if (tagUpdater.getProblemsList().size() > 0) {
Log.getInstance(MetaDataDialog.class).warn("Unable to update some files tags: " + tagUpdater.getProblemsList().size()); //$NON-NLS-1$
TagUpdateProblemDialog problemDialog = new TagUpdateProblemDialog(Display.getDefault().getActiveShell(),
tagUpdater.getProblemsList());
problemDialog.open();
}
// Rebuild Library, and notify Library change.
Controller.getInstance().notifyMetadataChange();