public class TaurusApplicationUpdater
extends java.util.Observable
This is an internal class which should not used by clients.
| Constructor and Description |
|---|
TaurusApplicationUpdater() |
| Modifier and Type | Method and Description |
|---|---|
static TaurusApplicationUpdater |
getInstance()
Gets the
TaurusApplicationUpdater's singleton instance. |
ITaurusApplication.EModelUpdateStatus |
getUpdateStatus(ITaurusApplication pAppl)
Gets the model update status for the given application.
|
void |
setUpdateStatus(ITaurusApplication pAppl,
ITaurusApplication.EModelUpdateStatus pNewStatus)
Sets the update status for the given application.
|
void |
updateApplications(java.util.List<ITaurusApplication> pOriginalAppls,
java.util.List<ITaurusApplication> pNewAppls)
Helper method to update a list of existing applications with a list of
new ones.
|
boolean |
updateCheck(TAURUSConfiguration pTauConf,
org.eclipse.core.runtime.IProgressMonitor pMon)
Checks whether the currently loaded TAURUS Application needs to be
updated.
|
void |
updateModel(ITaurusApplication pAppl,
org.eclipse.core.runtime.IProgressMonitor pMon)
Updates the given application.
|
public static TaurusApplicationUpdater getInstance()
TaurusApplicationUpdater's singleton instance.public void updateModel(ITaurusApplication pAppl, org.eclipse.core.runtime.IProgressMonitor pMon) throws TaurusCoreException
pAppl - the applications that should be updatedpMon - a progress monitorTaurusCoreException - if the update failedupdateCheck(TAURUSConfiguration, IProgressMonitor)public boolean updateCheck(TAURUSConfiguration pTauConf, org.eclipse.core.runtime.IProgressMonitor pMon) throws TaurusCoreException
false if:
TAURUSConfiguration does not belong to the
currently loaded Application
ITaurusApplication.EModelUpdateStatus.UPDATE_SUSPENDED
TAURUSConfiguration and
the corresponding entry in the Master Configuration are equal
pTauConf - a TAURUSConfigurationpMon - a progress monitortrue if the currently loaded TAURUS Application
needs to be updated and false otherwise.TaurusCoreException - when the Application attributes can not be refreshedpublic void setUpdateStatus(ITaurusApplication pAppl, ITaurusApplication.EModelUpdateStatus pNewStatus)
pAppl - the application to set the status forpNewStatus - the new statuspublic ITaurusApplication.EModelUpdateStatus getUpdateStatus(ITaurusApplication pAppl)
pAppl - the application to get the status fromITaurusApplication.EModelUpdateStatuspublic void updateApplications(java.util.List<ITaurusApplication> pOriginalAppls, java.util.List<ITaurusApplication> pNewAppls)
pOriginalAppls - the original (old) applications. This list can be modified by
the method.pNewAppls - the new applications (result of the last master configuration
parsing)Copyright © 2015 Micro Focus GmbH. All rights reserved.