private void setXMLOutlineInput() {
    IDocumentProvider provider = fEditor.getDocumentProvider();

    // force creation of the document & the model.
    IDocument document = provider.getDocument(fEditor.getEditorInput());
    IXMLModelProvider modelProvider = UIPlugin.getDefault().getXMLModelProvider();
    XMLReconciler model = (modelProvider).getModel(document);
    fXMLOutlinePage.setInput(model.getRoot());
  }
 public MultiPageContentOutline(SpecEditor editor, IEditorInput input) {
   this.fEditor = editor;
   fToggleAction = new MultiPageContentOutline.ToggleAction(this);
   fSelectionProvider = editor.getSelectionProvider();
   fMessagePage = new MessagePage();
   fXMLOutlinePage = new XMLOutlinePage(editor, input);
   fTapestryOutlinePage = new TapestryOutlinePage(editor);
   fCurrentPage = getInitialPage();
   fEditor.addReconcileListener(this);
 }
 /*
  * (non-Javadoc)
  *
  * @see org.eclipse.jface.viewers.ISelectionChangedListener#selectionChanged(org.eclipse.jface.viewers.SelectionChangedEvent)
  */
 public void selectionChanged(SelectionChangedEvent event) {
   ISelection selection = event.getSelection();
   if (selection instanceof DoubleClickSelection)
     fEditor.openTo(((DoubleClickSelection) selection).getFirstElement());
   fireSelectionChange(event.getSelectionProvider(), selection);
 }