On Tue, Jun 17, 2008 at 11:25 AM, Yevgeniy A. Viktorov
<[EMAIL PROTECTED]> wrote:

> Is there easy way to setup file name when generating code? :)

The code generator for each language is independent, but they all
typically uses a name derived from the UML Class name.

> For example, for php5 there is prefix class.filename.php, I would like to
> skip "class" prefix and setup custom name(i.e. not class name based).

The PHP5 code generator uses a fixed pattern
([interface|class|unknown]classifier_name.php) to generate the
filename.  If you can manage simple Java changes, it'd be pretty easy
to change it to a different pattern.  Alternatively (or additionally),
you can enter an issue describing the enhanced behavior you'd like to
see.

Are you looking for a different fixed pattern based on information
available in the module or are you looking to have the user override
the name based on a TaggedValue that's they store in the model or
something similar?  Can you give an example of the types of names
you'd use?  I'm having a hard time imagining cases where it's useful
to not use the classifier name as the basis for the filename.

Tom

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to