refreshAndReenableDeploymentButtons(appModule);
// refreshApplicationDeploymentButtons(appModule);
mappedURIsLink.setEnabled(state == IServer.STATE_STARTED);
CloudApplication cloudApplication = appModule.getApplication();
instanceSpinner.setEnabled(cloudApplication != null);
instancesViewer.getTable().setEnabled(cloudApplication != null);
instancesViewer.setInput(null);
memoryText.setEnabled(cloudApplication != null);
if (cloudApplication != null) {
int appMemory = appModule.getApplication().getMemory();
if (appMemory > 0) {
memoryText.setText(appMemory + ""); //$NON-NLS-1$
}
}
List<String> currentURIs = null;
if (cloudApplication != null) {
currentURIs = cloudApplication.getUris();
ApplicationStats applicationStats = appModule.getApplicationStats();
InstancesInfo instancesInfo = appModule.getInstancesInfo();
if (applicationStats != null) {
List<InstanceStats> statss = applicationStats.getRecords();