/******************************************************************************* * Copyright (c) 2017 Rogue Wave Software Inc. 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 * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * Rogue Wave Software Inc. - initial implementation *******************************************************************************/ package org.eclipse.php.profile.ui.launcher; import org.eclipse.debug.core.ILaunchConfiguration; import org.eclipse.debug.core.ILaunchConfigurationWorkingCopy; import org.eclipse.php.profile.ui.launcher.AbstractPHPLaunchConfigurationProfilerTab.StatusMessage; import org.eclipse.php.profile.ui.launcher.AbstractPHPLaunchConfigurationProfilerTab.WidgetListener; import org.eclipse.swt.widgets.Composite; /** * <p> * A profiler launch settings section is used to edit/view attributes of a * specific profiler (debugger) type in 'Profiler' tab. Profiler launch settings * section are contributed with the use of * <code>org.eclipse.php.profile.ui.phpProfilerLaunchSettingsSections</code> * extension point. * </p> * * @author Bartlomiej Laczkowski */ public interface IProfilerLaunchSettingsSection { /** * Creates the settings section for this launch configuration tab under the * given parent composite. This method is called once on tab creation, after * <code>setLaunchConfigurationDialog</code> is called. * * @param parent * @param widgetListener */ void createSection(Composite parent, WidgetListener widgetListener); /** * Initializes this sections's controls with values from the given launch * configuration. This method is called when a configuration is selected to * view or edit, after 'Profiler' tab's control has been created. * * @param configuration */ void initialize(ILaunchConfiguration configuration); /** * Applies values from this section into the given launch configuration. * * @param configuration */ void performApply(ILaunchConfigurationWorkingCopy configuration); /** * Initializes the given launch configuration with default values for this * section. This method is called when a new launch configuration is created * such that the configuration can be initialized with meaningful values. * This method may be called before this sections's control is created. * * @param configuration */ void setDefaults(ILaunchConfigurationWorkingCopy configuration); /** * Returns whether this tab is in a valid state in the context of the * specified launch configuration. This information is typically used by the * launch configuration dialog to decide when it is okay to launch. * * @param configuration * @return status message with validation state information */ StatusMessage isValid(ILaunchConfiguration configuration); }