public class Remove extends Object implements GroupAction
This class determines whether a bunch of files can be marked obsolete on a given update site (possibly unshadowing another update site's versions of the same files), how to do so, and what to call this action in the GUI.
| Modifier and Type | Method and Description |
|---|---|
String |
getLabel(FilesCollection files,
Iterable<FileObject> selected) |
boolean |
isValid(FilesCollection files,
FileObject file)
Determines whether we can remove (or unshadow) files from a particular
update site.
|
void |
setAction(FilesCollection files,
FileObject file) |
String |
toString() |
public Remove(String updateSite)
public boolean isValid(FilesCollection files, FileObject file)
| remove | unshadow | |
|---|---|---|
| INSTALLED | NO | OVERRIDES |
| LOCAL_ONLY | NO | NO |
| MODIFIED | NO | OVERRIDES |
| NEW | YES | OVERRIDES |
| NOT_INSTALLED | YES | OVERRIDES |
| OBSOLETE | NO | NO |
| OBSOLETE_MODIFIED | NO | NO |
| OBSOLETE_UNINSTALLED | NO | NO |
| UPDATEABLE | NO | OVERRIDES |
isValid in interface GroupActionpublic void setAction(FilesCollection files, FileObject file)
setAction in interface GroupActionpublic String getLabel(FilesCollection files, Iterable<FileObject> selected)
getLabel in interface GroupActionCopyright © 2014–2022 ImageJ. All rights reserved.