Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: d2c919228c6209834af533a3c26197893e9c5920 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/*******************************************************************************
 * Copyright (c) 2013 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
 * http://www.eclipse.org/legal/epl-v10.html
 * 
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
package org.eclipse.debug.ui.stringsubstitution;

import org.eclipse.core.variables.IStringVariable;
import org.eclipse.swt.widgets.Shell;


/**
 * A variable presentation extension can contribute an argument selector
 * which is use to configure the argument for a string substitution 
 * variable.
 * 
 * @since 3.9
 */
public interface IArgumentSelector {

	/**
	 * Selects and returns an argument for the given variable, 
	 * or <code>null</code> if none.
	 * 
	 * @param variable the variable an argument is being selected for
	 * @param the shell to create any dialogs on, or <code>null</code> if none
	 * @return argument for the given variable or <code>null</code>
	 *  if none
	 */
	public String selectArgument(IStringVariable variable, Shell shell);
}

Back to the top