/**
* Copyright (c) 2017 committers of YAKINDU 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:
* committers of YAKINDU - initial API and implementation
*
*/
package org.yakindu.sct.ui.preferences;
import org.eclipse.jface.preference.PreferencePage;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
import org.eclipse.ui.IWorkbench;
import org.eclipse.ui.IWorkbenchPreferencePage;
/**
*
* @author andreas muelder - Initial contribution and API
*
*/
public class SctRootPreferencePage extends PreferencePage implements
IWorkbenchPreferencePage {
private SctRootPageContent yakinduRootPageContent;
public SctRootPreferencePage() {
yakinduRootPageContent = new SctRootPageContent();
}
@Override
protected Control createContents(Composite parent) {
yakinduRootPageContent.createContents(parent);
return parent;
}
@Override
public void createControl(Composite parent) {
setControl(yakinduRootPageContent.createControl(parent));
}
public void init(IWorkbench workbench) {
// Nothing to do
}
}