Re: building DWT2

2011-12-01 Thread Timon Gehr
Java core API's, this makes it easier to port SWT. [gour@atmarama dwt2-c43718956f21] rake base swt /home/gour/tmp/dwt/dwt2-c43718956f21/rakefile:19: Use RbConfig instead of obsolete and deprecated Config. Building dwt-base workdir=>/home/gour/tmp/dwt/dwt2-c43718956f21/base/src java/non

Re: building DWT2

2011-12-01 Thread Jacob Carlborg
On 2011-12-01 15:09, Gour wrote: On Thu, 01 Dec 2011 13:29:41 +0100 Jacob Carlborg wrote: You need to build the "base" library as well, run "rake base swt". The "base" library contains a port of a small part of the Java core API's, this makes it easier

Re: building DWT2

2011-12-01 Thread Gour
On Thu, 01 Dec 2011 13:29:41 +0100 Jacob Carlborg wrote: > You need to build the "base" library as well, run "rake base swt". > The "base" library contains a port of a small part of the Java core > API's, this makes it easier to port SWT. [gour@atm

Re: building DWT2 (was Re: wxC & wxD)

2011-12-01 Thread Jacob Carlborg
at all with Java/SWT...downloaded hg repo and tried: [gour@atmarama dwt2-c43718956f21] rake swt /home/gour/tmp/dwt/dwt2-c43718956f21/rakefile:19: Use RbConfig instead of obsolete and deprecated Config. Building org.eclipse.swt.gtk.linux.x86 workdir=>/home/gour/tmp/dwt/dwt2-c43718956f21/org.eclipse.sw

building DWT2 (was Re: wxC & wxD)

2011-12-01 Thread Gour
T...downloaded hg repo and tried: [gour@atmarama dwt2-c43718956f21] rake swt /home/gour/tmp/dwt/dwt2-c43718956f21/rakefile:19: Use RbConfig instead of obsolete and deprecated Config. Building org.eclipse.swt.gtk.linux.x86 workdir=>/home/gour/tmp/dwt/dwt2-c43718956f21/org.eclipse.swt.gtk.lin

Re: DWT2

2011-04-11 Thread Jacob Carlborg
On 2011-04-11 14:20, Steven Schveighoffer wrote: On Sun, 10 Apr 2011 07:09:52 -0400, Jacob Carlborg wrote: On 2011-04-08 16:45, Steven Schveighoffer wrote: On Fri, 08 Apr 2011 10:36:39 -0400, Andrej Mitrovic wrote: On 4/8/11, Bruno Medeiros wrote: On 05/04/2011 04:54, Andrej Mitrovic wro

Re: DWT2

2011-04-11 Thread Steven Schveighoffer
On Sun, 10 Apr 2011 07:09:52 -0400, Jacob Carlborg wrote: On 2011-04-08 16:45, Steven Schveighoffer wrote: On Fri, 08 Apr 2011 10:36:39 -0400, Andrej Mitrovic wrote: On 4/8/11, Bruno Medeiros wrote: On 05/04/2011 04:54, Andrej Mitrovic wrote: You have to be kidding me. Who writes code li

Re: DWT2

2011-04-10 Thread Jacob Carlborg
On 2011-04-08 16:45, Steven Schveighoffer wrote: On Fri, 08 Apr 2011 10:36:39 -0400, Andrej Mitrovic wrote: On 4/8/11, Bruno Medeiros wrote: On 05/04/2011 04:54, Andrej Mitrovic wrote: You have to be kidding me. Who writes code like this? http://i.imgur.com/BBQde.png What's wrong with it

Re: DWT2

2011-04-08 Thread Steven Schveighoffer
On Fri, 08 Apr 2011 10:36:39 -0400, Andrej Mitrovic wrote: On 4/8/11, Bruno Medeiros wrote: On 05/04/2011 04:54, Andrej Mitrovic wrote: You have to be kidding me. Who writes code like this? http://i.imgur.com/BBQde.png What's wrong with it? Do you mean the anonymous classes with all th

Re: DWT2

2011-04-08 Thread Andrej Mitrovic
On 4/8/11, Bruno Medeiros wrote: > On 05/04/2011 04:54, Andrej Mitrovic wrote: >> You have to be kidding me. Who writes code like this? >> >> http://i.imgur.com/BBQde.png > > What's wrong with it? Do you mean the anonymous classes with all the > fields and contructors for passing the variables in

Re: DWT2

2011-04-08 Thread Bruno Medeiros
On 05/04/2011 13:16, Paulo Pinto wrote: Most Java developers do. I code mostly in Java and really hate when I see code like this, but somehow the pattern of using anonymous classes in-place for event handlers has got into the mind of many developers. You will find thousands of such examples whe

Re: DWT2

2011-04-08 Thread Bruno Medeiros
On 05/04/2011 04:54, Andrej Mitrovic wrote: You have to be kidding me. Who writes code like this? http://i.imgur.com/BBQde.png What's wrong with it? Do you mean the anonymous classes with all the fields and contructors for passing the variables in the enclosing scope? -- Bruno Medeiros - S

Re: DWT2

2011-04-06 Thread Jacob Carlborg
Carlborg Sorry for my stepping in... @jacob:May I ask how to build DWT2 for DMD 2.052?I downloaded the zip file from here: http://hg.dsource.org/projects/dwt2/log/112 In the readme file I only saw it need rake to build.Except rake,can I build it also,say from .bat file? Yes you should be able to do

Re: DWT2

