Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/gprof
diff options
context:
space:
mode:
authorDavid E. Narváez2014-10-12 07:22:04 +0000
committerJeff Johnston2014-10-27 16:40:40 +0000
commit001b62e9364d16924f953388c89ddca8f61af561 (patch)
tree827bfb6180ce84ec1c79c7d6fbf3ccc00397b03e /gprof
parente4a8412cbe9ce3a161101bc368d001e4f30b53bf (diff)
downloadorg.eclipse.linuxtools-001b62e9364d16924f953388c89ddca8f61af561.tar.gz
org.eclipse.linuxtools-001b62e9364d16924f953388c89ddca8f61af561.tar.xz
org.eclipse.linuxtools-001b62e9364d16924f953388c89ddca8f61af561.zip
Create a New Shell if Active Shell is Null
This happens if, e.g., Eclipse is not the focused application when the profiling finishes. Change-Id: I3e7939b4f9a599143662af0f7d7217d6fe7a75d8 Signed-off-by: David E. Narváez <david.narvaez@computer.org> Reviewed-on: https://git.eclipse.org/r/34755 Tested-by: Hudson CI Reviewed-by: Jeff Johnston <jjohnstn@redhat.com> Tested-by: Jeff Johnston <jjohnstn@redhat.com>
Diffstat (limited to 'gprof')
-rw-r--r--gprof/org.eclipse.linuxtools.gprof.launch/src/org/eclipse/linuxtools/internal/gprof/launch/GprofNoGmonDialog.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/gprof/org.eclipse.linuxtools.gprof.launch/src/org/eclipse/linuxtools/internal/gprof/launch/GprofNoGmonDialog.java b/gprof/org.eclipse.linuxtools.gprof.launch/src/org/eclipse/linuxtools/internal/gprof/launch/GprofNoGmonDialog.java
index d7f298af6e..3e9afc4dac 100644
--- a/gprof/org.eclipse.linuxtools.gprof.launch/src/org/eclipse/linuxtools/internal/gprof/launch/GprofNoGmonDialog.java
+++ b/gprof/org.eclipse.linuxtools.gprof.launch/src/org/eclipse/linuxtools/internal/gprof/launch/GprofNoGmonDialog.java
@@ -118,7 +118,7 @@ public class GprofNoGmonDialog {
*/
private String browseFileSystemHandler(Shell shell, IProject project) {
- FileDialog dialog = new FileDialog(shell, SWT.OPEN);
+ FileDialog dialog = new FileDialog((shell != null) ? shell : new Shell(), SWT.OPEN);
dialog.setText(GprofLaunchMessages.GprofNoGmonDialog_OpenGmon);
// Open Project path.

Back to the top