Skip to content
Permalink
Browse files

remove instance()

  • Loading branch information...
bobjacobsen committed Oct 27, 2018
1 parent 3d42f57 commit 46e23b9b6ba0a3738a04e34493647b82ddf3da64
Showing with 3 additions and 3 deletions.
  1. +3 −3 java/src/jmri/jmrit/display/layoutEditor/LayoutBlockManager.java
@@ -1939,8 +1939,8 @@ public LayoutBlock getProtectedBlockByNamedBean(
@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);
@@ -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) {

0 comments on commit 46e23b9

Please sign in to comment.
You can’t perform that action at this time.