Is it ok for command to show dialogs? [message #119561] |
Thu, 26 February 2004 13:26 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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.03347 seconds