Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 2023
Collapse All | Expand All

(-)Eclipse UI/org/eclipse/ui/messages.properties (-2 / +3 lines)
Lines 27-34 Link Here
27
SaveAs.text = Save &As...
27
SaveAs.text = Save &As...
28
SaveAs.textOneArg = Save {0} &As...
28
SaveAs.textOneArg = Save {0} &As...
29
SaveAs.toolTip = Save To Another Location
29
SaveAs.toolTip = Save To Another Location
30
SaveAsDialog.title = Save File As...
30
SaveAsDialog.title = Save As
31
SaveAsDialog.text = Save As...
31
SaveAsDialog.message = Save file to another location.
32
SaveAsDialog.text = Save File As
32
SaveAsDialog.fileLabel = &File name:
33
SaveAsDialog.fileLabel = &File name:
33
SaveAsDialog.file = file
34
SaveAsDialog.file = file
34
SaveAsDialog.overwriteQuestion = The file {0} already exists. Do you want to replace the existing file?
35
SaveAsDialog.overwriteQuestion = The file {0} already exists. Do you want to replace the existing file?
(-)Eclipse UI/org/eclipse/ui/dialogs/SaveAsDialog.java (+18 lines)
Lines 18-23 Link Here
18
import org.eclipse.swt.layout.GridData;
18
import org.eclipse.swt.layout.GridData;
19
import org.eclipse.swt.layout.GridLayout;
19
import org.eclipse.swt.layout.GridLayout;
20
import org.eclipse.swt.widgets.*;
20
import org.eclipse.swt.widgets.*;
21
import org.eclipse.swt.graphics.Image;
21
import java.util.*;
22
import java.util.*;
22
23
23
/**
24
/**
Lines 42-47 Link Here
42
	private ResourceAndContainerGroup resourceGroup;
43
	private ResourceAndContainerGroup resourceGroup;
43
	private Button okButton;
44
	private Button okButton;
44
	private Button cancelButton;
45
	private Button cancelButton;
46
	
47
	private Image dlgTitleImage = null;
45
/**
48
/**
46
 * Creates a new Save As dialog for no specific file.
49
 * Creates a new Save As dialog for no specific file.
47
 *
50
 *
Lines 65-70 Link Here
65
	validatePage();
68
	validatePage();
66
	resourceGroup.setFocus();
69
	resourceGroup.setFocus();
67
	setTitle(WorkbenchMessages.getString("SaveAsDialog.title")); //$NON-NLS-1$
70
	setTitle(WorkbenchMessages.getString("SaveAsDialog.title")); //$NON-NLS-1$
71
	dlgTitleImage = WorkbenchImages.getImageDescriptor(IWorkbenchGraphicConstants.IMG_DLGBAN_SAVEAS_DLG).createImage();
72
	setTitleImage(dlgTitleImage);
73
	setMessage(WorkbenchMessages.getString("SaveAsDialog.message"));
74
}
75
/**
76
 * Dispose of the banner image when the dialog is closed.
77
 * <p>
78
 *
79
 * @return <code>true</code> if the window is (or was already) closed, 
80
 *   and <code>false</code> if it is still open
81
 */
82
public boolean close() {
83
	if (dlgTitleImage != null) dlgTitleImage.dispose();
84
	return super.close();
85
	
68
}
86
}
69
/* (non-Javadoc)
87
/* (non-Javadoc)
70
 * Method declared on Dialog.
88
 * Method declared on Dialog.
(-)Eclipse UI/org/eclipse/ui/internal/IWorkbenchGraphicConstants.java (-1 / +2 lines)
Lines 156-163 Link Here
156
	public final static String IMG_WIZBAN_EXPORTZIP_WIZ = "IMG_WIZBAN_EXPORTZIP_WIZ"; //$NON-NLS-1$
156
	public final static String IMG_WIZBAN_EXPORTZIP_WIZ = "IMG_WIZBAN_EXPORTZIP_WIZ"; //$NON-NLS-1$
157
157
158
	public final static String IMG_VIEW_DEFAULTVIEW_MISC = "IMG_VIEW_DEFAULTVIEW_MISC"; //$NON-NLS-1$
158
	public final static String IMG_VIEW_DEFAULTVIEW_MISC = "IMG_VIEW_DEFAULTVIEW_MISC"; //$NON-NLS-1$
159
	
160
159
160
	// dialog images
161
	public final static String IMG_DLGBAN_SAVEAS_DLG = "IMG_DLGBAN_SAVEAS_DLG"; //$NON-NLS-1$
161
162
162
	// task objects
163
	// task objects
163
	public final static String IMG_OBJS_HPRIO_TSK = "IMG_OBJS_HPRIO_TSK"; //$NON-NLS-1$
164
	public final static String IMG_OBJS_HPRIO_TSK = "IMG_OBJS_HPRIO_TSK"; //$NON-NLS-1$
(-)Eclipse UI/org/eclipse/ui/internal/WorkbenchImages.java (+3 lines)
Lines 242-247 Link Here
242
	declareImage(IWorkbenchGraphicConstants.IMG_WIZBAN_EXPORTDIR_WIZ, PATH_WIZBAN+"exportdir_wiz.gif");//$NON-NLS-1$
242
	declareImage(IWorkbenchGraphicConstants.IMG_WIZBAN_EXPORTDIR_WIZ, PATH_WIZBAN+"exportdir_wiz.gif");//$NON-NLS-1$
243
	declareImage(IWorkbenchGraphicConstants.IMG_WIZBAN_EXPORTZIP_WIZ, PATH_WIZBAN+"exportzip_wiz.gif");//$NON-NLS-1$
243
	declareImage(IWorkbenchGraphicConstants.IMG_WIZBAN_EXPORTZIP_WIZ, PATH_WIZBAN+"exportzip_wiz.gif");//$NON-NLS-1$
244
244
245
	// dialog images
246
	declareImage(IWorkbenchGraphicConstants.IMG_DLGBAN_SAVEAS_DLG, PATH_WIZBAN+"saveas_dlg.gif");//$NON-NLS-1$
247
245
	/* Cache the commonly used ones */
248
	/* Cache the commonly used ones */
246
	
249
	
247
	// object images -- these are also shared images.
250
	// object images -- these are also shared images.

Return to bug 2023