Skip to main content



      Home
Home » Newcomers » Newcomers » Eclipse Not Really Saving File Changes
Eclipse Not Really Saving File Changes [message #259030] Mon, 23 June 2008 12:38 Go to next message
Eclipse UserFriend
Originally posted by: cowpea.yahoo.com

I have been using Eclipse PDT to develop and edit a large PHP/MYSQL
application for several months now. Things have been great, Eclipse Rocks!

I had to create a new PHP project (we won't go into why I lost the old
one) and used Drag and Drop to load the files from localhost into the
workspace in Eclipse.

So the actual live files are located at : C:\inetpub\wwwroot
The workspace file are located at : C:\Documents and
Settings\Administrator\OPM_Workspace\OPM3

If I edit a file from within Elipse, the file appears to save without
error... the little asterisk by the file name disappears. The reality is
that the live files in C:\inetpub\wwwroot did not really change.

Now if I want to develop this app in Eclipse, I am having to maintain two
different sets of files... (Bleh!)

If anyone can help, I would greatly appreciate it. I want to keep using
Eclipse PDT to debug and develop this app... I dunno if I can or want to
keep maintaining two sets of files though.

Sincerely,

Karen C
Re: Eclipse Not Really Saving File Changes [message #259039 is a reply to message #259030] Mon, 23 June 2008 13:39 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: codeslave.ca.ibm.com

Copying to eclipse.tools.pdt in case someone there has any ideas...

Nick

Karen C wrote:
> I have been using Eclipse PDT to develop and edit a large PHP/MYSQL
> application for several months now. Things have been great, Eclipse Rocks!
>
> I had to create a new PHP project (we won't go into why I lost the old
> one) and used Drag and Drop to load the files from localhost into the
> workspace in Eclipse.
>
> So the actual live files are located at : C:\inetpub\wwwroot
> The workspace file are located at : C:\Documents and
> Settings\Administrator\OPM_Workspace\OPM3
>
> If I edit a file from within Elipse, the file appears to save without
> error... the little asterisk by the file name disappears. The reality is
> that the live files in C:\inetpub\wwwroot did not really change.
> Now if I want to develop this app in Eclipse, I am having to maintain
> two different sets of files... (Bleh!)
>
> If anyone can help, I would greatly appreciate it. I want to keep using
> Eclipse PDT to debug and develop this app... I dunno if I can or want to
> keep maintaining two sets of files though.
>
> Sincerely,
>
> Karen C
>
>
>

--
Nick Boldt :: Release Engineer, IBM Toronto Lab
Eclipse Modeling :: http://www.eclipse.org/modeling
http://wiki.eclipse.org/index.php/User:Nickb
Re: Eclipse Not Really Saving File Changes [message #259043 is a reply to message #259030] Mon, 23 June 2008 14:03 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse-news.rizzoweb.com

Karen C wrote:
> I have been using Eclipse PDT to develop and edit a large PHP/MYSQL
> application for several months now. Things have been great, Eclipse Rocks!
>
> I had to create a new PHP project (we won't go into why I lost the old
> one) and used Drag and Drop to load the files from localhost into the
> workspace in Eclipse.
>
> So the actual live files are located at : C:\inetpub\wwwroot
> The workspace file are located at : C:\Documents and
> Settings\Administrator\OPM_Workspace\OPM3
>
> If I edit a file from within Elipse, the file appears to save without
> error... the little asterisk by the file name disappears. The reality is
> that the live files in C:\inetpub\wwwroot did not really change.
> Now if I want to develop this app in Eclipse, I am having to maintain
> two different sets of files... (Bleh!)

When you dropped the files into Eclipse, you got copies of them in your
Eclipse workspace; it is those files that are being modified. I'm not
sure why you would expect anything different - it would be quite
counter-intutitive (to me) for Eclipse to have somehow made "links" to
the original files.
In any case, I don't know if PDT has any special features to support
what you want, but in general you could use a linked directory in your
Eclipse project that points to the "live" location. In your project,
when you create a Folder, click the Advanced button to see the option
for creating a linked folder. Also, in the Help contents, navigate to
the page Workbench User Guide > Tasks > "Working with projects, folders
and files" > "Creating linked resources"

Hope this helps,
Eric
Re: Eclipse Not Really Saving File Changes [message #259070 is a reply to message #259039] Mon, 23 June 2008 15:54 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

Actually there are a few solutions for this (common) request, I personally
prefer to define an alias in my server configuration to a specific
workspace or project. This alias resolves the base path URL and addresses
it to my actual web files.

take a look around the tutorials site
(http://wiki.eclipse.org/PDT/TUTORIALS), I am sure that one of them
describes how to do it

- Roy
Re: Eclipse Not Really Saving File Changes [message #259654 is a reply to message #259039] Mon, 30 June 2008 18:31 Go to previous message
Eclipse UserFriend
Originally posted by: cowpea.yahoo.com

Thanks so much Nick and Roy! Your posts were very informative and gave me
what I needed to continue. Thanks Guys!
Previous Topic:Adding the CommonNavigator PopupMenu to my View
Next Topic:TPTP profile files too large
Goto Forum:
  


Current Time: Thu May 08 06:14:16 EDT 2025

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

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

Back to the top