Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 2826

Summary: [Dialogs] File save as dialog does not prime container field (1GJWJQB)
Product: [Eclipse Project] Platform Reporter: Simon Arsenault <simon_arsenault>
Component: UIAssignee: Platform UI Triaged <platform-ui-triaged>
Status: CLOSED WORKSFORME QA Contact:
Severity: enhancement    
Priority: P5 CC: daniel_megert, Michael.Valenta, mistria
Version: 2.0Keywords: helpwanted
Target Milestone: 4.7 M4   
Hardware: All   
OS: Windows 98   
Whiteboard:

Description Simon Arsenault CLA 2001-10-10 22:44:17 EDT
Open a text file in the default text editor. Select Save As... from the file
	menu. Notice the dialog does not prime the "Enter or select the folder:"
	field. It should given it knows the resource being saved. It could take
	the value from it.

NOTES:
Comment 1 DJ Houghton CLA 2001-10-29 19:19:30 EST
PRODUCT VERSION:
	0.135 Win 98 SE

Comment 2 IH CLA 2003-01-15 13:59:08 EST
This seems like it should be such an easy bug to fix and quite annoying.  I
can't believe you haven't bothered to fix it in over a year.  You are trying to
get me to download the source and fix it myself aren't you.  If I make a patch
what are the chances that you'd take the time to put it into the build?    
Comment 3 IH CLA 2003-01-15 14:04:37 EST
Actually it seems that it does auto populate with the filename.  The bug now
comes in when you view file in resource history from cvs and open up a previous
version and then try file save as. 

For instance I open file x.xml and then right click on it in the navigator and
view in resource history.  Then from RH I double click on the version of the
file I would like to open, the file opens.  I then from the file menu choose
save as, the save as dialog comes up but the filename is unpopulated.

You might want to close this bug and open this as a new one?
Comment 4 IH CLA 2003-01-15 14:14:04 EST
Maybe this is really the VCM fault for not providing a filename for the resource
from team->view resource history?
Comment 5 Kim Horne CLA 2004-10-31 17:38:03 EST
We have no control over what happens on Save As.  This implemented on a per
editor basis.  TextEditor.doSaveAs() attempts to cast to a IFileEditorInput to
get a filename.  Team guys, is there a way the text guys could get a file name
from your input?
Comment 6 Jean-Michel Lemieux CLA 2004-11-01 09:02:12 EST
Java editors showing revisions from the repository are IStorageEditorInputs
which can provide an IStorage. I think IStorage has a getName, getPath that
could be used to prime the dialog.
Comment 7 Dani Megert CLA 2004-11-01 13:35:15 EST
Back to UI. SaveAsDialog only offers API to set the name. This PR requests to
set the container field. We would need something like setFullPath(...)
Comment 8 Susan McCourt CLA 2007-06-28 14:49:41 EDT
see also bug #2746, if anyone is considering taking this on.
Comment 9 Susan McCourt CLA 2009-07-09 15:30:44 EDT
As per http://wiki.eclipse.org/Platform_UI/Bug_Triage_Change_2009
Comment 10 Mickael Istria CLA 2016-11-10 10:53:54 EST
Tested with 4.7.M4, and the initial request seems to be properly available.