Community
Participate
Working Groups
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.
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.
Created attachment 81151 [details] Patch proposal, always use FileDialog for "Save as"
So if we use the FileDialog how do we save inside of Eclipse?
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.
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.
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
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).
"As per http://wiki.eclipse.org/Platform_UI/Bug_Triage_Change_2009"
*** Bug 329545 has been marked as a duplicate of this bug. ***
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
(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
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.
(In reply to comment #12) > CQ:WIND00239897 > > I think the selection needs to be in the dialog, not in a menu outside. Correct.