Poseidon for UMLTM
  UMLdoc
 PREV  CLASSIFIER    NEXT  CLASSIFIER     FRAMES    NO FRAMES      
SUMMARY:   INNER | ATTR | ASSOC | CONSTR | METHOD     DETAIL:   INNER | ATTR | ASSOC | CONSTR | METHOD     DIAGRAMS:   COLLAB | SEQ | STATE | ACTIV

com.gentleware.editor

Class KitManager

com.gentleware.editor.KitManager

public class KitManager


Manages all the languages that were installed as plugins for codegeneration framework, so that the generated code can be visible in enhanced editor. The 2 static methods that should be used are

  • addKit that should be used while installing or enabling the plugin
  • removeKit that should be used while uninstalling or disabling the plugin
  • (See further description).

    Since:
    2.1


     Attribute Summary
    private boolean  _editorLoaded
     
    private static Map  _kitHashtable
     
    private static Map  _updateMethodBodiesMap
     
    arrow_up
     

     Association Summary
    private LanguageKit  _activeLanguageKit
     
    private KitManager  _kitManager
     
    private ProfileRegistry  _umlProfileManager
     
    public KitManager  kitManager
     
    private PropertyChangeSupport  prop
     
    arrow_up
     

     Constructor Summary
    private   KitManager()
    used for beeing a singleton  
    arrow_up
     

     Method Summary
    public static boolean   addKit(String kitName, String languageKey, ExtKit extKit, boolean activityStatus)
    Method for adding a new kit to be diplyed in the enhancedEditor  
    public static boolean   addKit(String kitName, String languageKey, ExtKit extKit)
    Method for adding a new kit to be diplyed in the enhancedEditor  
    boolean   addKit(LanguageKit kit)
    seems to be never used... 
    public boolean   addKit(LanguageKit kit, boolean reload)
    used for adding default kit whilst loading Poseidon  
    public void   addPropertyChangeListener(PropertyChangeListener l)
    registering property change listener for chnging the state of KitManager, i.e. 
    public static boolean   addUpdateMethodBodyListener(String kitName, DocumentListener mbUpdateListener)
    Adds a Document listener that will be notified of method body for specific langugae will be changed  
    private boolean   addUpdateMethodBodyListenerInternal(String kitName, DocumentListener mbUpdateListener)
     
    public List   getAllKeys()
     
    public List   getAllKits()
     
    static KitManager   getInstance()
     
    public LanguageKit   getKit(String name)
     
    protected DocumentListener   getUpdateMethodBodyListener(LanguageKit languageKit)
     
    public boolean   isEditorLoaded()
     
    public static boolean   removeKit(String kitName)
    removes kit from editor  
    boolean   removeKit(LanguageKit kit)
    removes given kit from KitManager  
    public void   removePropertyChangeListener(PropertyChangeListener l)
     
    public static boolean   removeUpdateMethodBodyListener(String kitName)
     
    private boolean   removeUpdateMethodBodyListenerInternal(String kitName)
     
    protected void   setEnabledLanguageKit(String language, boolean value)
     
    arrow_up
     

    Tagged Values
    static false
    gentleware-imported-line-number 32
    gentleware-imported-package-statement-line-number 5
     

     Attribute Detail

    _editorLoaded

    private boolean _editorLoaded

    arrow_up


    _kitHashtable

    private static Map _kitHashtable

    arrow_up


    _updateMethodBodiesMap

    private static Map _updateMethodBodiesMap

    arrow_up
     Association Detail

    _activeLanguageKit

    private LanguageKit _activeLanguageKit

    arrow_up


    _kitManager

    private KitManager _kitManager

    arrow_up


    _umlProfileManager

    private ProfileRegistry _umlProfileManager

    arrow_up


    kitManager

    public KitManager kitManager

    arrow_up


    prop

    private PropertyChangeSupport prop

    arrow_up
     Constructor Detail

    KitManager

    private com.gentleware.editor.KitManager KitManager()


    used for beeing a singleton  
    Returns:
    arrow_up
     Method Detail

    addKit

    public static boolean addKit(String kitName, String languageKey, ExtKit extKit, boolean activityStatus)


    Method for adding a new kit to be diplyed in the enhancedEditor  
    Parameters:
    kitName - name of the Kit, will be visible in drop down menu
    languageKey - the key that will be used by CodeGeneration framework for generating code
    extKit - ExternalKit for syntax highlighting, if provided as null, default PlainKit will be used
    activityStatus - Whether this kit should be enabled initially.
    Returns:
    success of operaion
    arrow_up


    addKit

    public static boolean addKit(String kitName, String languageKey, ExtKit extKit)


    Method for adding a new kit to be diplyed in the enhancedEditor  
    Parameters:
    kitName - name of the Kit, will be visible in drop down menu
    languageKey - the key that will be used by CodeGeneration framework for generating code
    extKit - ExternalKit for syntax highlighting, if provided as null, default PlainKit will be used
    Returns:
    success of operaion
    arrow_up


    addKit

    boolean addKit(LanguageKit kit)


    seems to be never used...  
    Parameters:
    kit -
    Returns:
    arrow_up


    addKit

    public boolean addKit(LanguageKit kit, boolean reload)


    used for adding default kit whilst loading Poseidon  
    Parameters:
    kit - Language Kit
    reload - speciying whether or not Editor should reload languages that it has
    Returns:
    arrow_up


    addPropertyChangeListener

    public void addPropertyChangeListener(PropertyChangeListener l)


    registering property change listener for chnging the state of KitManager, i.e. either LanguageKit was added or removed  
    Parameters:
    l -
    arrow_up


    addUpdateMethodBodyListener

    public static boolean addUpdateMethodBodyListener(String kitName, DocumentListener mbUpdateListener)


    Adds a Document listener that will be notified of method body for specific langugae will be changed  
    Parameters:
    kitName - as a key to access afterwards a DocumentListener
    mbUpdateListener - DocumentLister that should listen for method body change
    Returns:
    arrow_up


    addUpdateMethodBodyListenerInternal

    private boolean addUpdateMethodBodyListenerInternal(String kitName, DocumentListener mbUpdateListener)

    Parameters:
    kitName -
    mbUpdateListener -
    Returns:
    arrow_up


    getAllKeys

    public List getAllKeys()

    Returns:
    all keys used for accessing LanguageKits (arraylist of kitNames)
    arrow_up


    getAllKits

    public List getAllKits()

    Returns:
    arrayList of all LanguageKits existing in the KitManager
    arrow_up


    getInstance

    static KitManager getInstance()

    Returns:
    instance of the class KitManager
    arrow_up


    getKit

    public LanguageKit getKit(String name)

    Parameters:
    name -
    Returns:
    LangauageKit for given name
    arrow_up


    getUpdateMethodBodyListener

    protected DocumentListener getUpdateMethodBodyListener(LanguageKit languageKit)

    Parameters:
    languageKit -
    Returns:
    arrow_up


    isEditorLoaded

    public boolean isEditorLoaded()

    Returns:
    arrow_up


    removeKit

    public static boolean removeKit(String kitName)


    removes kit from editor  
    Parameters:
    kitName - name of the Kit...the one that was specified as kitName while adding kit to manager
    Returns:
    arrow_up


    removeKit

    boolean removeKit(LanguageKit kit)


    removes given kit from KitManager  
    Parameters:
    kit -
    Returns:
    true if removal of the kit worked.
    arrow_up


    removePropertyChangeListener

    public void removePropertyChangeListener(PropertyChangeListener l)

    Parameters:
    l -
    arrow_up


    removeUpdateMethodBodyListener

    public static boolean removeUpdateMethodBodyListener(String kitName)

    Parameters:
    kitName -
    Returns:
    arrow_up


    removeUpdateMethodBodyListenerInternal

    private boolean removeUpdateMethodBodyListenerInternal(String kitName)

    Parameters:
    kitName -
    Returns:
    arrow_up


    setEnabledLanguageKit

    protected void setEnabledLanguageKit(String language, boolean value)

    Parameters:
    language -
    value -
    arrow_up
    Created  2004 - 12 - 1

        Poseidon for UMLTM
      UMLdoc
     PREV  CLASSIFIER    NEXT  CLASSIFIER     FRAMES    NO FRAMES      
    SUMMARY:   INNER | ATTR | ASSOC | CONSTR | METHOD     DETAIL:   INNER | ATTR | ASSOC | CONSTR | METHOD     DIAGRAMS:   COLLAB | SEQ | STATE | ACTIV

    Generated with Poseidon for UMLTM.
    Poseidon is a registered trademark of Gentleware AG in Germany, USA and other countries. Copyright 2003-2004 Gentleware AG, Schanzenstr. 70, 20357 Hamburg, Germany. All Rights Reserved.

    UML is a trademark or registered trademark of Object Management Group, Inc. in the U.S. and other countries.