change messages

This commit is contained in:
Branislav Stojkovic
2016-10-31 22:04:06 +01:00
parent 5981f96916
commit 3776955d7b
@@ -349,9 +349,8 @@ public class ResultsScrollPanel extends JScrollPane {
descriptionArea.setText(result.getDescription()); descriptionArea.setText(result.getDescription());
categoryLabel.setText("<html>Category: <b>" + result.getCategory() + "</b></html>"); categoryLabel.setText("<html>Category: <b>" + result.getCategory() + "</b></html>");
updatedLabel.setText("<html>Last updated: <b>" + result.getUpdated() + "</b></html>"); updatedLabel.setText("<html>Last updated: <b>" + result.getUpdated() + "</b></html>");
cloudUI.showMessage( cloudUI.showMessage("The project has been updated successfully.", "Upload Success",
"The project has been uploaded to the cloud successfully. Thank you for your contribution!", IView.INFORMATION_MESSAGE);
"Upload Success", IView.INFORMATION_MESSAGE);
} }
}); });
} }
@@ -375,7 +374,7 @@ public class ResultsScrollPanel extends JScrollPane {
DialogFactory.getInstance().showOpenDialog(FileFilterEnum.DIY.getFilter(), null, DialogFactory.getInstance().showOpenDialog(FileFilterEnum.DIY.getFilter(), null,
FileFilterEnum.DIY.getExtensions()[0], null, cloudUI.getOwnerFrame()); FileFilterEnum.DIY.getExtensions()[0], null, cloudUI.getOwnerFrame());
if (file != null) { if (file != null) {
LOG.info("Preparing re-upload of project " + project.getName() + "(" + project.getId() + ")"); LOG.info("Preparing replacement for project " + project.getName() + "(" + project.getId() + ")");
cloudUI.executeBackgroundTask(new ITask<String[]>() { cloudUI.executeBackgroundTask(new ITask<String[]>() {
@Override @Override
@@ -417,10 +416,8 @@ public class ResultsScrollPanel extends JScrollPane {
categoryLabel.setText("<html>Category: <b>" + result.getCategory() + "</b></html>"); categoryLabel.setText("<html>Category: <b>" + result.getCategory() + "</b></html>");
updatedLabel.setText("<html>Last updated: <b>" + result.getUpdated() + "</b></html>"); updatedLabel.setText("<html>Last updated: <b>" + result.getUpdated() + "</b></html>");
thumbnailLabel.setIcon(new ImageIcon(dialog.getThumbnail())); thumbnailLabel.setIcon(new ImageIcon(dialog.getThumbnail()));
cloudUI cloudUI.showMessage("The project has been replaced successfully.", "Upload Success",
.showMessage( IView.INFORMATION_MESSAGE);
"The project has been uploaded to the cloud successfully. Thank you for your contribution!",
"Upload Success", IView.INFORMATION_MESSAGE);
} }
}); });
} else { } else {