use of org.talend.repository.plugin.integration.BindingActions in project tdi-studio-se by Talend.
the class RepositoryService method openLoginDialog.
/*
* (non-Javadoc)
*
* @see org.talend.repository.model.IRepositoryService#openLoginDialog()
*/
@Override
public void openLoginDialog() {
if (isloginDialogDisabled()) {
return;
}
if (CorePlugin.getContext().getProperty(Context.REPOSITORY_CONTEXT_KEY) != null) {
return;
}
Shell shell = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell();
boolean logged = false;
LoginDialogV2 loginDialog = new LoginDialogV2(shell);
// PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().closeAllEditors(true);
logged = loginDialog.open() == LoginDialogV2.OK;
if (logged) {
// addCommand();
new DisableLanguageActions().earlyStartup();
new BindingActions().bind();
IMigrationToolService toolService = CorePlugin.getDefault().getMigrationToolService();
toolService.executeMigration(SwitchProjectAction.PLUGIN_MODEL);
IRunProcessService runService = CorePlugin.getDefault().getRunProcessService();
runService.deleteAllJobs(SwitchProjectAction.PLUGIN_MODEL);
CorePlugin.getDefault().getCodeGeneratorService().initializeTemplates();
CorePlugin.getDefault().getDesignerCoreService().synchronizeDesignerUI(new PropertyChangeEvent(this, IComponentConstants.NORMAL, null, null));
}
}
Aggregations