Path: csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!border1.nntp.ams2.giganews.com!border3.nntp.ams.giganews.com!Xl.tags.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!local2.nntp.ams.giganews.com!nntp.bt.com!news.bt.com.POSTED!not-for-mail NNTP-Posting-Date: Thu, 28 Feb 2013 03:02:53 -0600 Date: Thu, 28 Feb 2013 09:02:51 +0000 From: lipska the kat <"nospam at neversurrender dot co dot uk"> Organization: Trollbusters 3 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20120410 Thunderbird/11.0.1 MIME-Version: 1.0 Newsgroups: comp.lang.java.programmer Subject: Re: Enum in Eclipse Scrapbook References: <515de149-3ee1-482d-a090-82ce264ed142@googlegroups.com> <4e2d049c-9a8b-420c-8dfd-293402e7bf95@googlegroups.com> <47939433-d698-4df5-8789-09c4d841fa88@googlegroups.com> <500f1031-2d35-4bb4-a934-b0b96d8070ba@googlegroups.com> In-Reply-To: <500f1031-2d35-4bb4-a934-b0b96d8070ba@googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Message-ID: Lines: 38 X-Usenet-Provider: http://www.giganews.com X-AuthenticatedUsername: NoAuthUser X-Trace: sv3-lDpNdvt+NAc4ztXUtCucUW7v/EXt/ANlssNL/qr4JOWE5jtf1XIbTSz3RCkJg2YdGgVjccfvvY3Hw6S!ugdmwonzR6zPYyXTzLDSoEt+I6XS5K7wa/cRNa1YjXkB9dutYNaiC7S0yB4uSpnwg4l5LJ/MhZk= X-Complaints-To: abuse@btinternet.com X-DMCA-Complaints-To: abuse@btinternet.com X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 2584 Xref: csiph.com comp.lang.java.programmer:22611 On 27/02/13 20:25, Lew wrote: > Robert Mark Bram wrote: >> markspace wrote: >>> No se hablo Eclipse Scapbook -- is that a plugin? Like some sort of >>> bean shell or copy-paste tool? >> >> No - it's in vanilla Eclipse, and it's pretty cool. >> >> This page gives some beginner's info on it: http://www.eclipsezone.com/eclipse/forums/t61137.html > > Nowhere does it state that its purpose is to define complex classes. Its purpose is to execute expressions. > > So define your classes where you're supposed to, in their own source files. Have you even tried this ? the scrap // enum Month {JAN, FEB, MAR, APR, MAY, JUN, JUL, AUG, SEP, OCT, NOV, DEC}; Month m = Month.JAN; // is not a 'complex class' Month m = Month.JAN; is an expression, yet it still fails. Why don't you try it for yourself and report back ... or is that a bit too much like 'social interaction' to be comfortable for you. lipska -- Lipska the KatŠ: Troll hunter, sandbox destroyer and farscape dreamer of Aeryn Sun