Bug 162705

Summary: Code generator unable to merge into existing files
Product: [Applications] umbrello Reporter: Per D. H. Pasgaard <diemongo>
Component: generalAssignee: Umbrello Development Group <umbrello-devel>
Status: REPORTED ---    
Severity: wishlist    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:

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

    }