Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » About TitleAreaDialog
About TitleAreaDialog [message #153840] Wed, 13 October 2004 05:40 Go to next message
Eclipse UserFriend
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 19:28 Go to previous message
Pratik Shah is currently offline Pratik ShahFriend
Messages: 1077
Registered: July 2009
Senior Member
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.
>
Previous Topic:NPE when model implements IPropertySource
Next Topic:Tool tip
Goto Forum:
  


Current Time: Tue Jan 14 06:16:42 GMT 2025

Powered by FUDForum. Page generated in 0.04206 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top