Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Unlinking linked code w/out deleting it
Unlinking linked code w/out deleting it [message #145776] Thu, 26 February 2004 13:14 Go to next message
Eclipse UserFriend
Originally posted by: howardk.fatdog.com

Hi, TIA for help on this. I have a project that uses source code in another
project via a linked folder. I want to remove the link temporarily to relink
to a newer version of the source in another project. I don't know how to do
the unlinking however. All I can see is an Edit::Delete command, but that
deletes the original source, which is something I definitely don't want to
do. Help! (The Help files unfortunately aren't very helpful.)
Thanks,
Howard
Re: Unlinking linked code w/out deleting it [message #145787 is a reply to message #145776] Thu, 26 February 2004 14:00 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse-user.jibeinc.com

Howard Katz wrote:

> Hi, TIA for help on this. I have a project that uses source code in another
> project via a linked folder. I want to remove the link temporarily to relink
> to a newer version of the source in another project. I don't know how to do
> the unlinking however. All I can see is an Edit::Delete command, but that
> deletes the original source, which is something I definitely don't want to
> do. Help! (The Help files unfortunately aren't very helpful.)

A little experimentation goes a long way. I just learned a few things
about linked resources in the last 5 minutes...(using Eclipse 2.1.x)

1) Selecting a linked folder in Eclipse and choosing Delete only deletes
the link, not the folder/files that it points to. The confirmation
dialog that comes up when you choose Delete states this.

2) Linked resources can use Variables to indicate where they link to,
and the values for those variables can be changed at any time. So, when
creating your linked folder, choose the Variables... option and create a
path variable that defines where you want it to link to. Later, you can
go to Preferences > Workbench > Linked Resources and edit that variable
to point to another location. Go back to the Navigator and refresh the
linked folder - you'll see the contents change to reflect the new
variable value.

3) Linked folders can only be created as direct children of Project
folders. I'm not sure why this limitation exists, but it is there.

HTH,
Eric
--
Eric Rizzo
Software Architect
Jibe, Inc.
http://www.jibeinc.com
Re: Unlinking linked code w/out deleting it [message #145798 is a reply to message #145787] Thu, 26 February 2004 15:18 Go to previous message
Eclipse UserFriend
Originally posted by: howardk.fatdog.com

Lots of good information there! Thanks. What I ended up doing is deleting
the project w/out deleting its contents, and then going in manually into the
workspace and deleting the copies that had been made there. It only took me
a minute or so to reconstruct the project.

As you say, experimenting's a good thing. I had tried deleting a single
linked file, but if I remember correctly, it really got deleted w/out any
confirmation dialog appearing. I think I'll go back and try that again ...

Thanks again,
Howard


"Eric Rizzo" <eclipse-user@jibeinc.com> wrote in message
news:c1lfrp$qe1$1@eclipse.org...
> Howard Katz wrote:
>
> > Hi, TIA for help on this. I have a project that uses source code in
another
> > project via a linked folder. I want to remove the link temporarily to
relink
> > to a newer version of the source in another project. I don't know how to
do
> > the unlinking however. All I can see is an Edit::Delete command, but
that
> > deletes the original source, which is something I definitely don't want
to
> > do. Help! (The Help files unfortunately aren't very helpful.)
>
> A little experimentation goes a long way. I just learned a few things
> about linked resources in the last 5 minutes...(using Eclipse 2.1.x)
>
> 1) Selecting a linked folder in Eclipse and choosing Delete only deletes
> the link, not the folder/files that it points to. The confirmation
> dialog that comes up when you choose Delete states this.
>
> 2) Linked resources can use Variables to indicate where they link to,
> and the values for those variables can be changed at any time. So, when
> creating your linked folder, choose the Variables... option and create a
> path variable that defines where you want it to link to. Later, you can
> go to Preferences > Workbench > Linked Resources and edit that variable
> to point to another location. Go back to the Navigator and refresh the
> linked folder - you'll see the contents change to reflect the new
> variable value.
>
> 3) Linked folders can only be created as direct children of Project
> folders. I'm not sure why this limitation exists, but it is there.
>
> HTH,
> Eric
> --
> Eric Rizzo
> Software Architect
> Jibe, Inc.
> http://www.jibeinc.com
Previous Topic:CVS does not show modules and problems committing back
Next Topic:CVS does not show modules and problems committing back
Goto Forum:
  


Current Time: Wed Jul 23 08:14:45 EDT 2025

Powered by FUDForum. Page generated in 0.04093 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top