package brn.gui.linktable.diagram.custom.editors;

import org.eclipse.jface.action.IToolBarManager;

import brn.gui.commands.ICommandIds;
import brn.gui.fwdgraph.diagram.custom.layout.SimulationPlacementLayoutAction;
import brn.gui.linktable.diagram.part.ModelDiagramActionBarContributor;

public class LinkTableDiagramActionBarContributor
  extends ModelDiagramActionBarContributor {

  /*
   * (non-Javadoc)
   * @see org.eclipse.ui.part.EditorActionBarContributor#contributeToToolBar(org.eclipse.jface.action.IToolBarManager)
   */
  @Override
  public void contributeToToolBar(IToolBarManager toolBarManager) {
    // TODO Auto-generated method stub
    super.contributeToToolBar(toolBarManager);
    toolBarManager.add(getAction(ICommandIds.CMD_LAYOUT_SIMULATION_PLACEMENT));
  }

  /*
   * (non-Javadoc)
   * @see org.eclipse.gmf.runtime.diagram.ui.parts.DiagramActionBarContributor#buildActions()
   */
  @Override
  protected void buildActions() {
    super.buildActions();

    // add layout action
    addAction(new SimulationPlacementLayoutAction());
  }

}
