| /* |
| * Copyright (c) 2015 Eike Stepper (Berlin, Germany) 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: |
| * Eike Stepper - initial API and implementation |
| */ |
| package org.eclipse.oomph.jreinfo.ui; |
| |
| import org.eclipse.oomph.util.Request; |
| |
| import org.eclipse.jface.preference.PreferencePage; |
| import org.eclipse.swt.SWT; |
| import org.eclipse.swt.widgets.Composite; |
| import org.eclipse.swt.widgets.Control; |
| import org.eclipse.ui.IWorkbench; |
| import org.eclipse.ui.IWorkbenchPreferencePage; |
| |
| /** |
| * @author Eike Stepper |
| */ |
| public class JREPreferencePage extends PreferencePage implements IWorkbenchPreferencePage |
| { |
| public JREPreferencePage() |
| { |
| noDefaultAndApplyButton(); |
| } |
| |
| public void init(IWorkbench workbench) |
| { |
| // Do nothing |
| } |
| |
| @Override |
| protected Control createContents(Composite parent) |
| { |
| return new JREComposite(parent, SWT.NONE, Request.Handler.SYSTEM_BROWSER, null, null); |
| } |
| } |