| /******************************************************************************* |
| * Copyright (c) 2009, 2018 Borland Software Corporation and others. |
| * |
| * All rights reserved. This program and the accompanying materials |
| * are made available under the terms of the Eclipse Public License v2.0 |
| * which accompanies this distribution, and is available at |
| * http://www.eclipse.org/legal/epl-v20.html |
| * |
| * Contributors: |
| * Borland Software Corporation - initial API and implementation |
| *******************************************************************************/ |
| package org.eclipse.m2m.internal.qvt.oml.editor.ui.colorer; |
| |
| import org.eclipse.jface.dialogs.Dialog; |
| import org.eclipse.jface.preference.PreferencePage; |
| import org.eclipse.m2m.internal.qvt.oml.editor.ui.Activator; |
| import org.eclipse.swt.SWT; |
| 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 QVTEditorPreferencePage extends PreferencePage implements IWorkbenchPreferencePage { |
| |
| public QVTEditorPreferencePage() { |
| super(); |
| } |
| |
| protected void setPreferenceStore() { |
| setPreferenceStore(Activator.getDefault().getPreferenceStore()); |
| } |
| |
| public void init(IWorkbench workbench) { |
| // do nothing |
| } |
| |
| @Override |
| protected Control createContents(Composite parent) { |
| Label content = new Label(parent, SWT.NO); |
| Dialog.applyDialogFont(content); |
| return content; |
| } |
| } |