Search in sources :

Example 16 with IDesignerCoreUIService

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;
}
Also used : IRepositoryViewObject(org.talend.core.model.repository.IRepositoryViewObject) IDesignerCoreUIService(org.talend.core.ui.services.IDesignerCoreUIService)

Aggregations

IDesignerCoreUIService (org.talend.core.ui.services.IDesignerCoreUIService)16 IGEFProcess (org.talend.core.ui.process.IGEFProcess)9 IProcess (org.talend.core.model.process.IProcess)5 IRepositoryViewObject (org.talend.core.model.repository.IRepositoryViewObject)5 ArrayList (java.util.ArrayList)4 PersistenceException (org.talend.commons.exception.PersistenceException)4 IProcess2 (org.talend.core.model.process.IProcess2)4 PropertyChangeCommand (org.talend.designer.core.ui.editor.cmd.PropertyChangeCommand)4 List (java.util.List)3 CoreException (org.eclipse.core.runtime.CoreException)3 EList (org.eclipse.emf.common.util.EList)3 EUpdateItemType (org.talend.core.model.update.EUpdateItemType)3 IUpdateItemType (org.talend.core.model.update.IUpdateItemType)3 Command (org.eclipse.gef.commands.Command)2 IPreferenceStore (org.eclipse.jface.preference.IPreferenceStore)2 MetadataColumn (org.talend.core.model.metadata.builder.connection.MetadataColumn)2 IElementParameter (org.talend.core.model.process.IElementParameter)2 INode (org.talend.core.model.process.INode)2 Item (org.talend.core.model.properties.Item)2 ProcessItem (org.talend.core.model.properties.ProcessItem)2