About TitleAreaDialog [message #153840] |
Wed, 13 October 2004 01:40  |
Eclipse User |
|
|
|
Originally posted by: outiejun.yeah.net
I have just made an editor, and I want to doubleClick an Editpart, and
then raise a TitleAreaDialog like this:
TitleAreaDialog dialog = new TitleAreaDialog(null);
dialog.open();
dialog.setTitle(((Interface)getModel()).getName()+"property settings");
dialog.setMessage("Setting your properties:");
the dialog was raised, but it seems that there is no title and message
displayed in the dialog's corresponding area. I also set them before
calling .open method, but it didn't work.
so what is the problem? Could you give me a help?
By the way, see this line of code:
TitleAreaDialog dialog = new TitleAreaDialog(null);
Initializing the dialog need a shell in the constuctor, how can I get the
shell in my editpart class? I think leaving it null is not a good idea.
|
|
|
Re: About TitleAreaDialog [message #153930 is a reply to message #153840] |
Wed, 13 October 2004 15:28  |
Eclipse User |
|
|
|
org.eclipse.jface.dialogs.TitleAreaDialog has nothing to do with GEF. Try
the platform newsgroup.
"Glitter.ou" <outiejun@yeah.net> wrote in message
news:ckif3s$c0k$1@eclipse.org...
> I have just made an editor, and I want to doubleClick an Editpart, and
> then raise a TitleAreaDialog like this:
>
> TitleAreaDialog dialog = new TitleAreaDialog(null);
> dialog.open();
> dialog.setTitle(((Interface)getModel()).getName()+"property settings");
> dialog.setMessage("Setting your properties:");
>
> the dialog was raised, but it seems that there is no title and message
> displayed in the dialog's corresponding area. I also set them before
> calling .open method, but it didn't work.
>
> so what is the problem? Could you give me a help?
>
> By the way, see this line of code:
>
> TitleAreaDialog dialog = new TitleAreaDialog(null);
>
> Initializing the dialog need a shell in the constuctor, how can I get the
> shell in my editpart class? I think leaving it null is not a good idea.
>
|
|
|
Powered by
FUDForum. Page generated in 0.02054 seconds