package org.jboss.as.console.client.shared.subsys.undertow;

import org.jboss.as.console.client.tools.modelling.workbench.repository.DataSourceSample;
import org.jboss.as.console.client.tools.modelling.workbench.repository.Sample;
import org.jboss.as.console.client.tools.modelling.workbench.repository.SecurityDomainsSample;
import org.jboss.as.console.client.tools.modelling.workbench.repository.ServletContainerExample;
import org.jboss.as.console.client.tools.modelling.workbench.repository.TransactionSample;
import org.jboss.as.console.client.tools.modelling.workbench.repository.UndertowExample;
import org.jboss.as.console.client.tools.modelling.workbench.repository.UndertowServerExample;
import org.jboss.as.console.mbui.DialogRepository;
import org.useware.kernel.model.Dialog;

import java.util.ArrayList;

/**
 * @author Heiko Braun
 * @date 5/15/13
 */
public class UndertowDialogs implements DialogRepository{

    private final ArrayList<Sample> dialogs;

    public UndertowDialogs() {
        dialogs = new ArrayList<Sample>();

        dialogs.add(new DataSourceSample());
        dialogs.add(new TransactionSample());
        dialogs.add(new SecurityDomainsSample());
        dialogs.add(new UndertowExample());
        dialogs.add(new ServletContainerExample());
        dialogs.add(new UndertowServerExample());
    }
    @Override
    public Dialog getDialog(String name) {
        Dialog dialog = null;

        for(Sample sample : dialogs)
        {
            if(sample.getName().equals(name))
            {
                dialog = sample.getDialog();
                break;
            }
        }
        return dialog;
    }
}

@@ -1044,149 +1044,8 @@
 );%0A%0A
-        dialogs.add(new DataSourceSample());%0A        dialogs.add(new TransactionSample());%0A        dialogs.add(new SecurityDomainsSample());%0A
     

remove unwanted dialogs