diff --git a/ui/org.eclipse.pde.ui/META-INF/MANIFEST.MF b/ui/org.eclipse.pde.ui/META-INF/MANIFEST.MF index 5aab28a1b0..1cb90287e4 100644 --- a/ui/org.eclipse.pde.ui/META-INF/MANIFEST.MF +++ b/ui/org.eclipse.pde.ui/META-INF/MANIFEST.MF @@ -81,7 +81,7 @@ Require-Bundle: org.eclipse.ui.views;bundle-version="[3.12.100,4.0.0)", org.eclipse.jface.text;bundle-version="[3.24.200,4.0.0)", org.eclipse.ui.workbench.texteditor;bundle-version="[3.17.200,4.0.0)", - org.eclipse.ui.editors;bundle-version="[3.17.100,4.0.0)", + org.eclipse.ui.editors;bundle-version="[3.19.0,4.0.0)", org.eclipse.debug.ui;bundle-version="[3.18.200,4.0.0)", org.eclipse.jdt.core;bundle-version="[3.36.0,4.0.0)", org.eclipse.jdt.debug.ui;bundle-version="[3.13.200,4.0.0)", diff --git a/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/preferences/EditorPreferencePage.java b/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/preferences/EditorPreferencePage.java index 234d514f9b..b5de364ac9 100644 --- a/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/preferences/EditorPreferencePage.java +++ b/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/preferences/EditorPreferencePage.java @@ -25,6 +25,7 @@ import org.eclipse.pde.internal.ui.editor.text.ColorManager; import org.eclipse.swt.SWT; import org.eclipse.swt.layout.GridData; +import org.eclipse.swt.layout.TabFolderLayout; import org.eclipse.swt.widgets.Button; import org.eclipse.swt.widgets.Composite; import org.eclipse.swt.widgets.Control; diff --git a/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/preferences/TabFolderLayout.java b/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/preferences/TabFolderLayout.java deleted file mode 100644 index a0ea8ea1f6..0000000000 --- a/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/preferences/TabFolderLayout.java +++ /dev/null @@ -1,59 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2005, 2015 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.pde.internal.ui.preferences; - -import org.eclipse.swt.SWT; -import org.eclipse.swt.graphics.Point; -import org.eclipse.swt.graphics.Rectangle; -import org.eclipse.swt.widgets.Composite; -import org.eclipse.swt.widgets.Control; -import org.eclipse.swt.widgets.Layout; - -public class TabFolderLayout extends Layout { - - @Override - protected Point computeSize(Composite composite, int wHint, int hHint, boolean flushCache) { - if (wHint != SWT.DEFAULT && hHint != SWT.DEFAULT) - return new Point(wHint, hHint); - - Control[] children = composite.getChildren(); - int count = children.length; - int maxWidth = 0, maxHeight = 0; - for (int i = 0; i < count; i++) { - Control child = children[i]; - Point pt = child.computeSize(SWT.DEFAULT, SWT.DEFAULT, flushCache); - maxWidth = Math.max(maxWidth, pt.x); - maxHeight = Math.max(maxHeight, pt.y); - } - - if (wHint != SWT.DEFAULT) - maxWidth = wHint; - if (hHint != SWT.DEFAULT) - maxHeight = hHint; - - return new Point(maxWidth, maxHeight); - - } - - @Override - protected void layout(Composite composite, boolean flushCache) { - Rectangle rect = composite.getClientArea(); - - Control[] children = composite.getChildren(); - for (Control child : children) { - child.setBounds(rect); - } - } - -}