public class FavoritesEditorWrapper extends Object implements FavoritesEditorVersion1
| Constructor and Description |
|---|
FavoritesEditorWrapper(FavoritesEditor favoritesEditor) |
| Modifier and Type | Method and Description |
|---|---|
FavoriteTaskVersion1 |
addFavorite(String fullCommandLine,
String displayName,
boolean alwaysShowOutput)
Adds the specified favorite.
|
String |
editFavorite(FavoriteTaskVersion1 favoriteTaskVersion1,
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.
|
public FavoritesEditorWrapper(FavoritesEditor favoritesEditor)
public FavoriteTaskVersion1 addFavorite(String fullCommandLine, String displayName, boolean alwaysShowOutput)
FavoritesEditorVersion1addFavorite in interface FavoritesEditorVersion1fullCommandLine - 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.public String editFavorite(FavoriteTaskVersion1 favoriteTaskVersion1, String newFullCommandLine, String newDisplayName, boolean newAlwaysShowOutput)
FavoritesEditorVersion1editFavorite in interface FavoritesEditorVersion1favoriteTaskVersion1 - 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).public List<FavoriteTaskVersion1> getFavoriteTasks()
getFavoriteTasks in interface FavoritesEditorVersion1public FavoriteTaskVersion1 getFavorite(String fullCommandLine)
FavoritesEditorVersion1getFavorite in interface FavoritesEditorVersion1fullCommandLine - the command line of the sought favoritepublic FavoriteTaskVersion1 getFavoriteByDisplayName(String displayName)
FavoritesEditorVersion1getFavoriteByDisplayName in interface FavoritesEditorVersion1displayName - the display name of the sought favoritepublic FavoriteTaskVersion1 getFavorite(TaskVersion1 task)
FavoritesEditorVersion1getFavorite in interface FavoritesEditorVersion1task - the task of the sought favoritepublic FavoriteTaskVersion1 promptUserToAddFavorite(Window parent)
FavoritesEditorVersion1promptUserToAddFavorite in interface FavoritesEditorVersion1parent - the parent window of the dialog.public boolean promptUserToEditFavorite(Window parent, FavoriteTaskVersion1 favorite)
FavoritesEditorVersion1promptUserToEditFavorite in interface FavoritesEditorVersion1parent - the parent window of the dialogfavorite - the favorite to editpublic void removeFavorites(List<FavoriteTaskVersion1> favoritesToRemove)
FavoritesEditorVersion1removeFavorites in interface FavoritesEditorVersion1favoritesToRemove - the favorites to removeCopyright © 2013. All rights reserved