Skip to content

Commit

Permalink
remove instance()
Browse files Browse the repository at this point in the history
  • Loading branch information
bobjacobsen committed Oct 27, 2018
1 parent 3d42f57 commit 46e23b9
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -1939,8 +1939,8 @@ private List<LayoutBlock> getProtectingBlocksByBean(
@Nullable NamedBean bean,
@Nullable LayoutEditor panel) {
if (panel == null) {
List<LayoutEditor> panels = jmri.jmrit.display.PanelMenu.instance().
getLayoutEditorPanelList();
List<LayoutEditor> panels = InstanceManager.getDefault(jmri.jmrit.display.PanelMenu.class)
.getLayoutEditorPanelList();
List<LayoutBlock> protectingBlocks = new ArrayList<>();
for (LayoutEditor p : panels) {
protectingBlocks = getProtectingBlocksByBeanByPanel(bean, p);
Expand Down Expand Up @@ -2208,7 +2208,7 @@ private LayoutBlock getFacingBlockByBean(
@Nonnull NamedBean bean,
LayoutEditor panel) {
if (panel == null) {
List<LayoutEditor> panels = jmri.jmrit.display.PanelMenu.instance().
List<LayoutEditor> panels = InstanceManager.getDefault(jmri.jmrit.display.PanelMenu.class).
getLayoutEditorPanelList();
LayoutBlock returnBlock = null;
for (LayoutEditor p : panels) {
Expand Down

0 comments on commit 46e23b9

Please sign in to comment.