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;
}
}
}
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);
}
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);
}
Aggregations