2011-04-06 Thread Sam Hu
//i.imgur.com/BBQde.png > >> > >> Is that from a DWT snippet? > >> > >> -- > >> /Jacob Carlborg > > Sorry for my stepping in... > > @jacob:May I ask how to build DWT2 for DMD 2.052?I downloaded the zip file > > from here: > > http://hg.dsource.org/proj

Re: DWT2

2011-04-06 Thread Jacob Carlborg
DWT2 for DMD 2.052?I downloaded the zip file from here: http://hg.dsource.org/projects/dwt2/log/112 In the readme file I only saw it need rake to build.Except rake,can I build it also,say from .bat file? Yes you should be able to do that. For D1 I'm usually using DSSS and just building

Re: DWT2

2011-04-06 Thread Jacob Carlborg
On 2011-04-06 01:35, Andrej Mitrovic wrote: Could you tell me what switches I need to build a simple example from scratch? So far I know I probably need these: libs dir: \dwt2\lib libs dir: \dwt2\org.eclipse.swt.win32.win32.x86\lib imports: \dwt2\base\src imports: \dwt2\org.eclipse.swt.win32

Re: DWT2

2011-04-06 Thread Jacob Carlborg
On 2011-04-06 01:35, Andrej Mitrovic wrote: Could you tell me what switches I need to build a simple example from scratch? So far I know I probably need these: libs dir: \dwt2\lib libs dir: \dwt2\org.eclipse.swt.win32.win32.x86\lib imports: \dwt2\base\src imports: \dwt2\org.eclipse.swt.win32

Re: DWT2

2011-04-05 Thread Sam Hu
Jacob Carlborg Wrote: > On 2011-04-05 05:54, Andrej Mitrovic wrote: > > You have to be kidding me. Who writes code like this? > > > > http://i.imgur.com/BBQde.png > > Is that from a DWT snippet? > > -- > /Jacob Carlborg Sorry for my stepping in... @jacob

Re: DWT2

2011-04-05 Thread Sam Hu
Jacob Carlborg Wrote: > On 2011-04-05 05:54, Andrej Mitrovic wrote: > > You have to be kidding me. Who writes code like this? > > > > http://i.imgur.com/BBQde.png > > Is that from a DWT snippet? > > -- > /Jacob Carlborg Sorry for my stepping in... @jacob

Re: DWT2

2011-04-05 Thread Andrej Mitrovic
Could you tell me what switches I need to build a simple example from scratch? So far I know I probably need these: libs dir: \dwt2\lib libs dir: \dwt2\org.eclipse.swt.win32.win32.x86\lib imports: \dwt2\base\src imports: \dwt2\org.eclipse.swt.win32.win32.x86\src -J switch: \dwt2

Re: DWT2

2011-04-05 Thread Andrej Mitrovic
On 4/5/11, Andrej Mitrovic wrote: > On 4/5/11, Paulo Pinto wrote: >> Most Java developers do. >> >> I code mostly in Java and really hate when I see code like this, but >> somehow >> the >> pattern of using anonymous classes in-place for event handlers has got >> into >> the mind >> of many devel

Re: DWT2

2011-04-05 Thread Andrej Mitrovic
On 4/5/11, Paulo Pinto wrote: > Most Java developers do. > > I code mostly in Java and really hate when I see code like this, but somehow > the > pattern of using anonymous classes in-place for event handlers has got into > the mind > of many developers. > > You will find thousands of such example

Re: DWT2

2011-04-05 Thread Paulo Pinto
Most Java developers do. I code mostly in Java and really hate when I see code like this, but somehow the pattern of using anonymous classes in-place for event handlers has got into the mind of many developers. You will find thousands of such examples when searching for Java GUI examples, eith

Re: DWT2

2011-04-05 Thread Jacob Carlborg
On 2011-04-05 05:54, Andrej Mitrovic wrote: You have to be kidding me. Who writes code like this? http://i.imgur.com/BBQde.png Is that from a DWT snippet? -- /Jacob Carlborg

Re: DWT2

2011-04-05 Thread Jacob Carlborg
On 2011-04-05 05:38, Andrej Mitrovic wrote: There are a few snippets with some bugs. 41 crashes with: Display Bounds= 0016801050 Display ClientArea= 0016801022 138 shows two empty windows, 143 shows an empty window 165 crashes if I hover the mouse or press a button in the GUI. 223 cras

Re: DWT2

2011-04-05 Thread Jacob Carlborg
. http://hg.dsource.org/projects/dwt2 How do we build? I've tried `rake all`, but I get back errors: https://gist.github.com/901684 Oh, I probably should have mentioned that I'm currently only updating the base and SWT libraries, so run "rake base swt". The SWT snippets

Re: DWT2

2011-04-04 Thread Andrej Mitrovic
That was *after* I ran it through a code prettyfier, since I couldn't tell what was going on.

Re: DWT2

2011-04-04 Thread Andrej Mitrovic
You have to be kidding me. Who writes code like this? http://i.imgur.com/BBQde.png

Re: DWT2

2011-04-04 Thread Andrej Mitrovic
There are a few snippets with some bugs. 41 crashes with: Display Bounds= 0016801050 Display ClientArea= 0016801022 138 shows two empty windows, 143 shows an empty window 165 crashes if I hover the mouse or press a button in the GUI. 223 crashes if I click on the Spinner Up button under t

Re: DWT2

2011-04-04 Thread Andrej Mitrovic
; >>> http://hg.dsource.org/projects/dwt2 >>> >> >> How do we build? >> >> I've tried `rake all`, but I get back errors: >> https://gist.github.com/901684 > > Oh, I probably should have mentioned that I'm currently only updating >