private void editTask() {
FavoriteTask selectedFavoriteTask = getFirstSelectedFavoriteTask();
//if the user has kept these two in synch, we'll continue to keep them in synch.
boolean synchronizeDisplayNameWithCommand = selectedFavoriteTask.getDisplayName().equals( selectedFavoriteTask.getFullCommandLine() );
favoritesEditor.editFavorite(selectedFavoriteTask, new SwingEditFavoriteInteraction(SwingUtilities.getWindowAncestor(mainPanel), "Edit Favorite", synchronizeDisplayNameWithCommand ));
}