blob: 6a4d4837cc555a3867e9ba4f2890385b7d85343b [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2016 Movidius Inc. and others
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* Robert Kiss - Initial API and implementation
* Mikael Ferland - Adjust title of preference pages for multiple symbol providers
*
*******************************************************************************/
package org.eclipse.tracecompass.tmf.ui.symbols;
import org.eclipse.jdt.annotation.NonNullByDefault;
import org.eclipse.jface.preference.PreferencePage;
/**
* Abstract implementation of the {@link ISymbolProviderPreferencePage}. Instead
* of implementing the interface one should extend this class.
*
* @author Robert Kiss
* @since 2.0
*/
@NonNullByDefault
public abstract class AbstractSymbolProviderPreferencePage extends PreferencePage implements ISymbolProviderPreferencePage {
private final ISymbolProvider fProvider;
/**
* Create a new instance that knows how to configure the given provider
*
* @param provider
* the {@link ISymbolProvider} to configure
*/
public AbstractSymbolProviderPreferencePage(ISymbolProvider provider) {
fProvider = provider;
noDefaultAndApplyButton();
}
@Override
public ISymbolProvider getSymbolProvider() {
return fProvider;
}
}