X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;f=plugins%2Forg.argeo.slc.client.ui.dist%2Fsrc%2Fmain%2Fjava%2Forg%2Fargeo%2Fslc%2Fclient%2Fui%2Fdist%2Fcommands%2FNormalizeWorkspace.java;h=6591a56a72d1557e186066a7639a606f1835bb09;hb=48b6f7647f12f4b96d1914bcafc95efd7f43cc43;hp=7212756ce1f34b8319f182e26e7ea90a05effe3e;hpb=91379d32885f30ad22147a45998ae270da032c83;p=gpl%2Fargeo-slc.git diff --git a/plugins/org.argeo.slc.client.ui.dist/src/main/java/org/argeo/slc/client/ui/dist/commands/NormalizeWorkspace.java b/plugins/org.argeo.slc.client.ui.dist/src/main/java/org/argeo/slc/client/ui/dist/commands/NormalizeWorkspace.java index 7212756ce..6591a56a7 100644 --- a/plugins/org.argeo.slc.client.ui.dist/src/main/java/org/argeo/slc/client/ui/dist/commands/NormalizeWorkspace.java +++ b/plugins/org.argeo.slc.client.ui.dist/src/main/java/org/argeo/slc/client/ui/dist/commands/NormalizeWorkspace.java @@ -75,10 +75,10 @@ public class NormalizeWorkspace extends AbstractHandler implements SlcNames { private Repository repository; // Relevant default node indexers - // WARNING Order call is important. - private ModularDistributionIndexer distBundleIndexer = new ModularDistributionIndexer(); - private JarFileIndexer jarFileIndexer = new JarFileIndexer(); private PdeSourcesIndexer pdeSourceIndexer = new PdeSourcesIndexer(); + // WARNING Order is important: must be called in the following order. + private ModularDistributionIndexer modularDistributionIndexer = new ModularDistributionIndexer(); + private JarFileIndexer jarFileIndexer = new JarFileIndexer(); private ArtifactIndexer artifactIndexer = new ArtifactIndexer(); public Object execute(ExecutionEvent event) throws ExecutionException { @@ -189,7 +189,7 @@ public class NormalizeWorkspace extends AbstractHandler implements SlcNames { if (jarFileIndexer.support(node.getPath())) if (artifactIndexer.support(node.getPath())) { monitor.subTask(node.getName()); - distBundleIndexer.index(node); + modularDistributionIndexer.index(node); jarFileIndexer.index(node); artifactIndexer.index(node); if (node.getSession().hasPendingChanges()) {