Search in sources :

Example 6 with ITemplate

use of com.openshift.restclient.model.template.ITemplate in project jbosstools-openshift by jbosstools.

the class ApplicationSourceFromTemplateModel method handleSelectedAppSource.

private void handleSelectedAppSource(PropertyChangeEvent evt) {
    if (evt.getNewValue() instanceof IApplicationSource && ResourceKind.TEMPLATE.equals(((IApplicationSource) evt.getNewValue()).getKind())) {
        IApplicationSource source = (IApplicationSource) evt.getNewValue();
        ITemplate newTemplate = (ITemplate) source.getSource();
        if (!Objects.equals(newTemplate, this.template)) {
            this.template = newTemplate;
            updateTemplateParameters(newTemplate);
        }
    }
}
Also used : IApplicationSource(org.jboss.tools.openshift.internal.ui.wizard.newapp.IApplicationSource) ITemplate(com.openshift.restclient.model.template.ITemplate)

Aggregations

ITemplate (com.openshift.restclient.model.template.ITemplate)6 OpenShiftException (com.openshift.restclient.OpenShiftException)3 IProjectTemplateProcessing (com.openshift.restclient.capability.resources.IProjectTemplateProcessing)2 IResource (com.openshift.restclient.model.IResource)2 ResourceFactoryException (com.openshift.restclient.ResourceFactoryException)1 IProject (com.openshift.restclient.model.IProject)1 ByteArrayInputStream (java.io.ByteArrayInputStream)1 FileInputStream (java.io.FileInputStream)1 FileNotFoundException (java.io.FileNotFoundException)1 IOException (java.io.IOException)1 InputStream (java.io.InputStream)1 Collection (java.util.Collection)1 IStatus (org.eclipse.core.runtime.IStatus)1 Status (org.eclipse.core.runtime.Status)1 AbstractWaitCondition (org.eclipse.reddeer.common.condition.AbstractWaitCondition)1 WaitWhile (org.eclipse.reddeer.common.wait.WaitWhile)1 SelectionAdapter (org.eclipse.swt.events.SelectionAdapter)1 SelectionEvent (org.eclipse.swt.events.SelectionEvent)1 CoreMatchers.containsString (org.hamcrest.CoreMatchers.containsString)1 ResourceSummaryDialog (org.jboss.tools.openshift.internal.ui.dialog.ResourceSummaryDialog)1