use of org.talend.core.ui.services.IDesignerCoreUIService in project tdi-studio-se by Talend.
the class BuildJobManager method needClasspathJar.
private boolean needClasspathJar(Map<ExportChoice, Object> exportChoiceMap) {
boolean addClasspathJar = false;
// only binaries need classpath jar.
Object isBinaries = exportChoiceMap.get(ExportChoice.binaries);
if (isBinaries == null || !(isBinaries instanceof Boolean) || !(Boolean) isBinaries) {
return false;
}
IDesignerCoreUIService designerCoreUIService = CoreUIPlugin.getDefault().getDesignerCoreUIService();
if (designerCoreUIService != null) {
addClasspathJar = designerCoreUIService.getPreferenceStore().getBoolean(IRepositoryPrefConstants.ADD_CLASSPATH_JAR);
}
return addClasspathJar;
}
Aggregations