Is it ok for command to show dialogs? [message #119561] |
Thu, 26 February 2004 13:26 ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: eostroukhov.hotmail.com
When the user creates a table (using the GEF CreateTool) the command shows
the dialog (i.e. select number of columns, etc.)
Is it ok for GEF or we have some architectural constraints against doing so?
I'm asking this because one problem was encountered under special conditions
(NullPointerException in CreationTool).
Eugene
|
|
|
Re: Is it ok for command to show dialogs? [message #119587 is a reply to message #119561] |
Thu, 26 February 2004 14:43 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: none.us.ibm.com
It is typically not a good idea because most dialogs have a "Cancel" button,
and commands cannot abort. It is not a good idea for other reasons too,
such as the potential to hold onto stuff too long in your command, which is
on the command stack, and could cause temporary memory leaks.
The alternative is to display the dialog by extending the CreationTool and
overriding performCreate(...)
"Eugene Ostroukhov" <eostroukhov@hotmail.com> wrote in message
news:c1krvq$s9v$1@eclipse.org...
> When the user creates a table (using the GEF CreateTool) the command shows
> the dialog (i.e. select number of columns, etc.)
>
> Is it ok for GEF or we have some architectural constraints against doing
so?
> I'm asking this because one problem was encountered under special
conditions
> (NullPointerException in CreationTool).
>
> Eugene
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03239 seconds