kit/src/main/java/com/oracle/javafx/scenebuilder/kit/editor/panel/content/ContentPanelController.java
@Override
  protected void fxomDocumentDidChange(FXOMDocument oldDocument) {
    if (oldDocument != null) {
      assert oldDocument.getSceneGraphHolder() == this;
      oldDocument.endHoldingSceneGraph();
    }
    final FXOMDocument fxomDocument = getEditorController().getFxomDocument();
    if (fxomDocument != null) {
      assert fxomDocument.getSceneGraphHolder() == null;
      fxomDocument.beginHoldingSceneGraph(this);
    }

    final Exception currentLayoutException = workspaceController.getLayoutException();
    workspaceController.setFxomDocument(fxomDocument);
    final Exception newLayoutException = workspaceController.getLayoutException();
    if ((newLayoutException != null) && (newLayoutException != currentLayoutException)) {
      getEditorController()
          .getMessageLog()
          .logWarningMessage("log.warning.layout.failed", newLayoutException.getMessage());
    }

    if (fxomDocument != null) {
      fxomDocument.refreshSceneGraph();
    }

    if (isOutlinesVisible()) {
      updateOutlines();
    }
    if (currentModeController != null) {
      currentModeController.fxomDocumentDidChange(oldDocument);
    }

    resetViewport();
  }
/**
   * @treatAsPrivate fxom document has changed
   * @param oldDocument old fxom document
   */
@treatAsPrivate fxom document has changed
@param oldDocument old fxom document
@treatAsPrivate fxom document has changed @param oldDocument old fxom document
@Override
  protected void fxomDocumentDidChange(FXOMDocument oldDocument) {
    if (oldDocument != null) {
      assert oldDocument.getSceneGraphHolder() == this;
      oldDocument.endHoldingSceneGraph();
    }
    final FXOMDocument fxomDocument = getEditorController().getFxomDocument();
    if (fxomDocument != null) {
      assert fxomDocument.getSceneGraphHolder() == null;
      fxomDocument.beginHoldingSceneGraph(this);
    }
    final Exception currentLayoutException = workspaceController.getLayoutException();
    workspaceController.setFxomDocument(fxomDocument);
    final Exception newLayoutException = workspaceController.getLayoutException();
    if ((newLayoutException != null) && (newLayoutException != currentLayoutException)) {
      getEditorController()
          .getMessageLog()
          .logWarningMessage("log.warning.layout.failed", newLayoutException.getMessage());
    }
    if (fxomDocument != null) {
      fxomDocument.refreshSceneGraph();
    }
    if (isOutlinesVisible()) {
      updateOutlines();
    }
    if (currentModeController != null) {
      currentModeController.fxomDocumentDidChange(oldDocument);
    }
    resetViewport();
  }
@ Override protected void fxomDocumentDidChange ( FXOMDocument oldDocument ) { if ( oldDocument != null ) { assert oldDocument . getSceneGraphHolder ( ) == this ; oldDocument . endHoldingSceneGraph ( ) ; } final FXOMDocument fxomDocument = getEditorController ( ) . getFxomDocument ( ) ; if ( fxomDocument != null ) { assert fxomDocument . getSceneGraphHolder ( ) == null ; fxomDocument . beginHoldingSceneGraph ( this ) ; } final Exception currentLayoutException = workspaceController . getLayoutException ( ) ; workspaceController . setFxomDocument ( fxomDocument ) ; final Exception newLayoutException = workspaceController . getLayoutException ( ) ; if ( ( newLayoutException != null ) && ( newLayoutException != currentLayoutException ) ) { getEditorController ( ) . getMessageLog ( ) . logWarningMessage ( "log.warning.layout.failed" , newLayoutException . getMessage ( ) ) ; } if ( fxomDocument != null ) { fxomDocument . refreshSceneGraph ( ) ; } if ( isOutlinesVisible ( ) ) { updateOutlines ( ) ; } if ( currentModeController != null ) { currentModeController . fxomDocumentDidChange ( oldDocument ) ; } resetViewport ( ) ; }
@treatAsPrivate fxom document has changed
 @param oldDocument old fxom document
@treatAsPrivate fxom document has changed @param oldDocument old fxom document