public final class UpdateUnit extends Object
UpdateManager
which represents wrapper of
UpdateElement
. The one unit contains all available elements of
the same type. For example, Editor module version 1.1 is installed in the IDE; a server with a module
update can contain Editor module version 1.2; and Editor version 1.0 is in
IDE backup.Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
List<UpdateElement> |
getAvailableLocalizations()
Returns list of available localization active with current
Locale ,
the localization are not installed in IDE and has higher version then
installed localization (is any). |
List<UpdateElement> |
getAvailableUpdates()
Returns list of available element which are not installed in IDE
and has higher version then installed element (is any).
|
UpdateElement |
getBackup()
Returns
UpdateElement in IDE backup if any or null. |
String |
getCodeName()
Return code name of unit, it's unique among rest of another units.
|
UpdateElement |
getInstalled()
Returns installed
UpdateElement if any or null if
no element which unit's code name is already installed. |
UpdateElement |
getInstalledLocalization()
Returns localization
UpdateElement active with current Locale
or null. |
UpdateManager.TYPE |
getType() |
UpdateUnit |
getVisibleAncestor()
Returns a nearest plugin depending upon this unit which is supposed
to be visible in application UI.
|
int |
hashCode() |
boolean |
isPending()
Returns if the
UpdateUnit is in a pending state. |
String |
toString() |
public String getCodeName()
public UpdateElement getInstalled()
UpdateElement
if any or null if
no element which unit's code name is already installed.UpdateElement
public List<UpdateElement> getAvailableUpdates()
UpdateElement
public UpdateElement getBackup()
UpdateElement
in IDE backup if any or null. The element
can found in backup if any another element did update them.UpdateElement
from backuppublic UpdateElement getInstalledLocalization()
UpdateElement
active with current Locale
or null.UpdateElement
installed in IDEpublic List<UpdateElement> getAvailableLocalizations()
Locale
,
the localization are not installed in IDE and has higher version then
installed localization (is any). These elements can be installed as new one element
or as update of already installed element.UpdateElement
public UpdateManager.TYPE getType()
public boolean isPending()
UpdateUnit
is in a pending state.
State of this unit will be changed while restart the application.public UpdateUnit getVisibleAncestor()