if (event.getPath().toLowerCase().endsWith(".rmd"))
{
file = FilePathUtils.friendlyFileName(event.getPath());
}
ShinyAppsDeployDialog dialog =
new ShinyAppsDeployDialog(
server_, display_, events_,
dir, file, lastAccount, lastAppName,
satellite_.isCurrentWindowSatellite());
dialog.showModal();
}
else if (event.getAction() == ShinyAppsActionEvent.ACTION_TYPE_TERMINATE)
{
terminateShinyApp(FilePathUtils.dirFromFile(event.getPath()));
}