tmf: Use a symbol provider to locate symbols
[deliverable/tracecompass.git] / tmf / org.eclipse.tracecompass.tmf.ui / src / org / eclipse / tracecompass / tmf / ui / symbols / AbstractSymbolProviderPreferencePage.java
1 /*******************************************************************************
2 * Copyright (c) 2016 Movidius Inc. and others
3 *
4 * All rights reserved. This program and the accompanying materials
5 * are made available under the terms of the Eclipse Public License v1.0
6 * which accompanies this distribution, and is available at
7 * http://www.eclipse.org/legal/epl-v10.html
8 *
9 *******************************************************************************/
10
11 package org.eclipse.tracecompass.tmf.ui.symbols;
12
13 import org.eclipse.jdt.annotation.NonNullByDefault;
14 import org.eclipse.jface.preference.PreferencePage;
15
16 /**
17 * Abstract implementation of the {@link ISymbolProviderPreferencePage}. Instead
18 * of implementing the interface one should extend this class.
19 *
20 * @author Robert Kiss
21 * @since 2.0
22 */
23 @NonNullByDefault
24 public abstract class AbstractSymbolProviderPreferencePage extends PreferencePage implements ISymbolProviderPreferencePage {
25
26 private final ISymbolProvider fProvider;
27
28 /**
29 * Create a new instance that knows how to configure the given provider
30 *
31 * @param provider
32 * the {@link ISymbolProvider} to configure
33 */
34 public AbstractSymbolProviderPreferencePage(ISymbolProvider provider) {
35 fProvider = provider;
36 setTitle(provider.getTrace().getName());
37 noDefaultAndApplyButton();
38 }
39
40 @Override
41 public ISymbolProvider getSymbolProvider() {
42 return fProvider;
43 }
44
45 }
This page took 0.032988 seconds and 5 git commands to generate.