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(java.lang.String fullCommandLine,
java.lang.String displayName,
boolean alwaysShowOutput)
Adds the specified favorite.
|
java.lang.String |
editFavorite(FavoriteTaskVersion1 favoriteTask,
java.lang.String newFullCommandLine,
java.lang.String newDisplayName,
boolean newAlwaysShowOutput)
Sets new values on the specified favorite task.
|
FavoriteTaskVersion1 |
getFavorite(java.lang.String fullCommandLine)
Returns the favorite with the specified command line
|
FavoriteTaskVersion1 |
getFavorite(TaskVersion1 task)
Returns the favorite with the specified task
|
FavoriteTaskVersion1 |
getFavoriteByDisplayName(java.lang.String displayName)
Returns the favorite with the specified display name
|
java.util.List<FavoriteTaskVersion1> |
getFavoriteTasks() |
FavoriteTaskVersion1 |
promptUserToAddFavorite(java.awt.Window parent)
Display a Swing dialog prompting the user to enter a favorite.
|
boolean |
promptUserToEditFavorite(java.awt.Window parent,
FavoriteTaskVersion1 favorite)
Display a Swing dialog prompting the user to edit the specified favorite
|
void |
removeFavorites(java.util.List<FavoriteTaskVersion1> favoritesToRemove)
Removes the specified favorites.
|
FavoriteTaskVersion1 addFavorite(java.lang.String fullCommandLine, java.lang.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.java.lang.String editFavorite(FavoriteTaskVersion1 favoriteTask, java.lang.String newFullCommandLine, java.lang.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).java.util.List<FavoriteTaskVersion1> getFavoriteTasks()
FavoriteTaskVersion1 getFavorite(java.lang.String fullCommandLine)
fullCommandLine - the command line of the sought favoriteFavoriteTaskVersion1 getFavoriteByDisplayName(java.lang.String displayName)
displayName - the display name of the sought favoriteFavoriteTaskVersion1 getFavorite(TaskVersion1 task)
task - the task of the sought favoriteFavoriteTaskVersion1 promptUserToAddFavorite(java.awt.Window parent)
parent - the parent window of the dialog.boolean promptUserToEditFavorite(java.awt.Window parent,
FavoriteTaskVersion1 favorite)
parent - the parent window of the dialogfavorite - the favorite to editvoid removeFavorites(java.util.List<FavoriteTaskVersion1> favoritesToRemove)
favoritesToRemove - the favorites to removeCopyright © 2013. All rights reserved