// Path: src/eclipse/spellchecker/Activator.java
// public class Activator extends AbstractUIPlugin {
// 
// 	public static final String ID_PLUGIN = "eclipse.spellchecker";
// 	private static Activator plugin; // The shared instance.
// 
// 	/**
// 	 * The constructor.
// 	 */
// 	public Activator() {
// 		super();
// 		plugin = this;
// 	}
// 
// 	@Override
// 	public void start(BundleContext context) throws Exception {
// 		super.start(context);
// 	}
// 
// 	/**
// 	 * This is called when the plugin is being stopped.
// 	 *
// 	 * @see org.osgi.framework.BundleActivator#stop(org.osgi.framework.BundleContext)
// 	 */
// 	@Override
// 	public void stop(BundleContext context) throws Exception {
// 		try {
// 			if (fDialogsFormToolkit != null) {
// 				fDialogsFormToolkit.dispose();
// 				fDialogsFormToolkit = null;
// 			}
// 
// 		} finally {
// 			super.stop(context);
// 		}
// 	}
// 
// 	public static Activator getDefault() {
// 		return plugin;
// 	}
// 
// 	public static void logErrorMessage(String message) {
// 		IStatus s = new Status(IStatus.ERROR, ID_PLUGIN, message);
// 		plugin.getLog().log(s);
// 	}
// 
// 	public static IWorkbenchWindow getActiveWorkbenchWindow() {
// 		return getDefault().getWorkbench().getActiveWorkbenchWindow();
// 	}
// 
// 	public static Shell getActiveWorkbenchShell() {
// 		IWorkbenchWindow window = getActiveWorkbenchWindow();
// 		if (window != null) {
// 			return window.getShell();
// 		}
// 		return null;
// 	}
// 
// 	public static void log(Exception ex) {
// 		IStatus s = new Status(IStatus.ERROR, ID_PLUGIN, ex.getMessage(), ex);
// 		plugin.getLog().log(s);
// 	}
// 
// 	public static void log(IStatus status) {
// 		plugin.getLog().log(status);
// 	}
// 
// 	private FormToolkit fDialogsFormToolkit;
// 
// 	public FormToolkit getDialogsFormToolkit() {
// 		if (fDialogsFormToolkit == null) {
// 			FormColors colors = new FormColors(Display.getCurrent());
// 			colors.setBackground(null);
// 			colors.setForeground(null);
// 			fDialogsFormToolkit = new FormToolkit(colors);
// 		}
// 		return fDialogsFormToolkit;
// 	}
// 
// 	public static IWorkspace getWorkspace() {
// 		return ResourcesPlugin.getWorkspace();
// 	}
// 
// }


import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
import org.eclipse.ui.forms.widgets.FormToolkit;
import org.eclipse.ui.forms.widgets.SharedScrolledComposite;
import eclipse.spellchecker.Activator;
/*******************************************************************************
 * Copyright (c) 2000, 2008 IBM Corporation 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:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
package eclipse.spellchecker.preferences;




public class ScrolledPageContent extends SharedScrolledComposite {

	private FormToolkit fToolkit;

	public ScrolledPageContent(Composite parent) {
		this(parent, SWT.V_SCROLL | SWT.H_SCROLL);
	}

	public ScrolledPageContent(Composite parent, int style) {
		super(parent, style);

		setFont(parent.getFont());

// Path: src/eclipse/spellchecker/Activator.java
// public class Activator extends AbstractUIPlugin {
// 
// 	public static final String ID_PLUGIN = "eclipse.spellchecker";
// 	private static Activator plugin; // The shared instance.
// 
// 	/**
// 	 * The constructor.
// 	 */
// 	public Activator() {
// 		super();
// 		plugin = this;
// 	}
// 
// 	@Override
// 	public void start(BundleContext context) throws Exception {
// 		super.start(context);
// 	}
// 
// 	/**
// 	 * This is called when the plugin is being stopped.
// 	 *
// 	 * @see org.osgi.framework.BundleActivator#stop(org.osgi.framework.BundleContext)
// 	 */
// 	@Override
// 	public void stop(BundleContext context) throws Exception {
// 		try {
// 			if (fDialogsFormToolkit != null) {
// 				fDialogsFormToolkit.dispose();
// 				fDialogsFormToolkit = null;
// 			}
// 
// 		} finally {
// 			super.stop(context);
// 		}
// 	}
// 
// 	public static Activator getDefault() {
// 		return plugin;
// 	}
// 
// 	public static void logErrorMessage(String message) {
// 		IStatus s = new Status(IStatus.ERROR, ID_PLUGIN, message);
// 		plugin.getLog().log(s);
// 	}
// 
// 	public static IWorkbenchWindow getActiveWorkbenchWindow() {
// 		return getDefault().getWorkbench().getActiveWorkbenchWindow();
// 	}
// 
// 	public static Shell getActiveWorkbenchShell() {
// 		IWorkbenchWindow window = getActiveWorkbenchWindow();
// 		if (window != null) {
// 			return window.getShell();
// 		}
// 		return null;
// 	}
// 
// 	public static void log(Exception ex) {
// 		IStatus s = new Status(IStatus.ERROR, ID_PLUGIN, ex.getMessage(), ex);
// 		plugin.getLog().log(s);
// 	}
// 
// 	public static void log(IStatus status) {
// 		plugin.getLog().log(status);
// 	}
// 
// 	private FormToolkit fDialogsFormToolkit;
// 
// 	public FormToolkit getDialogsFormToolkit() {
// 		if (fDialogsFormToolkit == null) {
// 			FormColors colors = new FormColors(Display.getCurrent());
// 			colors.setBackground(null);
// 			colors.setForeground(null);
// 			fDialogsFormToolkit = new FormToolkit(colors);
// 		}
// 		return fDialogsFormToolkit;
// 	}
// 
// 	public static IWorkspace getWorkspace() {
// 		return ResourcesPlugin.getWorkspace();
// 	}
// 
// }


// Path: src/eclipse/spellchecker/preferences/ScrolledPageContent.java
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
import org.eclipse.ui.forms.widgets.FormToolkit;
import org.eclipse.ui.forms.widgets.SharedScrolledComposite;
import eclipse.spellchecker.Activator;

/*******************************************************************************
 * Copyright (c) 2000, 2008 IBM Corporation 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:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
package eclipse.spellchecker.preferences;




public class ScrolledPageContent extends SharedScrolledComposite {

	private FormToolkit fToolkit;

	public ScrolledPageContent(Composite parent) {
		this(parent, SWT.V_SCROLL | SWT.H_SCROLL);
	}

	public ScrolledPageContent(Composite parent, int style) {
		super(parent, style);

		setFont(parent.getFont());

		fToolkit= Activator.getDefault().getDialogsFormToolkit();