Bug 162705 - Code generator unable to merge into existing files
Summary: Code generator unable to merge into existing files
Status: REPORTED
Alias: None
Product: umbrello
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR wishlist
Target Milestone: ---
Assignee: Umbrello Development Group
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-27 14:36 UTC by Per D. H. Pasgaard
Modified: 2008-05-27 14:36 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Per D. H. Pasgaard 2008-05-27 14:36:21 UTC
Version:           1.5.8 (using Devel)
Installed from:    Compiled sources
OS:                Linux

In the documentation I noticed that when the overwrite feature is chosen, the code-generator will overwrite everything in a file. My suggestion is to add a merge-functionality. The ArgoUML application solves this problem by using begin-end tags for the entire structure in a sourcefile - see the example here below covering a simple procedure only. This solution ensures that any manually typed sourcecode placed inside these tags will remain unchanged. I't seems like a rather simple feature to implement.

- Can I persuade you to consider this solution in a near future version of Umbrello? ;-)

public string getCustomerName(int id)
    {
    // section 127-0-1-1--6e9ee580:11a241026c9:-8000:00000000000008AC begin
			return "";
    // section 127-0-1-1--6e9ee580:11a241026c9:-8000:00000000000008AC end

    }