GT-3179 - Help - addressed missing help for tool options; found more

missing help; updated test
This commit is contained in:
dragonmacher 2019-10-07 13:13:13 -04:00
parent 66198876e5
commit 05b23fb9b4
9 changed files with 78 additions and 68 deletions

View file

@ -24,7 +24,6 @@ import java.util.*;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import java.util.concurrent.atomic.AtomicReference;
import javax.help.*;
import javax.help.Map.ID;
@ -497,9 +496,7 @@ public class HelpManager implements HelpService {
private Map<Object, HelpLocation> copyHelpLocations() {
// we must copy the help locations, since we are in a background thread and the
// locations map is frequently updated by the Swing thread
AtomicReference<Map<Object, HelpLocation>> ref = new AtomicReference<>();
SystemUtilities.runSwingNow(() -> ref.set(new HashMap<>(helpLocations)));
return ref.get();
return Swing.runNow(() -> new HashMap<>(helpLocations));
}
//