src/Tools/jEdit/src/jedit/ProverSetup.scala
changeset 34653 2e033aaf128e
parent 34649 70759ca6bb87
child 34669 73727c7eec64
equal deleted inserted replaced
34652:5fe5e00ec430 34653:2e033aaf128e
    56           }
    56           }
    57         }
    57         }
    58       })
    58       })
    59 
    59 
    60     // register for state-view
    60     // register for state-view
    61     state_update += (state => {
    61     state_update += (cmd => {
    62       val state_view = view.getDockableWindowManager.getDockable("isabelle-state")
    62       val state_view = view.getDockableWindowManager.getDockable("isabelle-state")
    63       val state_panel =
    63       val state_panel =
    64         if (state_view != null) state_view.asInstanceOf[StateViewDockable].panel
    64         if (state_view != null) state_view.asInstanceOf[StateViewDockable].panel
    65         else null
    65         else null
    66       if (state_panel != null) {
    66       if (state_panel != null) {
    67         if (state == null)
    67         if (cmd == null)
    68           state_panel.setDocument(null: Document)
    68           state_panel.setDocument(null: Document)
    69         else
    69         else
    70           state_panel.setDocument(state.result_document, UserAgent.base_URL)
    70           state_panel.setDocument(cmd.result_document(theory_view.current_document()),
       
    71             UserAgent.base_URL)
    71       }
    72       }
    72     })
    73     })
    73 
    74 
    74   }
    75   }
    75 
    76