comp.lang.ada
 help / color / mirror / Atom feed
From: Britt Snodgrass <britt.snodgrass@gmail.com>
Subject: Re: Eclipse & gnatbench
Date: Fri, 7 Mar 2008 21:26:28 -0800 (PST)
Date: 2008-03-07T21:26:28-08:00	[thread overview]
Message-ID: <7d588722-5f0f-453c-ab62-6847bea7647b@p25g2000hsf.googlegroups.com> (raw)
In-Reply-To: 889abc40-5c1e-4230-a86e-adf3d88d1f4a@p25g2000hsf.googlegroups.com

On Mar 7, 1:09 pm, Eric Hughes <eric....@gmail.com> wrote:
> On Mar 6, 9:49 pm, Britt Snodgrass <britt.snodgr...@gmail.com> 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.  Thank you.
>
> I did check, though, and I could not find the necessity of a second
> manual step anywhere in the documentation available under Eclipse.  I
> 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



  reply	other threads:[~2008-03-08  5:26 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-06 16:56 Eclipse & gnatbench Alex R. Mosteo
2008-03-06 18:10 ` Eric Hughes
2008-03-07  4:49   ` Britt Snodgrass
2008-03-07 10:55     ` Alex R. Mosteo
2008-03-08  5:48       ` Britt Snodgrass
2008-03-07 19:09     ` Eric Hughes
2008-03-08  5:26       ` Britt Snodgrass [this message]
2008-03-07 10:53   ` Alex R. Mosteo
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox