use of org.talend.designer.core.ui.AbstractMultiPageTalendEditor 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();
}
use of org.talend.designer.core.ui.AbstractMultiPageTalendEditor in project tdi-studio-se by Talend.
the class MapperUI method closeMapperDialog.
public void closeMapperDialog(int response) {
mapperResponse = response;
if (response == SWT.OK || response == SWT.APPLICATION_MODAL) {
prepareClosing(response);
mapperComponent.setExternalEmfData(copyOfMapData);
if (response == SWT.APPLICATION_MODAL) {
IExternalNode externalNode = mapperComponent;
IWorkbenchPart part = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().getActiveEditor();
if (externalNode != null && (part instanceof AbstractMultiPageTalendEditor)) {
INode node = externalNode.getOriginalNode();
if (node != null && node instanceof Node) {
Command cmd = new ExternalNodeChangeCommand((Node) node, externalNode);
CommandStack cmdStack = (CommandStack) part.getAdapter(CommandStack.class);
cmdStack.execute(cmd);
}
}
}
IElementParameter elementParameter = mapperComponent.getElementParameter("DIE_ON_ERROR");
if (elementParameter != null) {
elementParameter.setValue(mapperManager.isDieOnError());
}
}
if (response == SWT.OK) {
closeWithoutPrompt = true;
}
if (response == SWT.OK || response == SWT.CANCEL) {
mapperShell.close();
}
}
use of org.talend.designer.core.ui.AbstractMultiPageTalendEditor in project tesb-studio-se by Talend.
the class ESBService method repositoryChange.
private void repositoryChange(RepositoryNode repNode, INode node, IProcess2 process) {
IElementParameter param = node.getElementParameterFromField(EParameterFieldType.PROPERTY_TYPE);
ConnectionItem connectionItem = (ConnectionItem) repNode.getObject().getProperty().getItem();
if (param != null) {
param.getChildParameters().get(EParameterName.PROPERTY_TYPE.getName()).setValue(EmfComponent.REPOSITORY);
param.getChildParameters().get(EParameterName.REPOSITORY_PROPERTY_TYPE.getName()).setValue("");
connectionItem.getProperty().getId();
((PortRepositoryObject) repNode.getParent().getObject()).getId();
((OperationRepositoryObject) repNode.getObject()).getId();
ChangeValuesFromRepository command2 = new ChangeValuesFromRepository(node, null, param.getName() + ":" + EParameterName.PROPERTY_TYPE.getName(), //$NON-NLS-1$
"BUILT_IN");
IEditorPart editor = process.getEditor();
if (editor == null) {
command2.execute();
} else {
((AbstractMultiPageTalendEditor) editor).getTalendEditor().getCommandStack().execute(command2);
}
}
}
Aggregations