Search in sources :

Example 1 with Step0WizardPage

use of org.talend.metadata.managment.ui.wizard.metadata.connection.Step0WizardPage in project tdi-studio-se by Talend.

the class JSONWizard method addPages.

/**
     * Adding the page to the wizard.
     */
@Override
public void addPages() {
    if (isToolbar) {
        pathToSave = null;
    }
    propertiesWizardPage = new Step0WizardPage(connectionProperty, pathToSave, JSONRepositoryNodeType.JSON, !isRepositoryObjectEditable(), creation);
    jsonFileSelectPage = new JSONFileSelectWizardPage(creation, connectionItem, isRepositoryObjectEditable(), existingNames);
    setDefaultPageImageDescriptor(ImageProvider.getImageDesc(JSONImage.JSON_ICON32));
    if (connection != null) {
        List schemas = connection.getSchema();
        if (!schemas.isEmpty()) {
            JSONXPathLoopDescriptor currentSchema = (JSONXPathLoopDescriptor) schemas.get(0);
            oldAbstractQueryPath = currentSchema.getAbsoluteXPathQuery();
        }
    }
    if (creation) {
        setWindowTitle("New Json File");
        propertiesWizardPage.setTitle("File - Step" + " 1 " + "of" + " 5");
        propertiesWizardPage.setDescription("Add a Metadata File on repository\\nDefine the properties");
        addPage(propertiesWizardPage);
        propertiesWizardPage.setPageComplete(false);
        jsonFileSelectPage.setTitle("File - Step" + " 2 " + "of" + " 5");
        jsonFileSelectPage.setDescription("Select input or output model to create json metadata connection");
        addPage(jsonFileSelectPage);
        jsonFileSelectPage.setPageComplete(true);
    } else {
        setWindowTitle("Edit an existing Json File");
        propertiesWizardPage.setTitle("File - Step" + " 1 " + "of" + " 4");
        propertiesWizardPage.setDescription("Edit an existing Metadata File on repository\\nUpdate the properties");
        addPage(propertiesWizardPage);
        jsonFileSelectPage.setTitle("File - Step" + " 2 " + "of" + " 4");
        jsonFileSelectPage.setDescription("Select input or output model to create json metadata connection");
        addPage(jsonFileSelectPage);
        jsonFileSelectPage.setPageComplete(true);
        if (!isRepositoryObjectEditable()) {
            creation = true;
        }
    }
}
Also used : JSONXPathLoopDescriptor(org.talend.repository.model.json.JSONXPathLoopDescriptor) List(java.util.List) ArrayList(java.util.ArrayList) EList(org.eclipse.emf.common.util.EList) Step0WizardPage(org.talend.metadata.managment.ui.wizard.metadata.connection.Step0WizardPage)

Example 2 with Step0WizardPage

use of org.talend.metadata.managment.ui.wizard.metadata.connection.Step0WizardPage in project tesb-studio-se by Talend.

the class ESBWizard method addPages.

@Override
public void addPages() {
    mainPage = new Step0WizardPage(property, pathToSave, ESBRepositoryNodeType.SERVICES, false, true);
    addPage(mainPage);
    wsdlPage = new OpenWSDLPage(node, pathToSave, serviceItem, creation);
    addPage(wsdlPage);
}
Also used : Step0WizardPage(org.talend.metadata.managment.ui.wizard.metadata.connection.Step0WizardPage)

Example 3 with Step0WizardPage

use of org.talend.metadata.managment.ui.wizard.metadata.connection.Step0WizardPage in project tdi-studio-se by Talend.

the class FTPWizard method addPages.

/*
     * (non-Javadoc)
     * 
     * @see org.eclipse.jface.wizard.IWizard#addPages()
     */
@Override
public void addPages() {
    String windowTitle = Messages.getString("FTPWizard.CreateNewFTPWizard");
    if (!creation) {
        windowTitle = Messages.getString("FTPWizard.EditFTPWizard");
    }
    //$NON-NLS-1$
    setWindowTitle(windowTitle);
    setDefaultPageImageDescriptor(ImageProvider.getImageDesc(ECoreImage.UNKNOWN));
    if (isToolBar) {
        pathToSave = null;
    }
    propertiesWizardPage = new Step0WizardPage(connectionProperty, pathToSave, ERepositoryObjectType.METADATA_FILE_FTP, !isRepositoryObjectEditable(), creation);
    //$NON-NLS-1$
    propertiesWizardPage.setTitle("Talend FTP");
    //$NON-NLS-1$
    propertiesWizardPage.setDescription(Messages.getString("FTPWizard_create_ftp_conn"));
    ftpPage = new FTPPage(connectionItem, isRepositoryObjectEditable(), existingNames);
    addPage(propertiesWizardPage);
    addPage(ftpPage);
}
Also used : FTPPage(org.talend.repository.ftp.ui.wizards.pags.FTPPage) Step0WizardPage(org.talend.metadata.managment.ui.wizard.metadata.connection.Step0WizardPage)

Aggregations

Step0WizardPage (org.talend.metadata.managment.ui.wizard.metadata.connection.Step0WizardPage)3 ArrayList (java.util.ArrayList)1 List (java.util.List)1 EList (org.eclipse.emf.common.util.EList)1 FTPPage (org.talend.repository.ftp.ui.wizards.pags.FTPPage)1 JSONXPathLoopDescriptor (org.talend.repository.model.json.JSONXPathLoopDescriptor)1