Java tutorial
/* * Copyright (c) 2015 Marco Maccaferri 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: * Marco Maccaferri - initial API and implementation */ package com.maccasoft.ui.internal.application; import org.eclipse.jface.preference.PreferencePage; import org.eclipse.swt.SWT; import org.eclipse.swt.layout.GridLayout; import org.eclipse.swt.widgets.Composite; import org.eclipse.swt.widgets.Control; import org.eclipse.swt.widgets.Label; import org.eclipse.ui.IWorkbench; import org.eclipse.ui.IWorkbenchPreferencePage; public class WorkbenchPreferencePage extends PreferencePage implements IWorkbenchPreferencePage { public WorkbenchPreferencePage() { } @Override public void init(IWorkbench workbench) { noDefaultAndApplyButton(); } @Override protected Control createContents(Composite parent) { Composite control = new Composite(parent, SWT.NONE); control.setLayout(new GridLayout()); Label label = new Label(control, SWT.NONE); label.setText("Expand the tree to edit preferences for a specific feature."); return control; } }