use of org.talend.designer.camel.resource.core.model.ResourceDependencyModel in project tesb-studio-se by Talend.
the class RouteResourceController method refresh.
@Override
public void refresh(final IElementParameter param, boolean check) {
updateContextList(param);
if (hashCurControls == null) {
return;
}
final String resourceId = (String) param.getValue();
if (resourceId == null) {
labelText.setText("");
} else {
final IElementParameter versionParameter = param.getChildParameters().get(EParameterName.ROUTE_RESOURCE_TYPE_VERSION.getName());
final String version = (String) versionParameter.getValue();
final ResourceDependencyModel rdModel = RouteResourceUtil.createDependency(resourceId, version);
if (rdModel == null) {
labelText.setText("");
} else {
labelText.setText(rdModel.getClassPathUrl());
// version
refreshCombo(versionParameter);
}
}
if (elem != null && elem instanceof Node) {
((Node) elem).checkAndRefreshNode();
}
}
Aggregations