[Uml-devel] Using external library.

Skip Huffman skiphuffman at gmail.com
Mon Feb 13 12:47:26 UTC 2012


Thanks.  Enhancement request 293042<https://bugs.kde.org/show_bug.cgi?id=293042>
 entered.

On Fri, Feb 10, 2012 at 11:38 AM, Andi Fischer <andi.fischer at hispeed.ch>wrote:

> Am 10.02.2012 15:21, schrieb Skip Huffman:
>
>  Ok, that partially works.  But not entirely. Also instead of importing
>> "time"  it tries to import "Time".  The capitalization is correct in the
>> umbrello model, just not in the generated code.
>>
>> Let me restate the question a bit.
>>
>> If I were hand coding the library instead of using Umbrello to generate
>> it, I would include several lines at the top:
>>
>> from selenium.webdriver.support.ui import WebDriverWait
>> from selenium.common.exceptions import *
>> import time
>>
>> (Those are all external libraries.  One third party, and one standard
>> library.)
>>
>> How can I set up the umbrello model to include these same lines in
>> particular classes?
>>
> Hi Skip,
>
> What about this idea:
>
> For code generation you can define a file header. Go to Settings -
> Configure Umbrello UML Modeller - Code Generation.
> Enter your file header in "Include heading files from folder", where you
> add your import statements.
>
> That is not exactly what you want, because it adds this file header to
> every generated file.
> You will have the same import statements in every file.
>
> Please add a wish to bugs.kde.org. Quick idea: It is missing a text box
> where the imports for every class can be entered.
>
> Regards,
>
> Andi
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/umbrello-devel/attachments/20120213/3e410352/attachment.html>


More information about the umbrello-devel mailing list