FavoritesEditor.FavoriteTasksObserver.class);
editor.addFavoriteTasksObserver(observer, false);
//now perform the edit, but cancel out.
editor.editFavorite(favoriteTask, new FavoritesEditor.EditFavoriteInteraction() {
public boolean editFavorite(FavoritesEditor.EditibleFavoriteTask favoriteTask) {
favoriteTask.displayName = "newname";
favoriteTask.fullCommandLine = "nonexistanttask"; //change the task's full name
favoriteTask.alwaysShowOutput = !favoriteTask.alwaysShowOutput;
return false; //return false to cancel!