Skip to content

Commit 9143720

Browse files
committed
Moving TabFolderLayout into SWT. Incorporated review comments.
Fixes #1317
1 parent 9e60276 commit 9143720

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/layout/TabFolderLayout.java

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,15 @@
1919
import org.eclipse.swt.widgets.*;
2020

2121
/**
22-
* This layout controls the position and size
23-
* of the children of a tab folder.
22+
* This layout controls the position and size of the children of a tab folder.
23+
* In addition this layout can be used for any component that wants
24+
* TabFolder-Like behaviour (e.g. only showing all component at the full size
25+
* of the composite stacked onto each other)
2426
*
25-
* @since 3.127
27+
* @since 3.128
2628
*/
2729
class TabFolderLayout extends Layout {
2830

29-
/*
30-
* @see org.eclipse.swt.widgets.Layout#computeSize(org.eclipse.swt.widgets.Composite, int, int, boolean)
31-
*/
3231
@Override
3332
protected Point computeSize (Composite composite, int wHint, int hHint, boolean flushCache) {
3433
if (wHint != SWT.DEFAULT && hHint != SWT.DEFAULT)
@@ -53,9 +52,6 @@ protected Point computeSize (Composite composite, int wHint, int hHint, boolean
5352

5453
}
5554

56-
/*
57-
* @see org.eclipse.swt.widgets.Layout#layout(org.eclipse.swt.widgets.Composite, boolean)
58-
*/
5955
@Override
6056
protected void layout (Composite composite, boolean flushCache) {
6157
Rectangle rect= composite.getClientArea();

0 commit comments

Comments
 (0)