com.bbn.swede.tools.codegenerator
Class CodeGenerationAction

java.lang.Object
  extended byAction
      extended bycom.bbn.swede.tools.codegenerator.CodeGenerationAction

public class CodeGenerationAction
extends Action

A generic action class for running code generators. This action will work for any extender of com.bbn.swede.ui.codeGenerator by utilizing the interface provided by AbstractCodeGenerator.

Author:
jlerner
See Also:
Serialized Form

Constructor Summary
CodeGenerationAction(String sLabel, AbstractCodeGenerator codeGen, String sGeneratorID)
          Creates an action for a specific code generator.
 
Method Summary
 String getDisplayName()
          Retrieves the display name of the code generator attached to this action.
 void run()
           
 void setDisplayName(String sDisplayName)
          Sets the display name of the code generator attached to this action.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CodeGenerationAction

public CodeGenerationAction(String sLabel,
                            AbstractCodeGenerator codeGen,
                            String sGeneratorID)
Creates an action for a specific code generator.

Parameters:
sLabel - The display name of the generator.
codeGen - The class to perform the actual generation.
sGeneratorID - The unique identifier of the code generator.
Method Detail

getDisplayName

public String getDisplayName()
Retrieves the display name of the code generator attached to this action.

Returns:
The action's display name.

setDisplayName

public void setDisplayName(String sDisplayName)
Sets the display name of the code generator attached to this action.

Parameters:
sDisplayName - The new display name for the action.

run

public void run()


Copyright © 2004-2005 BBN Technologies. All Rights Reserved.