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);
}
}
}
Aggregations