de.cau.cs.kieler.sim.kiem.automated.ui.extension
Class ToolbarContributor

java.lang.Object
  extended by org.eclipse.ui.menus.AbstractContributionFactory
      extended by de.cau.cs.kieler.sim.kiem.automated.ui.extension.ToolbarContributor
All Implemented Interfaces:
IKiemToolbarContributor

public class ToolbarContributor
extends AbstractContributionFactory
implements IKiemToolbarContributor

The toolbar contributor is responsible for providing the wizardAction that is added to the toolbar of the KIEM. It also creates the wizardAction that is added to the toolbar of the view.

Rating proposed yellow
(2010-01-29)

Constructor Summary
ToolbarContributor()
          Creates a new ToolbarContributor.
 
Method Summary
 void createContributionItems(IServiceLocator serviceLocator, IContributionRoot additions)
          
 Action[] provideToolbarActions(Object info)
           The plugin will add the components from left to right in the order that the contributors are stored in the extension registry.
 ControlContribution[] provideToolbarContributions(Object info)
           The plugin will add the components from left to right in the order that the contributors are stored in the extension registry.
 
Methods inherited from class org.eclipse.ui.menus.AbstractContributionFactory
getLocation, getNamespace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ToolbarContributor

public ToolbarContributor()
Creates a new ToolbarContributor.

Method Detail

provideToolbarContributions

public ControlContribution[] provideToolbarContributions(Object info)

The plugin will add the components from left to right in the order that the contributors are stored in the extension registry. KIEM's own controls will be added after the contributed components have been added.

The array should contain the components in the order that they are supposed to be added, null values will be ignored.

Specified by:
provideToolbarContributions in interface IKiemToolbarContributor
Parameters:
info - may hold some information.
Returns:
the list of controls that should be contributed.

provideToolbarActions

public Action[] provideToolbarActions(Object info)

The plugin will add the components from left to right in the order that the contributors are stored in the extension registry. KIEM's own controls will be added after the contributed components have been added.

The array should contain the components in the order that they are supposed to be added, null values will be ignored.

Specified by:
provideToolbarActions in interface IKiemToolbarContributor
Parameters:
info - may hold some information.
Returns:
the list of controls that should be contributed.

createContributionItems

public void createContributionItems(IServiceLocator serviceLocator,
                                    IContributionRoot additions)

Specified by:
createContributionItems in class AbstractContributionFactory