Search in sources :

Example 1 with IConnectionChangedListener

use of org.jboss.tools.openshift.internal.ui.server.ChooseOpenshiftConnectionComposite.IConnectionChangedListener in project jbosstools-openshift by jbosstools.

the class ChooseOpenshiftConnectionFragment method createComposite.

@Override
public Composite createComposite(Composite parent, final IWizardHandle handle) {
    this.handle = handle;
    initWizardHandle();
    chooseConnectionComposite = new ChooseOpenshiftConnectionComposite(parent);
    chooseConnectionComposite.setConnectionChangeListener(new IConnectionChangedListener() {

        @Override
        public void connectionChanged(IConnection newVal) {
            selectedConnectionChanged(newVal);
        }
    });
    getContainer(getPage(handle)).addPageChangingListener(onPageChanging(handle));
    selectedConnectionChanged(chooseConnectionComposite.getConnection());
    return chooseConnectionComposite;
}
Also used : IConnection(org.jboss.tools.openshift.common.core.connection.IConnection) IConnectionChangedListener(org.jboss.tools.openshift.internal.ui.server.ChooseOpenshiftConnectionComposite.IConnectionChangedListener)

Aggregations

IConnection (org.jboss.tools.openshift.common.core.connection.IConnection)1 IConnectionChangedListener (org.jboss.tools.openshift.internal.ui.server.ChooseOpenshiftConnectionComposite.IConnectionChangedListener)1