Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!eternal-september.org!feeder.eternal-september.org!mx05.eternal-september.org!.POSTED!not-for-mail From: markspace Newsgroups: comp.lang.java.programmer Subject: Re: Enum in Eclipse Scrapbook Date: Wed, 27 Feb 2013 07:41:36 -0800 Organization: A noiseless patient Spider Lines: 21 Message-ID: References: <515de149-3ee1-482d-a090-82ce264ed142@googlegroups.com> <4e2d049c-9a8b-420c-8dfd-293402e7bf95@googlegroups.com> <47939433-d698-4df5-8789-09c4d841fa88@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Wed, 27 Feb 2013 15:40:26 +0000 (UTC) Injection-Info: mx05.eternal-september.org; posting-host="fba3415ba68d85d643935af2f52f0b4b"; logging-data="1981"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19grCCQkGpepVWo+PDJtBJb9pyGbkDFv2M=" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130215 Thunderbird/17.0.3 In-Reply-To: <47939433-d698-4df5-8789-09c4d841fa88@googlegroups.com> Cancel-Lock: sha1:lu0b9cVnrNO5Z4FEc0ei+Q3b3K8= Xref: csiph.com comp.lang.java.programmer:22575 On 2/26/2013 11:17 PM, Robert Mark Bram wrote: > On Wednesday, 27 February 2013 18:04:20 UTC+11, Robert Mark Bram > wrote: >> It is an Eclipse Scrapbook page - a jpage file. There is no class >> as such. > > Which most likely means that Eclipse shoves the code into a main > method I guess.. which may simply mean I cannot declare an enum in a > Scrapbook. > No se hablo Eclipse Scapbook -- is that a plugin? Like some sort of bean shell or copy-paste tool? I'm used to class names matching file names; when they don't you get errors like missing top-level classes and whatnot. That's why I focused in on the file name. I assumed you might have copied the code to a new file but forgotten to change the file name. It does sound like a bug in whatever is doing the parsing here, or at least a missing feature.