Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Visual Editor (VE) » It´s too hard to work with VEP using SWT :-(
It´s too hard to work with VEP using SWT :-( [message #47249] Tue, 06 July 2004 04:27 Go to next message
Alessandro Fragnani is currently offline Alessandro FragnaniFriend
Messages: 16
Registered: July 2009
Junior Member
Hi,

I just started using VEP to test the visual design features, and I guess
to be too hard to work with. I tried to reproduce the "Complex
GridLayout Example" of this link
" http://www.eclipse.org/articles/Article-Understanding%20Layo uts/Understanding%20Layouts.htm"

First of all, I tried to create a simple Shell with GridLayout. Well, I
define it to have 3 columns, and using the context menu I can show the
Grid (that on my opinion should be turned on by default). I put the a
Label on the first region and a Text on the second region, defining to
have horizontalSpan equals 2 and horizontalAlignment equals FILL. Til
now, not a big problem, but how do I put the widgets, below of this row?

It´s a hard and annoying task, because the widgets doesn´t respect the
region that it is placed. I must then put it the new widget on the right
side of the last column (on the margin), so it creates another "row". It
took some time to discover, but now it´s fine. But, if the last region
is from a widget that is spanning rows, then, when I put another widget
to "create another row", it doesn´t work as expected. It put this widget
on the first "row" of the spanning colection (on the first column also),
then I must select it and make some movements to put it on the newly
created row.

Another problem, that I guess must be added to bugzilla is when I save
the class, close it and open it again. It loses the visual apearance of
the "Text" widget. When I add a Text widget, the text is drawn like
"bold", but when I save, close and reopen, it is not bold anymore. Also,
other widgets has the same problem of being drawed diferently when after
saving, closing and reopening.

Anyone has some idea how to be more productive with VEP and SWT? Or
these problems are already known, and the VEP team is working on to
solve and improve the VEP?

Thanks in advance,

Alessandro
Re: It´s too hard to work with VEP using SWT :-( [message #47602 is a reply to message #47249] Tue, 06 July 2004 13:29 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: myersj.nospam.us.ibm.com

Hi Alessandro,

I agree that the behavior of the GridLayout editor can be a little odd
and take some time to get used to... but the problems you describe are
due to the way GridLayout works. The editor attempts to provide you
with the most accurate representation of the limitations of GridLayout
and how it will work in actual run time. You can't place controls in
fixed locations like you can in Swing's GridBagLayout... all you can do
is set the number of columns, and all the controls will flow into
position based on their requirements for horizontal and vertical span.

Did you use the Customize Layout dialog to help you set up the
GridLayout properties and the controls' GridData?

Sorry if this post sounds a bit defensive, I'm a bit biased on this
function because I wrote it ;) If you have any suggestions on how the
GridLayout editor can be improved, we can see if it's possible.

We've noticed that weird bolding bug with SWT. I just opened a bug
report for that issue: https://bugs.eclipse.org/bugs/show_bug.cgi?id=69373

Thanks for pointing out this problem and other issues with SWT. We
haven't really tested SWT too thoroughly yet, so posts like this from
early adopters and bugzilla reports are very useful for us.

- Jeff

Alessandro Fragnani wrote:

> Hi,
>
> I just started using VEP to test the visual design features, and I guess
> to be too hard to work with. I tried to reproduce the "Complex
> GridLayout Example" of this link
> " http://www.eclipse.org/articles/Article-Understanding%20Layo uts/Understanding%20Layouts.htm"
>
>
> First of all, I tried to create a simple Shell with GridLayout. Well, I
> define it to have 3 columns, and using the context menu I can show the
> Grid (that on my opinion should be turned on by default). I put the a
> Label on the first region and a Text on the second region, defining to
> have horizontalSpan equals 2 and horizontalAlignment equals FILL. Til
> now, not a big problem, but how do I put the widgets, below of this row?
>
> It´s a hard and annoying task, because the widgets doesn´t respect the
> region that it is placed. I must then put it the new widget on the right
> side of the last column (on the margin), so it creates another "row". It
> took some time to discover, but now it´s fine. But, if the last region
> is from a widget that is spanning rows, then, when I put another widget
> to "create another row", it doesn´t work as expected. It put this widget
> on the first "row" of the spanning colection (on the first column also),
> then I must select it and make some movements to put it on the newly
> created row.
>
> Another problem, that I guess must be added to bugzilla is when I save
> the class, close it and open it again. It loses the visual apearance of
> the "Text" widget. When I add a Text widget, the text is drawn like
> "bold", but when I save, close and reopen, it is not bold anymore. Also,
> other widgets has the same problem of being drawed diferently when after
> saving, closing and reopening.
>
> Anyone has some idea how to be more productive with VEP and SWT? Or
> these problems are already known, and the VEP team is working on to
> solve and improve the VEP?
>
> Thanks in advance,
>
> Alessandro
Re: It [message #48177 is a reply to message #47602] Tue, 06 July 2004 19:35 Go to previous message
Eclipse UserFriend
Originally posted by: alessandrofm.softplan.com.br

Hi Jeff,

First of all, thanks for your answer.

Yes, I did use the Customize Layout dialog, and it really helps, since it's
easy to use.

I came from Delphi, and my first applications with Java has been Web
applications, so, my knowledge of Java Desktop is limited. I just start
using Eclipse at 2 weeks ago, and then a friend told me about SWT. Before I
had used Swing just a little, but for very simple examples.

This weekend I decided to dig a bit more on SWT and Layouts, and found that
tutorial. To me (Delphi developer) layouts appears to be unnecessary, since
while developing on Delphi, I can put components on the window, and use the
"Anchor" concept, to resize the objects when the window is resized. But
since I'm migrating to Java, I need to incorporate some concepts, and Layout
is one of them. So, following the tutorial I decided to create the
"GridLayout" example that appeared to be more interesting.

I read some tutorials about "FormLayout" and it appears to be the most used
(even being new on SWT, but already existent on Swing). So, maybe the
FormLayout should be easier to use. I will try it today.

Well, I will be very happy on contribute to the VE becomes easier to use,
and you can bet that I will post questions on this newsgroup with a
considerable frequence, since I'm very interesting on SWT and it's features.

Thanks in advance, and congratulations for the project.

Alessandro

"Jeff Myers" <myersj@nospam.us.ibm.com> escreveu na mensagem
news:cce9ff$8eo$1@eclipse.org...
> Hi Alessandro,
>
> I agree that the behavior of the GridLayout editor can be a little odd
> and take some time to get used to... but the problems you describe are
> due to the way GridLayout works. The editor attempts to provide you
> with the most accurate representation of the limitations of GridLayout
> and how it will work in actual run time. You can't place controls in
> fixed locations like you can in Swing's GridBagLayout... all you can do
> is set the number of columns, and all the controls will flow into
> position based on their requirements for horizontal and vertical span.
>
> Did you use the Customize Layout dialog to help you set up the
> GridLayout properties and the controls' GridData?
>
> Sorry if this post sounds a bit defensive, I'm a bit biased on this
> function because I wrote it ;) If you have any suggestions on how the
> GridLayout editor can be improved, we can see if it's possible.
>
> We've noticed that weird bolding bug with SWT. I just opened a bug
> report for that issue: https://bugs.eclipse.org/bugs/show_bug.cgi?id=69373
>
> Thanks for pointing out this problem and other issues with SWT. We
> haven't really tested SWT too thoroughly yet, so posts like this from
> early adopters and bugzilla reports are very useful for us.
>
> - Jeff
>
> Alessandro Fragnani wrote:
>
> > Hi,
> >
> > I just started using VEP to test the visual design features, and I guess
> > to be too hard to work with. I tried to reproduce the "Complex
> > GridLayout Example" of this link
> >
" http://www.eclipse.org/articles/Article-Understanding%20Layo uts/Understandi
ng%20Layouts.htm"
> >
> >
> > First of all, I tried to create a simple Shell with GridLayout. Well, I
> > define it to have 3 columns, and using the context menu I can show the
> > Grid (that on my opinion should be turned on by default). I put the a
> > Label on the first region and a Text on the second region, defining to
> > have horizontalSpan equals 2 and horizontalAlignment equals FILL. Til
> > now, not a big problem, but how do I put the widgets, below of this row?
> >
> > It
Re: It´s too hard to work with VEP using SWT :-( [message #594395 is a reply to message #47249] Tue, 06 July 2004 13:29 Go to previous message
Jeff Myers is currently offline Jeff MyersFriend
Messages: 396
Registered: July 2009
Senior Member
Hi Alessandro,

I agree that the behavior of the GridLayout editor can be a little odd
and take some time to get used to... but the problems you describe are
due to the way GridLayout works. The editor attempts to provide you
with the most accurate representation of the limitations of GridLayout
and how it will work in actual run time. You can't place controls in
fixed locations like you can in Swing's GridBagLayout... all you can do
is set the number of columns, and all the controls will flow into
position based on their requirements for horizontal and vertical span.

Did you use the Customize Layout dialog to help you set up the
GridLayout properties and the controls' GridData?

Sorry if this post sounds a bit defensive, I'm a bit biased on this
function because I wrote it ;) If you have any suggestions on how the
GridLayout editor can be improved, we can see if it's possible.

We've noticed that weird bolding bug with SWT. I just opened a bug
report for that issue: https://bugs.eclipse.org/bugs/show_bug.cgi?id=69373

Thanks for pointing out this problem and other issues with SWT. We
haven't really tested SWT too thoroughly yet, so posts like this from
early adopters and bugzilla reports are very useful for us.

- Jeff

Alessandro Fragnani wrote:

> Hi,
>
> I just started using VEP to test the visual design features, and I guess
> to be too hard to work with. I tried to reproduce the "Complex
> GridLayout Example" of this link
> " http://www.eclipse.org/articles/Article-Understanding%20Layo uts/Understanding%20Layouts.htm"
>
>
> First of all, I tried to create a simple Shell with GridLayout. Well, I
> define it to have 3 columns, and using the context menu I can show the
> Grid (that on my opinion should be turned on by default). I put the a
> Label on the first region and a Text on the second region, defining to
> have horizontalSpan equals 2 and horizontalAlignment equals FILL. Til
> now, not a big problem, but how do I put the widgets, below of this row?
>
> It´s a hard and annoying task, because the widgets doesn´t respect the
> region that it is placed. I must then put it the new widget on the right
> side of the last column (on the margin), so it creates another "row". It
> took some time to discover, but now it´s fine. But, if the last region
> is from a widget that is spanning rows, then, when I put another widget
> to "create another row", it doesn´t work as expected. It put this widget
> on the first "row" of the spanning colection (on the first column also),
> then I must select it and make some movements to put it on the newly
> created row.
>
> Another problem, that I guess must be added to bugzilla is when I save
> the class, close it and open it again. It loses the visual apearance of
> the "Text" widget. When I add a Text widget, the text is drawn like
> "bold", but when I save, close and reopen, it is not bold anymore. Also,
> other widgets has the same problem of being drawed diferently when after
> saving, closing and reopening.
>
> Anyone has some idea how to be more productive with VEP and SWT? Or
> these problems are already known, and the VEP team is working on to
> solve and improve the VEP?
>
> Thanks in advance,
>
> Alessandro
Re: It [message #594565 is a reply to message #47602] Tue, 06 July 2004 19:35 Go to previous message
Eclipse UserFriend
Originally posted by: alessandrofm.softplan.com.br

Hi Jeff,

First of all, thanks for your answer.

Yes, I did use the Customize Layout dialog, and it really helps, since it's
easy to use.

I came from Delphi, and my first applications with Java has been Web
applications, so, my knowledge of Java Desktop is limited. I just start
using Eclipse at 2 weeks ago, and then a friend told me about SWT. Before I
had used Swing just a little, but for very simple examples.

This weekend I decided to dig a bit more on SWT and Layouts, and found that
tutorial. To me (Delphi developer) layouts appears to be unnecessary, since
while developing on Delphi, I can put components on the window, and use the
"Anchor" concept, to resize the objects when the window is resized. But
since I'm migrating to Java, I need to incorporate some concepts, and Layout
is one of them. So, following the tutorial I decided to create the
"GridLayout" example that appeared to be more interesting.

I read some tutorials about "FormLayout" and it appears to be the most used
(even being new on SWT, but already existent on Swing). So, maybe the
FormLayout should be easier to use. I will try it today.

Well, I will be very happy on contribute to the VE becomes easier to use,
and you can bet that I will post questions on this newsgroup with a
considerable frequence, since I'm very interesting on SWT and it's features.

Thanks in advance, and congratulations for the project.

Alessandro

"Jeff Myers" <myersj@nospam.us.ibm.com> escreveu na mensagem
news:cce9ff$8eo$1@eclipse.org...
> Hi Alessandro,
>
> I agree that the behavior of the GridLayout editor can be a little odd
> and take some time to get used to... but the problems you describe are
> due to the way GridLayout works. The editor attempts to provide you
> with the most accurate representation of the limitations of GridLayout
> and how it will work in actual run time. You can't place controls in
> fixed locations like you can in Swing's GridBagLayout... all you can do
> is set the number of columns, and all the controls will flow into
> position based on their requirements for horizontal and vertical span.
>
> Did you use the Customize Layout dialog to help you set up the
> GridLayout properties and the controls' GridData?
>
> Sorry if this post sounds a bit defensive, I'm a bit biased on this
> function because I wrote it ;) If you have any suggestions on how the
> GridLayout editor can be improved, we can see if it's possible.
>
> We've noticed that weird bolding bug with SWT. I just opened a bug
> report for that issue: https://bugs.eclipse.org/bugs/show_bug.cgi?id=69373
>
> Thanks for pointing out this problem and other issues with SWT. We
> haven't really tested SWT too thoroughly yet, so posts like this from
> early adopters and bugzilla reports are very useful for us.
>
> - Jeff
>
> Alessandro Fragnani wrote:
>
> > Hi,
> >
> > I just started using VEP to test the visual design features, and I guess
> > to be too hard to work with. I tried to reproduce the "Complex
> > GridLayout Example" of this link
> >
" http://www.eclipse.org/articles/Article-Understanding%20Layo uts/Understandi
ng%20Layouts.htm"
> >
> >
> > First of all, I tried to create a simple Shell with GridLayout. Well, I
> > define it to have 3 columns, and using the context menu I can show the
> > Grid (that on my opinion should be turned on by default). I put the a
> > Label on the first region and a Text on the second region, defining to
> > have horizontalSpan equals 2 and horizontalAlignment equals FILL. Til
> > now, not a big problem, but how do I put the widgets, below of this row?
> >
> > It
Previous Topic:seeing the invisible
Next Topic:VE on Eclipse RC3
Goto Forum:
  


Current Time: Mon Dec 30 14:32:10 GMT 2024

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

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

Back to the top