Author Topic: Select Type Dialog: Language Types  (Read 2174 times)

Uffe

  • EA Practitioner
  • ***
  • Posts: 1859
  • Karma: +133/-14
  • Flutes: 1; Clarinets: 1; Saxes: 5 and counting
    • View Profile
Select Type Dialog: Language Types
« on: August 03, 2009, 08:25:31 pm »
Hi!


Loving the Select Type dialog in 7.5.846.

Would like to suggest the following addition: add a root node to the tree for the element's specified Language, which contains the Language's built-in types. So you'd see something like:

+ My Model Root Node 1
|  +--- My Model Root Node 1 View 1A
+ My Model Root Node 2
|  +--- My Model Root Node 2 View 2A
|  +--- My Model Root Node 2 View 2B
|
+ Built-In Java Types
|  +--- boolean
|  +--- byte
|  +--- char

Etc.

The language-specific node would have to be context-sensitive of course, just like the quick type selector drop-down in the Attribute Properties dialog, and you wouldn't be allowed to Add New in this branch.

This would also help fix a bug in the current implementation: if your attribute is of a built-in type and you open up the Select Type dialog, a (non-builtin) element is highlighted in the tree, indicating the wrong type for the attribute.

Cheers,


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