Class ViewersComposite

  • All Implemented Interfaces:
    AdaptedErrorHandler

    public class ViewersComposite
    extends java.lang.Object
    implements AdaptedErrorHandler
    Composite of the viewers.
    Author:
    Daniel Sagenschneider
    • Constructor Detail

      • ViewersComposite

        public ViewersComposite​(org.eclipse.gef.mvc.fx.viewer.IViewer contentViewer,
                                org.eclipse.gef.mvc.fx.viewer.IViewer paletteViewer,
                                SelectOnly selectOnly)
        Instantiate.
        Parameters:
        contentViewer - IViewer for the editor.
        paletteViewer - IViewer for the palette.
        selectOnly - SelectOnly. May be null.
    • Method Detail

      • init

        public void init​(boolean isCreateParents)
        Initialises.
        Parameters:
        isCreateParents - Flag indicate whether able to create AdaptedParent instances.
      • getPaletteIndicator

        public javafx.scene.layout.Pane getPaletteIndicator()
        Obtains the palette indicator Pane.
        Returns:
        Palette indicator Pane.
      • getComposite

        public javafx.scene.layout.Pane getComposite()
        Obtains the Pane containing the view.
        Returns:
        Pane containing the view.
      • loadComplete

        public void loadComplete()
        Indicates loading complete so may show errors.
      • showError

        public void showError​(java.lang.String message)
        Description copied from interface: AdaptedErrorHandler
        Shows the error.
        Specified by:
        showError in interface AdaptedErrorHandler
        Parameters:
        message - Error message to show.
      • showError

        public void showError​(java.lang.Throwable error)
        Description copied from interface: AdaptedErrorHandler
        Shows the error.
        Specified by:
        showError in interface AdaptedErrorHandler
        Parameters:
        error - Throwable error to show.