Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #22563 > unrolled thread

Enum in Eclipse Scrapbook

Started byRobert Mark Bram <robertmarkbram@gmail.com>
First post2013-02-26 21:52 -0800
Last post2013-02-28 16:57 -0500
Articles 4 on this page of 24 — 7 participants

Back to article view | Back to comp.lang.java.programmer


Contents

  Enum in Eclipse Scrapbook Robert Mark Bram <robertmarkbram@gmail.com> - 2013-02-26 21:52 -0800
    Re: Enum in Eclipse Scrapbook markspace <markspace@nospam.nospam> - 2013-02-26 22:25 -0800
      Re: Enum in Eclipse Scrapbook Robert Mark Bram <robertmarkbram@gmail.com> - 2013-02-26 23:04 -0800
        Re: Enum in Eclipse Scrapbook Robert Mark Bram <robertmarkbram@gmail.com> - 2013-02-26 23:17 -0800
          Re: Enum in Eclipse Scrapbook markspace <markspace@nospam.nospam> - 2013-02-27 07:41 -0800
            Re: Enum in Eclipse Scrapbook Jim Janney <jjanney@shell.xmission.com> - 2013-02-27 09:53 -0700
            Re: Enum in Eclipse Scrapbook Robert Mark Bram <robertmarkbram@gmail.com> - 2013-02-27 12:12 -0800
              Re: Enum in Eclipse Scrapbook Lew <lewbloch@gmail.com> - 2013-02-27 12:25 -0800
                Re: Enum in Eclipse Scrapbook lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-02-28 09:02 +0000
                  Re: Enum in Eclipse Scrapbook Arne Vajhøj <arne@vajhoej.dk> - 2013-02-28 08:28 -0500
                    Re: Enum in Eclipse Scrapbook lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-02-28 15:24 +0000
                      Re: Enum in Eclipse Scrapbook Arne Vajhøj <arne@vajhoej.dk> - 2013-02-28 16:48 -0500
                    Re: Enum in Eclipse Scrapbook Lew <lewbloch@gmail.com> - 2013-02-28 14:09 -0800
                      Re: Enum in Eclipse Scrapbook Arne Vajhøj <arne@vajhoej.dk> - 2013-03-03 21:24 -0500
                        Re: Enum in Eclipse Scrapbook Lew <lewbloch@gmail.com> - 2013-03-04 11:36 -0800
                          Re: Enum in Eclipse Scrapbook Arne Vajhøj <arne@vajhoej.dk> - 2013-03-07 14:19 -0500
                            Re: Enum in Eclipse Scrapbook Lew <lewbloch@gmail.com> - 2013-03-07 13:34 -0800
      Re: Enum in Eclipse Scrapbook Lew <lewbloch@gmail.com> - 2013-02-27 12:24 -0800
    Re: Enum in Eclipse Scrapbook Robert Mark Bram <robertmarkbram@gmail.com> - 2013-02-26 23:28 -0800
    Re: Enum in Eclipse Scrapbook lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-02-27 09:50 +0000
      Re: Enum in Eclipse Scrapbook Robert Mark Bram <robertmarkbram@gmail.com> - 2013-02-27 03:43 -0800
        Re: Enum in Eclipse Scrapbook lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-02-27 12:02 +0000
    Re: Enum in Eclipse Scrapbook Roedy Green <see_website@mindprod.com.invalid> - 2013-02-28 07:43 -0800
      Re: Enum in Eclipse Scrapbook Arne Vajhøj <arne@vajhoej.dk> - 2013-02-28 16:57 -0500

Page 2 of 2 — ← Prev page 1 [2]


#22570

