Class CollapseExpandActions


  • public class CollapseExpandActions
    extends Object
    Instance of this class creates "Collapse All" and "Expand All" actions.
    • Constructor Detail

      • CollapseExpandActions

        public CollapseExpandActions()
    • Method Detail

      • getCollapseAllAction

        public org.eclipse.jface.action.Action getCollapseAllAction​(ErdEditor editor)
        Returns "Collapse All" action.
        Parameters:
        editor - - editor to create action for. Can't be null.
        Returns:
        "Collapse All" action. Can't return null.
      • getExpandAllAction

        public org.eclipse.jface.action.Action getExpandAllAction​(ErdEditor editor)
        Returns "Expand All" action.
        Parameters:
        editor - - editor to create action for. Can't be null.
        Returns:
        "Expand All" action. Can't return null.
      • setFiguresCollapsed

        public void setFiguresCollapsed​(Collection<? extends org.eclipse.draw2d.IFigure> figures,
                                        boolean isCollapsed)
        Sets given figure collapsed or expanded.
        Parameters:
        figures - - figures to set collapsed/expanded. Can't be null.
        isCollapsed - - true if figures should be collapsed.