aboutsummaryrefslogtreecommitdiffstats
path: root/org.openembedded.bc.ui/src/org/openembedded/bc/ui/wizards/variable/VariableWizard.java
blob: d93a440249c74ef2a6debe21ed95a727634f6257 (plain)
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
37
38
39
40
41
42
43
package org.openembedded.bc.ui.wizards.variable;

import java.util.Hashtable;
import java.util.Map;

import org.eclipse.jface.viewers.IStructuredSelection;
import org.openembedded.bc.ui.wizards.FiniteStateWizard;


/**
 * This wizard is used to view, filter, and search for BitBake variables and variable contents.
 * @author kgilmer
 *
 */
public class VariableWizard extends FiniteStateWizard {

	private Map model;

	public VariableWizard(Map model) {
		this.model = model;
		setWindowTitle("BitBake Commander");
	}

	public VariableWizard(IStructuredSelection selection) {
		model = new Hashtable();
	}
	
	@Override
	public void addPages() {
		addPage(new VariablePage(model));
	}
	
	@Override
	public Map getModel() {
		return model;
	}

	@Override
	public boolean performFinish() {
		return true;
	}

}