Commit 675a149c authored by Romain Bioteau's avatar Romain Bioteau

fix(import) fix import in community

parent 2434c529
......@@ -162,7 +162,7 @@ public class ExportRepositoryWizardPage extends WizardPage {
for (final ViewerFilter filter : filters) {
treeViewer.addFilter(filter);
}
treeViewer.getTree().setLayoutData(GridDataFactory.fillDefaults().grab(true, true).create());
treeViewer.getTree().setLayoutData(GridDataFactory.fillDefaults().grab(true, true).hint(400, SWT.DEFAULT).create());
treeViewer.bindTree(dbc, stores);
treeViewer.setCheckedElements(defaultSelectedFiles.toArray());
......
......@@ -29,6 +29,8 @@ import org.bonitasoft.studio.importer.bos.i18n.Messages;
import org.bonitasoft.studio.ui.validator.TypedValidator;
import org.eclipse.core.databinding.validation.ValidationStatus;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.emf.ecore.EcorePackage;
import org.eclipse.emf.ecore.util.EcoreUtil;
import org.eclipse.emf.ecore.xmi.FeatureNotFoundException;
......@@ -49,7 +51,8 @@ public class DiagramCompatibilityValidator extends TypedValidator<InputStream, I
"bonitaModelVersion");
String bonitaVersion = emfResourceUtil.getFeatureValueFromEObjectId(uuid, "process:MainProcess",
"bonitaVersion");
if (!ConfigurationIdProvider.getConfigurationIdProvider().isConfigurationIdValid(configId, name,
if (!ConfigurationIdProvider.getBosConfigurationIdProvider().isConfigurationIdValid(
EcoreUtil.createFromString(EcorePackage.Literals.EJAVA_OBJECT, configId), name,
bonitaModelVersion, bonitaVersion)) {
return ValidationStatus.error(Messages.spDiagramCannotBeImportedError);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment