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