diff options
author | Carolyn MacLeod | 2008-03-24 16:09:59 +0000 |
---|---|---|
committer | Carolyn MacLeod | 2008-03-24 16:09:59 +0000 |
commit | 113d35a8c625b7925eb335038beb652dccf9822f (patch) | |
tree | c9b045205d55fe647aadf1f2bdecb65c7e904d3c /bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/FileDialog.java | |
parent | 0638b11e137b710b4fad866870b11ed624b14cf1 (diff) | |
download | eclipse.platform.swt-113d35a8c625b7925eb335038beb652dccf9822f.tar.gz eclipse.platform.swt-113d35a8c625b7925eb335038beb652dccf9822f.tar.xz eclipse.platform.swt-113d35a8c625b7925eb335038beb652dccf9822f.zip |
4727 - DCR: FileDialog to use overwrite prompt (1GFDH0D)
- change API name to set/getOverwrite
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/FileDialog.java')
-rwxr-xr-x | bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/FileDialog.java | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/FileDialog.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/FileDialog.java index 6ec0e0eb8a..b496db7b67 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/FileDialog.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/FileDialog.java @@ -37,7 +37,7 @@ public class FileDialog extends Dialog { String [] fileNames = new String [0]; String filterPath = "", fileName = ""; int filterIndex = 0; - boolean overwritePrompt = false; + boolean overwrite = false; static final String FILTER = "*.*"; static int BUFFER_SIZE = 1024 * 32; static boolean USE_HOOK; @@ -268,7 +268,7 @@ public String open () { struct.lStructSize = OPENFILENAME.sizeof; struct.Flags = OS.OFN_HIDEREADONLY | OS.OFN_NOCHANGEDIR; boolean save = (style & SWT.SAVE) != 0; - if (save && overwritePrompt) struct.Flags |= OS.OFN_OVERWRITEPROMPT; + if (save && overwrite) struct.Flags |= OS.OFN_OVERWRITEPROMPT; Callback callback = null; if ((style & SWT.MULTI) != 0) { struct.Flags |= OS.OFN_ALLOWMULTISELECT | OS.OFN_EXPLORER; @@ -540,8 +540,8 @@ public void setFilterPath (String string) { * * @since 3.4 */ -public boolean getOverwritePrompt () { - return overwritePrompt; +public boolean getOverwrite () { + return overwrite; } /** @@ -553,7 +553,7 @@ public boolean getOverwritePrompt () { * * @since 3.4 */ -public void setOverwritePrompt (boolean prompt) { - overwritePrompt = prompt; +public void setOverwrite (boolean prompt) { + overwrite = prompt; } } |