de.cau.cs.kieler.sim.kiem.config.extension
Class ContributionsProvider

java.lang.Object
  extended by de.cau.cs.kieler.sim.kiem.config.extension.ContributionsProvider
All Implemented Interfaces:
IKiemToolbarContributor

public final class ContributionsProvider
extends Object
implements IKiemToolbarContributor

Provides two combo boxes for the toolbar in the Execution Manager.

Rating proposed yellow
(2010-01-27)

Constructor Summary
ContributionsProvider()
           
 
Method Summary
 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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContributionsProvider

public ContributionsProvider()
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.