FromRobert Mark Bram <robertmarkbram@gmail.com>
Date2013-02-27 03:43 -0800
Message-ID<8d3c2434-1a92-43c5-a379-a2a468e5a12f@googlegroups.com>
In reply to#22568
On Wednesday, 27 February 2013 20:50:06 UTC+11, lipska the kat  wrote:
> Hmm, this is irritating isn't it.
> Judging by the replies you've got in the various user forums this either 
> appears to be a bug or a limitation with the scrapbook
> 
> scrapbook pages are wrapped in a (presumably) top level class so you 
> should apparently be able to do
> 
> enum Month {JAN, FEB, MAR, APR, MAY, JUN, JUL, AUG, SEP, OCT, NOV, DEC};
> Month m;
> 
> But this fails in Juno on Linux with JDK 1.7.03
> 
> Searching Eclipse bugzilla for 'Juno scrapbook' returns 0 bugs
> 
> Have you considered posting this as a potential bug

Well, just in case it is a bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=401883

Rob
:)

[toc] | [prev] | [next] | [standalone]


#22573

Fromlipska the kat <"nospam at neversurrender dot co dot uk">
Date2013-02-27 12:02 +0000
Message-ID<-IWdnQlv9rFZaLDMnZ2dnUVZ8mOdnZ2d@bt.com>
In reply to#22570
On 27/02/13 11:43, Robert Mark Bram wrote:
> On Wednesday, 27 February 2013 20:50:06 UTC+11, lipska the kat  wrote:
>> Hmm, this is irritating isn't it.
>> Judging by the replies you've got in the various user forums this either
>> appears to be a bug or a limitation with the scrapbook
>>
>> scrapbook pages are wrapped in a (presumably) top level class so you
>> should apparently be able to do
>>
>> enum Month {JAN, FEB, MAR, APR, MAY, JUN, JUL, AUG, SEP, OCT, NOV, DEC};
>> Month m;
>>
>> But this fails in Juno on Linux with JDK 1.7.03
>>
>> Searching Eclipse bugzilla for 'Juno scrapbook' returns 0 bugs
>>
>> Have you considered posting this as a potential bug
>
> Well, just in case it is a bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=401883
>
> Rob
> :)

heh heh, now you've done it :-)

Stand by for plaudits or putdowns.

Either way can you post the results back here

Thanks

lipska

-- 
Lipska the Kat©: Troll hunter, sandbox destroyer
and farscape dreamer of Aeryn Sun

[toc] | [prev] | [next] | [standalone]


#22622

FromRoedy Green <see_website@mindprod.com.invalid>
Date2013-02-28 07:43 -0800
Message-ID<bouui81mt5ljn5k21gsd1b590i4fejp4fo@4ax.com>
In reply to#22563
On Tue, 26 Feb 2013 21:52:10 -0800 (PST), Robert Mark Bram
<robertmarkbram@gmail.com> wrote, quoted or indirectly quoted someone
who said :

>A a = new A();
>
>When I try to execute this I get:
>
>The member enum Month can only be defined inside a top-level class or interface

you can't create enum constants on the fly.  You must say
A a = A.MAR;
-- 
Roedy Green Canadian Mind Products http://mindprod.com
One thing I love about having a website, is that when I complain about
something, I only have to do it once. It saves me endless hours of 
grumbling.

[toc] | [prev] | [next] | [standalone]


#22636

FromArne Vajhøj <arne@vajhoej.dk>
Date2013-02-28 16:57 -0500
Message-ID<512fd2d0$0$289$14726298@news.sunsite.dk>
In reply to#22622
On 2/28/2013 10:43 AM, Roedy Green wrote:
> On Tue, 26 Feb 2013 21:52:10 -0800 (PST), Robert Mark Bram
> <robertmarkbram@gmail.com> wrote, quoted or indirectly quoted someone
> who said :
>>class A {
>>    enum Month {JAN, FEB, MAR, APR, MAY, JUN, JUL, AUG, SEP, OCT, NOV, DEC}
>>}
>> A a = new A();
>>
>> When I try to execute this I get:
>>
>> The member enum Month can only be defined inside a top-level class or interface
>
> you can't create enum constants on the fly.  You must say
> A a = A.MAR;

????

Have you read what you replied to?

Arne

[toc] | [prev] | [standalone]


Page 2 of 2 — ← Prev page 1 [2]

Back to top | Article view | comp.lang.java.programmer


csiph-web