Type selector improvements.

Suggested improvements and new features.

Moderator: Moderators

Type selector improvements.

Postby Nicolas F Rouquette » Tue Nov 13, 2001 6:32 pm

Suppose we have

class 'bar' has an inner class 'foo'
class 'baz' has an inner class 'foo'

When I specify the type of, say, a function parameter, I can start
typing:

'f'

and MD will likely find 'foo' and highlight the possible completion.

In this case, there's a bit of an ambiguity:
- is it 'foo' as the inner class of 'bar'
- or 'foo' as the inner class of 'baz' ?

We need a language-neutral way of specifying one vs. the other.

The drop-down list of all types known in the model helps as long as the
list of types
in the model is fairly small. When it gets large, it becomes very
cumbersome to use it.

What I'd suggest is a way of specifying a C++-like syntax or Java-like
syntax for specifying:

bar::foo (C++-like syntax) or bar.foo (Java-like syntax)

So that when we start typing:

'bar'

the possible completions are:

".foo" (java-like syntax)
or
"::foo" (C++-like syntax).

Whatever you do, please, please remember that one of MD's greatest
strengths is precisely that it has the best language-neutral modeling
support. So, it is legal, to give names to classes like:

$foo<$bar>

whereas in other tools, that would be flat-out rejected.

-- Nicolas.




Nicolas F Rouquette
 
Posts Rating:

Re: Type selector improvements.

Postby Nerijus Jankevicius » Wed Nov 28, 2001 2:31 am

Hi Nicolas,

Thanks for your remarks.
In autocompletion list you see not classifiers or some types, but simple
names, so you choose only name.
If there are several classes (or packages) with same name, you must choose
from list exact type (try to draw new class foo and choose name "foo" from
list, after that you will see list with classes ).
We will try to improve this functionality with parameters. Now tool choose
the first type with same name automatically.
You can avoid this by typing function parameter with full path (bar::foo).
This is UML syntax, not related with C++.
Use Ctrl+Backspace for invoking autocompletion list when type full path.

If you still have suggestions or questions, feel free to contact us.

Regards,
--
Nerijus Jankevicius
Senior Programmer
No Magic
Lithuania
e-mail: nerijus
WWW: http://www.nomagic.com
---
OO software design can be an appealing challenge if you have
the best UML modeling tool: http://www.magicdraw.com



Nerijus Jankevicius
 
Posts Rating:


Return to Suggestions

Who is online

Users browsing this forum: No registered users and 0 guests