de.cau.cs.kieler.ksbase.ui.menus
Class DynamicMenuContributions

java.lang.Object
  extended by de.cau.cs.kieler.ksbase.ui.menus.DynamicMenuContributions

public final class DynamicMenuContributions
extends Object

Creates menus for all registered editor transformation settings and contributes them when starting an eclipse instance.

Rating proposed yellow
(2009-12-15)

Field Summary
static DynamicMenuContributions INSTANCE
          DynamicMenuContribution instance.
 
Method Summary
 void createAllMenuContributions()
          Creates all menu contributions for all existing editors.
 void createMenuForEditor(EditorTransformationSettings editorSettings)
          Creates a menu for an editor.
 void createMenuForEditors(Collection<EditorTransformationSettings> collection)
          Creates a valid plug-in project for each editor and injects it to the eclipse run-time.
 List<IBalloonContribution> getBalloonContributions()
          Getter method for elements that should show up in balloon popups.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final DynamicMenuContributions INSTANCE
DynamicMenuContribution instance.

Method Detail

getBalloonContributions

public List<IBalloonContribution> getBalloonContributions()
Getter method for elements that should show up in balloon popups.

Returns:
the list of balloon popup contributions.

createMenuForEditor

public void createMenuForEditor(EditorTransformationSettings editorSettings)
Creates a menu for an editor.

Parameters:
editorSettings - The editor to create the menu for.

createAllMenuContributions

public void createAllMenuContributions()
Creates all menu contributions for all existing editors.


createMenuForEditors

public void createMenuForEditors(Collection<EditorTransformationSettings> collection)
Creates a valid plug-in project for each editor and injects it to the eclipse run-time.

Parameters:
collection - The list of editors to create the menu for