Search in sources :

Example 1 with OpenSQLBuilderDialogJob

use of org.talend.sqlbuilder.ui.OpenSQLBuilderDialogJob in project tdi-studio-se by Talend.

the class SQLBuilderService method openSQLBuilderDialog.

public void openSQLBuilderDialog(ConnectionParameters connParameters, Composite composite, IElement elem, String propertyName, CommandStack commandStack, Object abstractElementPropertySectionController, Object abstractMultiPageTalendEditor) {
    OpenSQLBuilderDialogJob openDialogJob = new OpenSQLBuilderDialogJob(connParameters, composite, elem, propertyName, commandStack, (AbstractElementPropertySectionController) abstractElementPropertySectionController);
    IWorkbenchSiteProgressService siteps = (IWorkbenchSiteProgressService) ((AbstractMultiPageTalendEditor) abstractMultiPageTalendEditor).getSite().getAdapter(IWorkbenchSiteProgressService.class);
    siteps.showInDialog(composite.getShell(), openDialogJob);
    openDialogJob.schedule();
}
Also used : IWorkbenchSiteProgressService(org.eclipse.ui.progress.IWorkbenchSiteProgressService) OpenSQLBuilderDialogJob(org.talend.sqlbuilder.ui.OpenSQLBuilderDialogJob) AbstractMultiPageTalendEditor(org.talend.designer.core.ui.AbstractMultiPageTalendEditor)

Aggregations

IWorkbenchSiteProgressService (org.eclipse.ui.progress.IWorkbenchSiteProgressService)1 AbstractMultiPageTalendEditor (org.talend.designer.core.ui.AbstractMultiPageTalendEditor)1 OpenSQLBuilderDialogJob (org.talend.sqlbuilder.ui.OpenSQLBuilderDialogJob)1