From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,5355e4a180d9f6be X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!postnews.google.com!p25g2000hsf.googlegroups.com!not-for-mail From: Britt Snodgrass Newsgroups: comp.lang.ada Subject: Re: Eclipse & gnatbench Date: Fri, 7 Mar 2008 21:26:28 -0800 (PST) Organization: http://groups.google.com Message-ID: <7d588722-5f0f-453c-ab62-6847bea7647b@p25g2000hsf.googlegroups.com> References: <63am2uF26pon2U1@mid.individual.net> <6e28be91-ae4a-4ff2-8c2f-0b862452fc3e@p73g2000hsd.googlegroups.com> <889abc40-5c1e-4230-a86e-adf3d88d1f4a@p25g2000hsf.googlegroups.com> NNTP-Posting-Host: 75.167.223.14 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1204953988 20573 127.0.0.1 (8 Mar 2008 05:26:28 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sat, 8 Mar 2008 05:26:28 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: p25g2000hsf.googlegroups.com; posting-host=75.167.223.14; posting-account=rdRzuwoAAAAyW3CSBhs_xgfCUJSc1aNt User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022),gzip(gfe),gzip(gfe) Xref: g2news1.google.com comp.lang.ada:20230 Date: 2008-03-07T21:26:28-08:00 List-Id: On Mar 7, 1:09=A0pm, Eric Hughes wrote: > On Mar 6, 9:49 pm, Britt Snodgrass wrote: > > > It > > handles the Apex naming convention (i.e., *.1.ada & *.2.ada) just fine > > if the GNATbench project's .gpr file specifies it [...] > > Already had that. > > > [...] *and* if the > > internal Eclipse file association preferences are updated to associate > > the .ada extension with the GNATbench Ada editor (in addition to .ads > > and .adb). > > Didn't have that, and it seems to improve matters. =A0Thank you. > > I did check, though, and I could not find the necessity of a second > manual step anywhere in the documentation available under Eclipse. =A0I > suppose I had naively figured that if I specified the naming > convention once (in the .gpr file), that it would automagically work > in the tool wherever it needed to. > > Eric Its not in the documentation. I had to ask AdaCore. I think they didn't want to risk taking over file associations from a different Ada compiler but I'm pretty sure the Eclipse file association preference settings are only relevant inside Eclipse. I still keep a copy of Apex Ada NT 4.2.0c installed. Setting the .ada association inside Eclipse didn't change the association outside of Eclipse - double- clicking a *.1.ada file outside of Eclipse still launches Apex NT. I think it would be good if GNATbench's Ada editor was automatically associated with .ada and .adc (for gnat.adc) extensions inside Eclipse. Outside of Eclipse I prefer to keep .ads, .adb and .gpr extensions associated with their GPS editor so that GPS is launched when I double-click the file in Windoze Exploder. I usually manage Windows file associations using the "assoc" and "ftype" commands available from cmd.exe if I need to change them. As far as I know. there is no way to pass a filename to Eclipse during startup. This means there is no way to open a file in Eclipse/ GNATbench simply by double-clicking on a filename. - Britt