public interface FavoritesEditorVersion1
This is a mirror of FavoritesEditor inside Gradle, but this is meant to aid backward and forward compatibility by shielding you from direct changes within gradle.
| Modifier and Type | Method and Description |
|---|---|
FavoriteTaskVersion1 |
addFavorite(String fullCommandLine,
String displayName,
boolean alwaysShowOutput)
Adds the specified favorite.
|
String |
editFavorite(FavoriteTaskVersion1 favoriteTask,
String newFullCommandLine,
String newDisplayName,
boolean newAlwaysShowOutput)
Sets new values on the specified favorite task.
|
FavoriteTaskVersion1 |
getFavorite(String fullCommandLine)
Returns the favorite with the specified command line
|
FavoriteTaskVersion1 |
getFavorite(TaskVersion1 task)
Returns the favorite with the specified task
|
FavoriteTaskVersion1 |
getFavoriteByDisplayName(String displayName)
Returns the favorite with the specified display name
|
List<FavoriteTaskVersion1> |
getFavoriteTasks() |
FavoriteTaskVersion1 |
promptUserToAddFavorite(Window parent)
Display a Swing dialog prompting the user to enter a favorite.
|
boolean |
promptUserToEditFavorite(Window parent,
FavoriteTaskVersion1 favorite)
Display a Swing dialog prompting the user to edit the specified favorite
|
void |
removeFavorites(List<FavoriteTaskVersion1> favoritesToRemove)
Removes the specified favorites.
|
FavoriteTaskVersion1 addFavorite(String fullCommandLine, String displayName, boolean alwaysShowOutput)
fullCommandLine - the command line that this favorite executesdisplayName - a more user-friendly name for the commandalwaysShowOutput - true to always show output when this favorite is executed. False to only show output when errors occur.String editFavorite(FavoriteTaskVersion1 favoriteTask, String newFullCommandLine, String newDisplayName, boolean newAlwaysShowOutput)
favoriteTask - the favorite to editnewFullCommandLine - the new command linenewDisplayName - the new display namenewAlwaysShowOutput - the new value for whether or not to always show output (vs only showing it when an error occurs).List<FavoriteTaskVersion1> getFavoriteTasks()
FavoriteTaskVersion1 getFavorite(String fullCommandLine)
fullCommandLine - the command line of the sought favoriteFavoriteTaskVersion1 getFavoriteByDisplayName(String displayName)
displayName - the display name of the sought favoriteFavoriteTaskVersion1 getFavorite(TaskVersion1 task)
task - the task of the sought favoriteFavoriteTaskVersion1 promptUserToAddFavorite(Window parent)
parent - the parent window of the dialog.boolean promptUserToEditFavorite(Window parent, FavoriteTaskVersion1 favorite)
parent - the parent window of the dialogfavorite - the favorite to editvoid removeFavorites(List<FavoriteTaskVersion1> favoritesToRemove)
favoritesToRemove - the favorites to removeCopyright © 2013. All rights reserved