/******************************************************************************* * Copyright (c) 2012 Red Hat, Inc. * 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 * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * Red Hat initial API and implementation *******************************************************************************/ package org.eclipse.linuxtools.profiling.provider.tests.stubby; import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.debug.core.ILaunch; import org.eclipse.debug.core.ILaunchConfiguration; import org.eclipse.jface.dialogs.MessageDialog; import org.eclipse.swt.widgets.Display; import org.eclipse.ui.IWorkbenchWindow; import org.eclipse.ui.PlatformUI; public class StubbyTimingLaunchConfigurationDelegate extends StubbyLaunchConfigurationDelegate { @Override public void launch(ILaunchConfiguration configuration, String mode, ILaunch launch, IProgressMonitor monitor) { Display.getDefault().asyncExec(() -> { IWorkbenchWindow window = PlatformUI.getWorkbench().getActiveWorkbenchWindow(); MessageDialog.openConfirm(window.getShell(), "Successful profile launch", //$NON-NLS-1$ "Successful profile launch"); //$NON-NLS-1$ }); } }