Book a Demo

Author Topic: Set default data type to <none>  (Read 5937 times)

Ian Mitchell

  • EA User
  • **
  • Posts: 507
  • Karma: +22/-4
  • The eaDocX and Model Expert guy
    • View Profile
Set default data type to <none>
« on: February 19, 2020, 08:17:35 pm »
This has been bugging me since about V4: when I'm doing conceptual modelling, using UML class diagrams, I want to create attributes of classes, but I'm not ready to commit to them having a specific data type. I'll do that later, if at all.

So, if I'm modelling like this, I'd like to say "always create new class attributes with a data type of <none>". The default is 'Int'.
Is there a setting somewhere to do this?
Not a big deal, but it would smooth over a small rough edge...
Ian Mitchell, Designer, eaDocX


www.eaDocX.com
www.theartfulmodeller.com

Uffe

  • EA Practitioner
  • ***
  • Posts: 1859
  • Karma: +133/-14
  • Flutes: 1; Clarinets: 1; Saxes: 5 and counting
    • View Profile
Re: Set default data type to <none>
« Reply #1 on: February 19, 2020, 08:49:30 pm »
Hi Ian,


I'm not aware of one, and I agree being able to set "<None>" as the default would be very useful.

As an alternative, "<None>" could be made the default if the language is "<None>". That way there's no new option to implement, and you-the-modeller can control the behaviour by setting the diagram language.

As a more ambitious alternative, the default feature type (the same issue exists with "void" for operations) could be made part of the setting for a programming language datatype (or "coding datatype," depending on where in the GUI you look). So in addition to specifying the different datatypes you have in your langue, you could specify one to be the default for new features in elements of that language.

Because this "int" thing even strikes when there is no "int" type in the language.


/Uffe
My theories are always correct, just apply them to the right reality.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Set default data type to <none>
« Reply #2 on: February 19, 2020, 08:54:28 pm »
I agree. This has bothered me as well.
The "int" stuff seem pretty much hardcoded since ye olde days.

Maybe it would be best to allow the user to set a default type (also allowing to leave the type empty as default) per language.

Geert

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Set default data type to <none>
« Reply #3 on: February 19, 2020, 11:39:25 pm »
+1

q.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Set default data type to <none>
« Reply #4 on: February 20, 2020, 08:13:46 am »
You can use existing features to make this happen, although it's not as easy as it could be.

Using the MDG Technology wizard define a new "code" module to define a language. eg. "UML" or maybe even "<none>".

Import that into your model.

The personal Preferences dialog will now offer a page for Source Code Engineering that includes an option for "Default Attribute Type".

If it helps, you can even reset the language of elements in your model in bulk with Develop > Preferences > Options > Reset Source Language.

It's not a direct option, but hopefully it helps anyway.

PS. This capability has been in EA since "ye olde days".

skiwi

  • EA Expert
  • ****
  • Posts: 2081
  • Karma: +46/-82
    • View Profile
Re: Set default data type to <none>
« Reply #5 on: February 20, 2020, 08:23:26 am »
So, if I'm modelling like this, I'd like to say "always create new class attributes with a data type of <none>". The default is 'Int'.

+ 1
Orthogonality rules
Position and Team disestablished, thanks austerity.
Now itinerant.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Set default data type to <none>
« Reply #6 on: February 20, 2020, 07:34:52 pm »
You can use existing features to make this happen, although it's not as easy as it could be.
That language pack should be there as default factory setting.

q.