Bug 87863 - [IDE] "save as" can't save outside the workspace
Summary: [IDE] "save as" can't save outside the workspace
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: IDE (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows 2000
: P5 enhancement with 5 votes (vote)
Target Milestone: ---   Edit
Assignee: Platform UI Triaged CLA
QA Contact:
URL:
Whiteboard:
Keywords: bugday, helpwanted
: 329545 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-03-12 18:30 EST by Dave Dyer CLA
Modified: 2012-11-28 08:47 EST (History)
8 users (show)

See Also:


Attachments
Patch proposal, always use FileDialog for "Save as" (6.56 KB, patch)
2007-10-25 06:53 EDT, Wieant CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dave Dyer CLA 2005-03-12 18:30:51 EST
Use "file/open untitled text file", add some text, use "save as"
The only choices available are inside the current workspace. 
"Save as" ought to let me navigate anywhere to save the file.
Comment 1 Wieant CLA 2007-10-25 06:48:26 EDT
Although editors can implement their own "save as" behavior, the problem seems to be that the base AbstractDecoratedTextEditor class uses an implementation where a different dialog is used for workspace resources versus external files. The simplest solution might be to always use the 'external' FileDialog opposed to the SaveAsDialog.
Comment 2 Wieant CLA 2007-10-25 06:53:16 EDT
Created attachment 81151 [details]
Patch proposal, always use FileDialog for "Save as"
Comment 3 Tod Creasey CLA 2007-10-25 07:40:27 EDT
So if we use the FileDialog how do we save inside of Eclipse?
Comment 4 Wieant CLA 2007-10-25 07:51:20 EDT
As long as you save it to a location within the workspace, the getWorkspaceFile() method should convert it to the appropriate IFile resource, and the editor will receive a FileEditorInput as its new input, saved outside of the workspace and it will receive a FileStoreEditorInput instead.
Comment 5 Tod Creasey CLA 2007-10-25 09:07:03 EDT
The problem with that is that the user needs to know where thier workspace as and how it looks on the file system. They will also get filtered out directories, no decorations etc.

We need a solution where the save as in Eclipse gives you and eclipse look with an option to save externally.
Comment 6 Wieant CLA 2007-10-25 10:47:22 EDT
The user does not have to know where the workspace is as the File dialog will open on the location of the resource being saved. Apart from that I agree that an Eclipse oriented SaveAs dialog with a 'save external' option is preferred.

If possible, I'd appreciate if, until a target milestone is set for the proper solution, the proposed patch could be installed. That at least gives the option to save both within as well as external to the workspace.

Regards,
  Wieant
Comment 7 Dave Dyer CLA 2007-10-25 15:08:20 EDT
It sounds like you need two carefully named menu items, one
"save a copy included in the workspace"
"save a copy ignored by the the workspace"

I'm not proposing those as the actual names, just what they would do.

I've complained elsewhere that eclipse's sense of ownership
of all files inside the workspace directory causes semantic
problems; It's hard to designate files eclipse should ignore;
but if you implement the "save ignored by" and you actually
save inside the workspace directory, the file ought to automatically
be added to the inactive list (ie; eclipse won't attempt to parse,
bless, or compile it).
Comment 8 Susan McCourt CLA 2009-07-15 12:06:29 EDT
"As per http://wiki.eclipse.org/Platform_UI/Bug_Triage_Change_2009"
Comment 9 Dani Megert CLA 2010-11-05 11:29:41 EDT
*** Bug 329545 has been marked as a duplicate of this bug. ***
Comment 10 Yevgeny Shifrin CLA 2011-05-08 05:59:13 EDT
Hi,

Are there any plans to support this functionality?

Comment: In case there are several RSE connections defined (LOCAL, FTP, etc.) maybe it is possible to add an option to save this file there as well. 

Thanks,
Yevgeny
Comment 11 Paul Webster CLA 2011-05-09 08:59:11 EDT
(In reply to comment #10)
> Hi,
> 
> Are there any plans to support this functionality?

It is marked helpwanted, so we'll accept/review patches if any are contributed.

> Comment: In case there are several RSE connections defined (LOCAL, FTP, etc.)
> maybe it is possible to add an option to save this file there as well. 

RSE would have to provide that  functionality.

Or there would need to be another Save As enhancement that would allow contributors to "specify" a filesystem and/or EFS  to use.

PW
Comment 12 Martin Oberhuber CLA 2012-11-28 08:36:17 EST
CQ:WIND00239897

There are other places in Eclipse which can save into the workspace or into a file (eg Export Team Project Set). I think the selection needs to be in the dialog, not in a menu outside.
Comment 13 Dani Megert CLA 2012-11-28 08:47:58 EST
(In reply to comment #12)
> CQ:WIND00239897
> 
> I think the selection needs to be in the dialog, not in a menu outside.

Correct.