Problems with SWT menus [message #61533] |
Mon, 27 September 2004 14:32 ![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: ricardo.gladwell.btinternet.com
Dear All,
I'm experiencing some problems creating menus for a SWT application
visual object in VEP 1.0.1. At first I couldn't find the menu widget in
the SWT component palette. On closer examination, I found that the menu
items are contained in the application object's properties. If I clock
on the 'menubar' property in the Properties View, I get a '...' select
button which, if I click it, gives me class searcher dialog. If I select
the SWT Menu widget, it adds the code to create a menu to the
createSShell() method.
However, this code does not compile: VE does not pass the 'sShell'
object as a parameter to the menu widget's constructor. I have to
manually do this myself. However, when I do this the visual preview
window flags up a warning that an SWTException is being thrown with the
message 'Invalid thread access'. However, when I run the application
outside of VE normally it works.
Is support for SWT menus minimal in VE 1.0.1 and, if so, are there any
plans to support SWT menus more fully? Or, am I doing something wrong?
Kind regards,
-- Ricardo
|
|
|
Re: Problems with SWT menus [message #61943 is a reply to message #61533] |
Mon, 27 September 2004 21:43 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) |
Peter Walker![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=walkerp%40us.ibm.com) Messages: 124 Registered: July 2009 |
Senior Member |
|
|
Ricardo,
SWT Menus aren't supported yet and that's why you won't see them on the palette.
We hope to support them in the near future but this has to be prioritized with
other enhancements we will plan to do.
At this point the 'menubar' property should not be listed since it causes
compile errors when set... and you should open a bugzilla bug to remove it.
Regards...
Peter Walker
Ricardo Gladwell wrote:
> Dear All,
>
> I'm experiencing some problems creating menus for a SWT application
> visual object in VEP 1.0.1. At first I couldn't find the menu widget in
> the SWT component palette. On closer examination, I found that the menu
> items are contained in the application object's properties. If I clock
> on the 'menubar' property in the Properties View, I get a '...' select
> button which, if I click it, gives me class searcher dialog. If I select
> the SWT Menu widget, it adds the code to create a menu to the
> createSShell() method.
>
> However, this code does not compile: VE does not pass the 'sShell'
> object as a parameter to the menu widget's constructor. I have to
> manually do this myself. However, when I do this the visual preview
> window flags up a warning that an SWTException is being thrown with the
> message 'Invalid thread access'. However, when I run the application
> outside of VE normally it works.
>
> Is support for SWT menus minimal in VE 1.0.1 and, if so, are there any
> plans to support SWT menus more fully? Or, am I doing something wrong?
>
> Kind regards,
> -- Ricardo
|
|
|
Re: Problems with SWT menus [message #599778 is a reply to message #61533] |
Mon, 27 September 2004 21:43 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) |
Peter Walker![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=walkerp%40us.ibm.com) Messages: 124 Registered: July 2009 |
Senior Member |
|
|
Ricardo,
SWT Menus aren't supported yet and that's why you won't see them on the palette.
We hope to support them in the near future but this has to be prioritized with
other enhancements we will plan to do.
At this point the 'menubar' property should not be listed since it causes
compile errors when set... and you should open a bugzilla bug to remove it.
Regards...
Peter Walker
Ricardo Gladwell wrote:
> Dear All,
>
> I'm experiencing some problems creating menus for a SWT application
> visual object in VEP 1.0.1. At first I couldn't find the menu widget in
> the SWT component palette. On closer examination, I found that the menu
> items are contained in the application object's properties. If I clock
> on the 'menubar' property in the Properties View, I get a '...' select
> button which, if I click it, gives me class searcher dialog. If I select
> the SWT Menu widget, it adds the code to create a menu to the
> createSShell() method.
>
> However, this code does not compile: VE does not pass the 'sShell'
> object as a parameter to the menu widget's constructor. I have to
> manually do this myself. However, when I do this the visual preview
> window flags up a warning that an SWTException is being thrown with the
> message 'Invalid thread access'. However, when I run the application
> outside of VE normally it works.
>
> Is support for SWT menus minimal in VE 1.0.1 and, if so, are there any
> plans to support SWT menus more fully? Or, am I doing something wrong?
>
> Kind regards,
> -- Ricardo
|
|
|
Powered by
FUDForum. Page generated in 0.04031 seconds