Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: e635b6170def4fe8aaa8c6ca8ad29b3b65c786bd (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
37
38
39
40
41
42
43
44
45
46
47
/*******************************************************************************
 * Copyright (c) 2012 Wind River Systems, 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:
 * Wind River Systems - initial API and implementation
 *******************************************************************************/
package org.eclipse.tcf.te.tcf.launch.ui.remote.app.launchcontext;

import org.eclipse.swt.widgets.Composite;
import org.eclipse.tcf.te.launch.ui.tabs.launchcontext.AbstractContextSelectorControl;
import org.eclipse.tcf.te.launch.ui.tabs.launchcontext.AbstractContextSelectorSection;
import org.eclipse.ui.forms.IManagedForm;

/**
 * Locator model context selector section implementation.
 */
public class ContextSelectorSection extends AbstractContextSelectorSection {

	/**
	 * Constructor.
	 * @param form The managed form.
	 * @param parent The parent composite.
	 */
	public ContextSelectorSection(IManagedForm form, Composite parent) {
		super(form, parent);
	}

	/* (non-Javadoc)
	 * @see org.eclipse.tcf.te.launch.ui.tabs.launchcontext.AbstractContextSelectorSection#doCreateContextSelector()
	 */
	@Override
	protected AbstractContextSelectorControl doCreateContextSelector() {
		return new ContextSelectorControl(null) {
			/* (non-Javadoc)
			 * @see org.eclipse.tcf.te.launch.ui.tabs.launchcontext.AbstractContextSelectorControl#onCheckStateChanged(java.lang.Object, boolean)
			 */
			@Override
			protected void onCheckStateChanged(Object element, boolean checked) {
				super.onCheckStateChanged(element, checked);
				getManagedForm().dirtyStateChanged();
			}
		};
	}
}

Back to the top