| /******************************************************************************* |
| * Copyright (c) 2008, 2018 IBM Corporation and others. |
| * This program and the accompanying materials |
| * are made available under the terms of the Eclipse Public License 2.0 |
| * which accompanies this distribution, and is available at |
| * https://www.eclipse.org/legal/epl-2.0/ |
| * |
| * SPDX-License-Identifier: EPL-2.0 |
| * |
| * Contributors: |
| * IBM Corporation - initial API and implementation |
| *******************************************************************************/ |
| package org.eclipse.wst.xml.xpath.ui.internal.preferences; |
| |
| import org.eclipse.swt.SWT; |
| import org.eclipse.swt.widgets.Composite; |
| import org.eclipse.swt.widgets.Control; |
| import org.eclipse.swt.widgets.Text; |
| import org.eclipse.wst.sse.ui.internal.preferences.ui.AbstractPreferencePage; |
| import org.eclipse.wst.xml.xpath.ui.internal.Messages; |
| |
| @SuppressWarnings("restriction") |
| public class XPathPrefencePage extends AbstractPreferencePage { |
| |
| /** |
| * (non-Javadoc) |
| * |
| * @see org.eclipse.wst.sse.ui.internal.preferences.ui.AbstractPreferencePage#createContents(org.eclipse.swt.widgets.Composite) |
| * @deprecated |
| */ |
| protected Control createContents(Composite parent) { |
| Composite composite = createScrolledComposite(parent); |
| |
| String description = Messages.XPathPrefencePage_0; |
| Text text = new Text(composite, SWT.READ_ONLY); |
| // some themes on GTK have different background colors for Text and |
| // Labels |
| text.setBackground(composite.getBackground()); |
| text.setText(description); |
| |
| setSize(composite); |
| return composite; |
| } |
| |
| } |