@@ -0,0 +1,3532 @@
+package com.codenvy.ide.ext.datasource.client.newdatasource.connector.nuodb;%0A%0Aimport com.codenvy.ide.api.notification.NotificationManager;%0Aimport com.codenvy.ide.dto.DtoFactory;%0Aimport com.codenvy.ide.ext.datasource.client.DatasourceClientService;%0Aimport com.codenvy.ide.ext.datasource.client.DatasourceManager;%0Aimport com.codenvy.ide.ext.datasource.client.DatasourceUiResources;%0Aimport com.codenvy.ide.ext.datasource.client.newdatasource.NewDatasourceWizard;%0Aimport com.codenvy.ide.ext.datasource.client.newdatasource.NewDatasourceWizardMessages;%0Aimport com.codenvy.ide.ext.datasource.client.newdatasource.connector.AbstractNewDatasourceConnectorPage;%0Aimport com.codenvy.ide.ext.datasource.client.newdatasource.connector.JdbcDatasourceConnectorView;%0Aimport com.codenvy.ide.ext.datasource.shared.DatabaseConfigurationDTO;%0Aimport com.codenvy.ide.ext.datasource.shared.DatabaseType;%0Aimport com.google.gwt.user.client.ui.AcceptsOneWidget;%0Aimport com.google.inject.Inject;%0Aimport com.google.web.bindery.event.shared.EventBus;%0A%0A%0A/**%0A * This connector page is using JTDS JDBC Driver to connect to MS SQLserver.%0A */%0Apublic class NuoDBDatasourceConnectorPage extends AbstractNewDatasourceConnectorPage%0A                                                                                    implements%0A                                                                                    JdbcDatasourceConnectorView.ActionDelegate %7B%0A%0A    public static final String NUODB_DB_ID               = %22nuodb%22;%0A    private static final int   DEFAULT_PORT_NUODB_BROKER = 48004;%0A%0A    private final DtoFactory   dtoFactory;%0A%0A    @Inject%0A    public NuoDBDatasourceConnectorPage(final JdbcDatasourceConnectorView view,%0A                                        final NotificationManager notificationManager,%0A                                        final DtoFactory dtoFactory,%0A                                        final DatasourceManager datasourceManager,%0A                                        final EventBus eventBus,%0A                                        final DatasourceClientService service,%0A                                        final DatasourceUiResources resources,%0A                                        final NewDatasourceWizardMessages messages) %7B%0A        super(view, %22NuoDB%22, null, NUODB_DB_ID, datasourceManager, eventBus, service,%0A              notificationManager, dtoFactory, messages);%0A        this.dtoFactory = dtoFactory;%0A    %7D%0A%0A%0A    @Override%0A    public void go(final AcceptsOneWidget container) %7B%0A        container.setWidget(getView());%0A        // set the default port%0A        getView().setPort(DEFAULT_PORT_NUODB_BROKER);%0A    %7D%0A%0A%0A    protected DatabaseConfigurationDTO getConfiguredDatabase() %7B%0A        String datasourceId = wizardContext.getData(NewDatasourceWizard.DATASOURCE_NAME);%0A        DatabaseConfigurationDTO result =%0A                                          dtoFactory.createDto(DatabaseConfigurationDTO.class)%0A                                                    .withDatabaseName(getView().getDatabaseName())%0A                                                    .withHostname(getView().getHostname()).withPort(getView().getPort())%0A                                                    .withUsername(getView().getUsername())%0A                                                    .withPassword(getView().getPassword())%0A                                                    .withDatabaseType(DatabaseType.NUODB)%0A                                                    .withDatasourceId(datasourceId);%0A        return result;%0A    %7D%0A%0A%7D%0A

Add connector for nuoDB - #45 At the moment, only support a single broker