| Summary: | Eclipse can wipe out an existing file without prompting | ||
|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Craig Edwards <craig> |
| Component: | IDE | Assignee: | Platform-UI-Inbox <Platform-UI-Inbox> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | critical | ||
| Priority: | P3 | CC: | craig, pwebster, remy.suen |
| Version: | 3.5.2 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows Vista | ||
| Whiteboard: | |||
|
Description
Craig Edwards
In case this is required information i am also using the CFEclipse plugin with eclipse 3.5.2. > 3. Name the new file with the same name as the existing file
It shows me an error that a file already exists.
when trying here, i get no prompt or message. Could this be a behaviour specific to the CFEclipse plugin? (In reply to comment #3) > when trying here, i get no prompt or message. Could this be a behaviour > specific to the CFEclipse plugin? Which Wizard are you using to create the file? The New File wizard? I believe so. right click parent folder, go through new -> cfml page, provide a filename, click finish. I am pretty new to eclipse, so i am not sure exactly what provides this functionality, e.g. if it is templated, or entirely part of the plugin. (In reply to comment #5) > I believe so. right click parent folder, go through new -> cfml page, provide a > filename, click finish. I am pretty new to eclipse, so i am not sure exactly > what provides this functionality, e.g. if it is templated, or entirely part of > the plugin. New cfml Page is not from Eclipse. Could be from the CFEclipse plugin. Using PDE Spy (Alt+Shift+F1) in that page will help you to find the right plugin Also, check your error log <workspace>/.metadata/.log These are the only errors i get relating to the file it replaced, i get this several times one for each time i tested this afterwards:
--------------------------------------------------------------
!MESSAGE Resource is out of sync with the file system: '/mobilitystocksys/templates/content/admin/index.cfm'.
!SUBENTRY 1 org.eclipse.search 4 4 2010-06-15 09:26:14.755
!MESSAGE File 'mobilitystocksys/templates/content/admin/getxml.cfm' has been skipped, problem while reading: ('Resource is out of sync with the file system: '/mobilitystocksys/templates/content/admin/getxml.cfm'.').
!STACK 1
org.eclipse.core.internal.resources.ResourceException: Resource is out of sync with the file system: '/mobilitystocksys/templates/content/admin/getxml.cfm'.
at org.eclipse.core.internal.localstore.FileSystemResourceManager.read(FileSystemResourceManager.java:664)
at org.eclipse.core.internal.resources.File.getContents(File.java:288)
at org.eclipse.core.internal.resources.File.getContents(File.java:277)
at org.eclipse.search.internal.core.text.FileCharSequenceProvider$FileCharSequence.getInputStream(FileCharSequenceProvider.java:283)
at org.eclipse.search.internal.core.text.FileCharSequenceProvider$FileCharSequence.initializeReader(FileCharSequenceProvider.java:277)
at org.eclipse.search.internal.core.text.FileCharSequenceProvider$FileCharSequence.reset(FileCharSequenceProvider.java:269)
at org.eclipse.search.internal.core.text.FileCharSequenceProvider$FileCharSequence.<init>(FileCharSequenceProvider.java:255)
at org.eclipse.search.internal.core.text.FileCharSequenceProvider.newCharSequence(FileCharSequenceProvider.java:36)
at org.eclipse.search.internal.core.text.TextSearchVisitor.processFile(TextSearchVisitor.java:260)
at org.eclipse.search.internal.core.text.TextSearchVisitor.processFiles(TextSearchVisitor.java:196)
at org.eclipse.search.internal.core.text.TextSearchVisitor.search(TextSearchVisitor.java:172)
at org.eclipse.search.internal.core.text.TextSearchVisitor.search(TextSearchVisitor.java:184)
at org.eclipse.search.core.text.TextSearchEngine$1.search(TextSearchEngine.java:54)
at org.eclipse.search.internal.ui.text.FileSearchQuery.run(FileSearchQuery.java:182)
at org.eclipse.search2.internal.ui.InternalSearchUI$InternalSearchJob.run(InternalSearchUI.java:91)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
|