Search in sources :

Example 1 with FileJSONTableWizard

use of org.talend.repository.json.ui.wizards.FileJSONTableWizard in project tdi-studio-se by Talend.

the class CreateJSONSchemaAction method openJSONSchemaWizard.

private void openJSONSchemaWizard(final JSONFileConnectionItem item, final MetadataTable metadataTable, final boolean forceReadOnly, final boolean creation) {
    FileJSONTableWizard jsonWizard = new FileJSONTableWizard(PlatformUI.getWorkbench(), creation, item, metadataTable, forceReadOnly);
    jsonWizard.setRepositoryObject(repositoryNode.getObject());
    WizardDialog wizardDialog = new WizardDialog(Display.getCurrent().getActiveShell(), jsonWizard);
    wizardDialog.setPageSize(WIZARD_WIDTH, WIZARD_HEIGHT);
    wizardDialog.create();
    wizardDialog.open();
// FileXmlTableWizard fileXmlTableWizard = new FileXmlTableWizard(PlatformUI.getWorkbench(), creation, item,
// metadataTable,
// forceReadOnly);
// fileXmlTableWizard.setRepositoryObject(node.getObject());
//
// WizardDialog wizardDialog = new WizardDialog(Display.getCurrent().getActiveShell(), fileXmlTableWizard);
// handleWizard(node, wizardDialog);
}
Also used : FileJSONTableWizard(org.talend.repository.json.ui.wizards.FileJSONTableWizard) WizardDialog(org.eclipse.jface.wizard.WizardDialog)

Aggregations

WizardDialog (org.eclipse.jface.wizard.WizardDialog)1 FileJSONTableWizard (org.talend.repository.json.ui.wizards.FileJSONTableWizard)1