Class ActionSetSeparator

java.lang.Object
org.eclipse.jface.action.ContributionItem
org.eclipse.ui.internal.ActionSetSeparator
All Implemented Interfaces:
IContributionItem, IActionSetContributionItem

public class ActionSetSeparator extends ContributionItem implements IActionSetContributionItem
This class represents a pseudo-group defined by an action set. It is not a real group ( aka GroupMarker ) because that would interfere with the pre-existing groups in a menu or toolbar.
  • Constructor Details

    • ActionSetSeparator

      public ActionSetSeparator(String groupName, String newActionSetId)
      Constructs a new group marker.
  • Method Details

    • fill

      public void fill(Menu menu, int index)
      Description copied from class: ContributionItem
      The default implementation of this IContributionItem method does nothing. Subclasses may override.
      Specified by:
      fill in interface IContributionItem
      Overrides:
      fill in class ContributionItem
      Parameters:
      menu - the parent menu
      index - the index where the controls are inserted, or -1 to insert at the end
    • fill

      public void fill(ToolBar toolbar, int index)
      Description copied from class: ContributionItem
      The default implementation of this IContributionItem method does nothing. Subclasses may override.
      Specified by:
      fill in interface IContributionItem
      Overrides:
      fill in class ContributionItem
      Parameters:
      toolbar - the parent tool bar
      index - the index where the controls are inserted, or -1 to insert at the end
    • getActionSetId

      public String getActionSetId()
      Returns the action set id.
      Specified by:
      getActionSetId in interface IActionSetContributionItem
    • isSeparator

      public boolean isSeparator()
      The Separator implementation of this IContributionItem method returns true
      Specified by:
      isSeparator in interface IContributionItem
      Overrides:
      isSeparator in class ContributionItem
      Returns:
      true if this item is a separator, and false for normal items
      See Also:
    • setActionSetId

      public void setActionSetId(String newActionSetId)
      Sets the action set id.
      Specified by:
      setActionSetId in interface IActionSetContributionItem