Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Visual Editor (VE) » MenuBar
MenuBar [message #89563] Wed, 04 May 2005 08:16 Go to next message
Eclipse UserFriend
Originally posted by: akan.aiqa.com

Hello,

When I edit with the menubar property of the shell it creates a

Menu menu = new Menu();

line under createSShell method. Because there is no constructor like
Menu() program gives error. Why eclipse do not use the correct metod like;

Menu menu = new Menu(sShell, SWT.BAR);

thanks,
aiQa

www.projectme.org
Re: MenuBar [message #89598 is a reply to message #89563] Wed, 04 May 2005 11:32 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: akan.aiqa.com

aiQa wrote:
> Hello,
>
> When I edit with the menubar property of the shell it creates a
>
> Menu menu = new Menu();
>
> line under createSShell method. Because there is no constructor like
> Menu() program gives error. Why eclipse do not use the correct metod like;
>
> Menu menu = new Menu(sShell, SWT.BAR);
>
> thanks,
> aiQa
>
> www.projectme.org

Additionally,

when using FormLayout (with VE 1.1M1) it creates a code like this;

FormData data = new FormData();
data.left(new FormAttachment(0,0));

while data.left is a property not a method it gives error.

aiQa,
www.projectme.org
Re: MenuBar [message #89700 is a reply to message #89598] Wed, 04 May 2005 15:30 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

1) How did you edit the Menubar property of the shell? We shouldn't
produce that code. By showing us how you did that we can fix it.

2) We don't create FormData right now. It probably should work if
created by hand, but we have done nothing yet to automate it. It has a
very different code pattern then the other layouts so that it makes it
more difficult.

aiQa wrote:
> aiQa wrote:
>
>> Hello,
>>
>> When I edit with the menubar property of the shell it creates a
>>
>> Menu menu = new Menu();
>>
>> line under createSShell method. Because there is no constructor like
>> Menu() program gives error. Why eclipse do not use the correct metod
>> like;
>>
>> Menu menu = new Menu(sShell, SWT.BAR);
>>
>> thanks,
>> aiQa
>>
>> www.projectme.org
>
>
> Additionally,
>
> when using FormLayout (with VE 1.1M1) it creates a code like this;
>
> FormData data = new FormData();
> data.left(new FormAttachment(0,0));
>
> while data.left is a property not a method it gives error.
>
> aiQa,
> www.projectme.org

--
Thanks,
Rich Kulp
Re: MenuBar [message #89803 is a reply to message #89700] Thu, 05 May 2005 05:07 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: akan.aiqa.com

Rich Kulp wrote:
> 1) How did you edit the Menubar property of the shell? We shouldn't
> produce that code. By showing us how you did that we can fix it.
>
I click on the shell, then on the property menu I click the MenuBar then
choose swt.menubar and name it menubar. It creates this code.

sShell.setMenuBar(new Menu());

I manually edit it and change to ;

sShell.setMenuBar(new Menu(sShell, SWT.BAR));

Actually it is useless because there is no reference of menu that can bu
used. It should be like;

private Menu menu = null;
..
..
..
Menu menu = new Menu(sShell, SWT.BAR);

Also VE work really slowly. When I manually edit the code it tries to
render it and becomes a headache. This morning I opened the project I
was working on yesterday and it could not show the correct form in
preview or design view. It seems that VE is not suitable for production
use. Actuall I have only tried swt and don`t know much about swing
compatibility of VE.

I am using Eclipse 3.1M6 and VE 1.1M1. Do people using Eclipse 3.0.1
have the same problems?

I am really disappointed at this point :( Maybe I shall find some time
and start to work on eclipse ve development...

> 2) We don't create FormData right now. It probably should work if
> created by hand, but we have done nothing yet to automate it. It has a
> very different code pattern then the other layouts so that it makes it
> more difficult.

...yes yes, I shall find that time...

thanks,
aiQa

www.projectme.org
Re: MenuBar [message #89832 is a reply to message #89803] Thu, 05 May 2005 14:35 Go to previous message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

Menu's for SWT were not addressed in our first pass at SWT. So we don't
really provide support for it. It needs to be coded by hand for now.

I opened a bug to address this:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=93782


--
Thanks,
Rich Kulp
Re: MenuBar [message #607329 is a reply to message #89563] Wed, 04 May 2005 11:32 Go to previous message
Eclipse UserFriend
Originally posted by: akan.aiqa.com

aiQa wrote:
> Hello,
>
> When I edit with the menubar property of the shell it creates a
>
> Menu menu = new Menu();
>
> line under createSShell method. Because there is no constructor like
> Menu() program gives error. Why eclipse do not use the correct metod like;
>
> Menu menu = new Menu(sShell, SWT.BAR);
>
> thanks,
> aiQa
>
> www.projectme.org

Additionally,

when using FormLayout (with VE 1.1M1) it creates a code like this;

FormData data = new FormData();
data.left(new FormAttachment(0,0));

while data.left is a property not a method it gives error.

aiQa,
www.projectme.org
Re: MenuBar [message #607336 is a reply to message #89598] Wed, 04 May 2005 15:30 Go to previous message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

1) How did you edit the Menubar property of the shell? We shouldn't
produce that code. By showing us how you did that we can fix it.

2) We don't create FormData right now. It probably should work if
created by hand, but we have done nothing yet to automate it. It has a
very different code pattern then the other layouts so that it makes it
more difficult.

aiQa wrote:
> aiQa wrote:
>
>> Hello,
>>
>> When I edit with the menubar property of the shell it creates a
>>
>> Menu menu = new Menu();
>>
>> line under createSShell method. Because there is no constructor like
>> Menu() program gives error. Why eclipse do not use the correct metod
>> like;
>>
>> Menu menu = new Menu(sShell, SWT.BAR);
>>
>> thanks,
>> aiQa
>>
>> www.projectme.org
>
>
> Additionally,
>
> when using FormLayout (with VE 1.1M1) it creates a code like this;
>
> FormData data = new FormData();
> data.left(new FormAttachment(0,0));
>
> while data.left is a property not a method it gives error.
>
> aiQa,
> www.projectme.org

--
Thanks,
Rich Kulp
Re: MenuBar [message #607343 is a reply to message #89700] Thu, 05 May 2005 05:07 Go to previous message
Eclipse UserFriend
Originally posted by: akan.aiqa.com

Rich Kulp wrote:
> 1) How did you edit the Menubar property of the shell? We shouldn't
> produce that code. By showing us how you did that we can fix it.
>
I click on the shell, then on the property menu I click the MenuBar then
choose swt.menubar and name it menubar. It creates this code.

sShell.setMenuBar(new Menu());

I manually edit it and change to ;

sShell.setMenuBar(new Menu(sShell, SWT.BAR));

Actually it is useless because there is no reference of menu that can bu
used. It should be like;

private Menu menu = null;
..
..
..
Menu menu = new Menu(sShell, SWT.BAR);

Also VE work really slowly. When I manually edit the code it tries to
render it and becomes a headache. This morning I opened the project I
was working on yesterday and it could not show the correct form in
preview or design view. It seems that VE is not suitable for production
use. Actuall I have only tried swt and don`t know much about swing
compatibility of VE.

I am using Eclipse 3.1M6 and VE 1.1M1. Do people using Eclipse 3.0.1
have the same problems?

I am really disappointed at this point :( Maybe I shall find some time
and start to work on eclipse ve development...

> 2) We don't create FormData right now. It probably should work if
> created by hand, but we have done nothing yet to automate it. It has a
> very different code pattern then the other layouts so that it makes it
> more difficult.

...yes yes, I shall find that time...

thanks,
aiQa

www.projectme.org
Re: MenuBar [message #607345 is a reply to message #89803] Thu, 05 May 2005 14:35 Go to previous message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

Menu's for SWT were not addressed in our first pass at SWT. So we don't
really provide support for it. It needs to be coded by hand for now.

I opened a bug to address this:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=93782


--
Thanks,
Rich Kulp
Previous Topic:Project location
Next Topic:Project location
Goto Forum:
  


Current Time: Wed Nov 13 18:25:34 GMT 2024

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

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

Back to the top