@Override
protected List<AnAction> createActions() {
return Arrays.asList(
new AnAction("Release Info", "", icon("/compiler/information.png")) {
public void actionPerformed(AnActionEvent anActionEvent) {
final Release release = tableModel.getRelease(selectedRow.get());
if (release==null) return;
final Release releaseInfo = herokuProjectService.getReleaseInfo(release);
String html=tableModel.renderRelease(releaseInfo);
Messages.showMessageDialog(html, "Release Info", Messages.getInformationIcon());
}
},
new AnAction("Rollback", "", icon("/actions/rollback.png")) {
public void actionPerformed(AnActionEvent anActionEvent) {
final Release release = tableModel.getRelease(selectedRow.get());
if (release==null) return;
if (Messages.showYesNoDialog("Rollback to the Release: "+release.getName(),"Rollback to Release",Messages.getQuestionIcon())!=Messages.YES) return;
herokuProjectService.rollbackTo(release);
HerokuReleasesWindow.this.doUpdate();
}
},
new AnAction("Update", "", icon("/actions/sync.png")) {