Search in sources :

Example 1 with PricingTier

use of com.microsoft.azure.management.appservice.PricingTier in project azure-tools-for-java by Microsoft.

the class AppServiceCreateDialog method fillAppServicePlanPricingTiers.

protected void fillAppServicePlanPricingTiers() {
    try {
        comboAppServicePlanPricingTier.removeAll();
        binderAppServicePlanPricingTier = new ArrayList<PricingTier>();
        List<PricingTier> l = createListFromClassFields(PricingTier.class);
        for (PricingTier aspt : l) {
            comboAppServicePlanPricingTier.add(aspt.toString());
            binderAppServicePlanPricingTier.add(aspt);
        }
        if (comboAppServicePlanPricingTier.getItemCount() > 0) {
            comboAppServicePlanPricingTier.select(0);
        }
    } catch (Exception ex) {
        ex.printStackTrace();
        LOG.log(new Status(IStatus.ERROR, Activator.PLUGIN_ID, "fillAppServicePlanPricingTiers@AppServiceCreateDialog", ex));
    }
}
Also used : PricingTier(com.microsoft.azure.management.appservice.PricingTier) IStatus(org.eclipse.core.runtime.IStatus) Status(org.eclipse.core.runtime.Status) PartInitException(org.eclipse.ui.PartInitException) InvocationTargetException(java.lang.reflect.InvocationTargetException) MalformedURLException(java.net.MalformedURLException)

Aggregations

PricingTier (com.microsoft.azure.management.appservice.PricingTier)1 InvocationTargetException (java.lang.reflect.InvocationTargetException)1 MalformedURLException (java.net.MalformedURLException)1 IStatus (org.eclipse.core.runtime.IStatus)1 Status (org.eclipse.core.runtime.Status)1 PartInitException (org.eclipse.ui.PartInitException)1