in PluginsAndFeatures/azure-toolkit-for-eclipse/com.microsoft.azuretools.appservice/src/com/microsoft/azure/toolkit/eclipse/appservice/property/AppServiceBasePropertyEditor.java [523:574]
public void showProperty(WebAppProperty webAppProperty) {
txtResourceGroup.setText(webAppProperty.getValue(WebAppPropertyViewPresenter.KEY_RESOURCE_GRP) == null ? TXT_NA
: (String) webAppProperty.getValue(WebAppPropertyViewPresenter.KEY_RESOURCE_GRP));
txtStatus.setText(webAppProperty.getValue(WebAppPropertyViewPresenter.KEY_STATUS) == null ? TXT_NA
: (String) webAppProperty.getValue(WebAppPropertyViewPresenter.KEY_STATUS));
txtLocation.setText(webAppProperty.getValue(WebAppPropertyViewPresenter.KEY_LOCATION) == null ? TXT_NA
: (String) webAppProperty.getValue(WebAppPropertyViewPresenter.KEY_LOCATION));
txtSubscription.setText(webAppProperty.getValue(WebAppPropertyViewPresenter.KEY_SUB_ID) == null ? TXT_NA
: (String) webAppProperty.getValue(WebAppPropertyViewPresenter.KEY_SUB_ID));
txtAppServicePlan.setText(webAppProperty.getValue(WebAppPropertyViewPresenter.KEY_PLAN) == null ? TXT_NA
: (String) webAppProperty.getValue(WebAppPropertyViewPresenter.KEY_PLAN));
Object url = webAppProperty.getValue(WebAppPropertyViewPresenter.KEY_URL);
if (url == null) {
lnkUrl.setText(TXT_NA);
} else {
lnkUrl.setText(String.format("<a>https://%s</a>", url));
}
txtPricingTier.setText(webAppProperty.getValue(WebAppPropertyViewPresenter.KEY_PRICING) == null ? TXT_NA
: (String) webAppProperty.getValue(WebAppPropertyViewPresenter.KEY_PRICING));
Object os = webAppProperty.getValue(WebAppPropertyViewPresenter.KEY_OPERATING_SYS);
if (os != null && os instanceof OperatingSystem) {
switch ((OperatingSystem) os) {
case WINDOWS:
case LINUX:
txtJavaVersion.setText(
webAppProperty.getValue(WebAppPropertyViewPresenter.KEY_JAVA_VERSION) == null ? TXT_NA
: (String) webAppProperty.getValue(WebAppPropertyViewPresenter.KEY_JAVA_VERSION));
txtContainer.setText(
webAppProperty.getValue(WebAppPropertyViewPresenter.KEY_JAVA_CONTAINER) == null ? TXT_NA
: (String) webAppProperty.getValue(WebAppPropertyViewPresenter.KEY_JAVA_CONTAINER));
setExtraInfoVisible(true);
break;
default:
setExtraInfoVisible(false);
break;
}
}
// fill table of AppSettings
cachedAppSettings.clear();
Object appSettingsObj = webAppProperty.getValue(WebAppPropertyViewPresenter.KEY_APP_SETTING);
if (appSettingsObj != null && appSettingsObj instanceof Map) {
Map<String, String> appSettings = (Map<String, String>) appSettingsObj;
for (String key : appSettings.keySet()) {
cachedAppSettings.put(key, appSettings.get(key));
}
}
updateMapStatus(editedAppSettings, cachedAppSettings);
resetTblAppSettings(cachedAppSettings);
progressBar.setVisible(false);
cpOverview.getParent().layout();
}