Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Visual Editor (VE) » Problems with SWT menus
Problems with SWT menus [message #61533] Mon, 27 September 2004 14:32 Go to next message
Eclipse UserFriend
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
Peter Walker is currently offline Peter WalkerFriend
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
Peter Walker is currently offline Peter WalkerFriend
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
Previous Topic:SWT Class throws NULL exception
Next Topic:SWT 2.1 Support
Goto Forum:
  


Current Time: Mon Jul 22 05:34:27 GMT 2024

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

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

Back to the top