eclipse plugin: Use a LinkedHashSet instead of a HashSet...

...to maintain the order in which we add the tree nodes
This commit is contained in:
Timotei Dolean 2011-07-06 16:51:38 +00:00
parent 5ec29ba0f2
commit 25d338b2db

View file

@ -14,7 +14,7 @@ import java.io.Serializable;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Map;
import java.util.Queue;
@ -93,7 +93,7 @@ public class DependencyTreeBuilder implements Serializable
}
// now check what macros are really an inclusion macro
Set<String> containersToAdd = new HashSet<String>( );
Set<String> containersToAdd = new LinkedHashSet<String>( );
for ( WMLMacroCall macro : macroCalls ) {
String name = macro.getName( );