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 editor)
          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.
 
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

createMenuForEditor

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

Parameters:
editor - 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