Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSarika Sinha2017-11-15 00:26:51 -0500
committerSarika Sinha2017-12-20 06:29:53 -0500
commit615192c39abed12d5fd9699ce80be04b20972519 (patch)
treedff8063ff3014766f8084a479ed208758aea6ab6 /org.eclipse.debug.ui/ui/org/eclipse/debug/ui
parent0d9859483e43e67c6489c56f117e09717eb7c124 (diff)
downloadeclipse.platform.debug-615192c39abed12d5fd9699ce80be04b20972519.tar.gz
eclipse.platform.debug-615192c39abed12d5fd9699ce80be04b20972519.tar.xz
eclipse.platform.debug-615192c39abed12d5fd9699ce80be04b20972519.zip
Bug 527185 - Platform Debug should use SWT.SHEET with File and DirectoryI20171220-2000
Diffstat (limited to 'org.eclipse.debug.ui/ui/org/eclipse/debug/ui')
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/ui/CommonTab.java4
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/ui/WorkingDirectoryBlock.java5
2 files changed, 5 insertions, 4 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/CommonTab.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/CommonTab.java
index 55800bac4..69cb0ac52 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/CommonTab.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/CommonTab.java
@@ -316,7 +316,7 @@ public class CommonTab extends AbstractLaunchConfigurationTab {
@Override
public void widgetSelected(SelectionEvent e) {
String filePath = fFileText.getText();
- FileDialog dialog = new FileDialog(getShell(), SWT.SAVE);
+ FileDialog dialog = new FileDialog(getShell(), SWT.SAVE | SWT.SHEET);
filePath = dialog.open();
if (filePath != null) {
fFileText.setText(filePath);
@@ -426,7 +426,7 @@ public class CommonTab extends AbstractLaunchConfigurationTab {
@Override
public void widgetSelected(SelectionEvent e) {
String filePath = fInputFileLocationText.getText();
- FileDialog dialog = new FileDialog(getShell(), SWT.OK);
+ FileDialog dialog = new FileDialog(getShell(), SWT.OK | SWT.SHEET);
filePath = dialog.open();
if (filePath != null) {
fInputFileLocationText.setText(filePath);
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/WorkingDirectoryBlock.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/WorkingDirectoryBlock.java
index 973b5d310..bda0e2fb0 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/WorkingDirectoryBlock.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/WorkingDirectoryBlock.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2011 IBM Corporation and others.
+ * Copyright (c) 2005, 2017 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -31,6 +31,7 @@ import org.eclipse.debug.core.ILaunchConfiguration;
import org.eclipse.debug.core.ILaunchConfigurationWorkingCopy;
import org.eclipse.debug.internal.ui.DebugUIMessages;
import org.eclipse.debug.internal.ui.SWTFactory;
+import org.eclipse.swt.SWT;
import org.eclipse.swt.events.ModifyEvent;
import org.eclipse.swt.events.ModifyListener;
import org.eclipse.swt.events.SelectionAdapter;
@@ -183,7 +184,7 @@ public abstract class WorkingDirectoryBlock extends AbstractLaunchConfigurationT
* Show a dialog that lets the user select a working directory
*/
private void handleWorkingDirBrowseButtonSelected() {
- DirectoryDialog dialog = new DirectoryDialog(getShell());
+ DirectoryDialog dialog = new DirectoryDialog(getShell(), SWT.SHEET);
dialog.setMessage(DebugUIMessages.WorkingDirectoryBlock_7);
String currentWorkingDir = getWorkingDirectoryText();
if (!currentWorkingDir.trim().equals("")) { //$NON-NLS-1$

Back to the top