About TitleAreaDialog [message #153840] |
Wed, 13 October 2004 05: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.
|
|
|
|
Powered by
FUDForum. Page generated in 0.04206 seconds