Commit be9db935 authored by Adrien's avatar Adrien

Add a manifest in a bos archive of a test to ensure that only the

diagram will be opened after the import.
Since the doOpen method of connectors is implemented, the wizard is
opened too atm..
parent 660b6a1f
......@@ -97,7 +97,8 @@ public class BosArchive {
private void handleSegment(ImportArchiveModel archiveModel, String segment, final List<String> segments,
IRepository repository, Set<String> resourcesToOpen) {
final List<String> parentSegments = segments.subList(0, 2);
Optional<IRepositoryStore<? extends IRepositoryFileStore>> repositoryStoreByName = repository.getRepositoryStoreByName(segment);
Optional<IRepositoryStore<? extends IRepositoryFileStore>> repositoryStoreByName = repository
if (repositoryStoreByName.isPresent()) {
final ImportStoreModel store = new ImportStoreModel(Joiner.on('/').join(parentSegments),
(IRepositoryStore<IRepositoryFileStore>) repositoryStoreByName.get());
......@@ -160,7 +161,7 @@ public class BosArchive {
try (ZipFile archive = getZipFile();
InputStream is = archive.getInputStream(archive.getEntry(file.getPath()));) {
return diagramValidator.validate(is);
}catch (IOException e) {
} catch (IOException e) {
return ValidationStatus.error(String.format("Failed to read %s", file.getFileName()));
......@@ -70,6 +70,7 @@ public class BotImportBOSDialog extends BotWizardDialog {
bot.waitUntil(Conditions.shellIsActive(, 120000);;
final SWTBotShell activeShell = bot.activeShell();
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