Skip to content

Commit

Permalink
Fix eclipsesource#385 Expose ScrolledComposite in ScrollingComposite
Browse files Browse the repository at this point in the history
Change-Id: I7b3e438c3dcad9c6927ec761e93e292f18252e88
  • Loading branch information
hstaudacher committed Feb 9, 2015
1 parent d848aa7 commit 21df8ba
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -266,4 +266,13 @@ public void testReturnsSettedLayoutData() {

assertSame( gridData, layoutData );
}

@Test
public void testHasScrolledComposite() {
ScrollingComposite composite = new ScrollingComposite( shell, SWT.NONE );

ScrolledComposite scrolledComposite = composite.getScrolledComposite();

assertNotNull( scrolledComposite );
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,17 @@ public void controlResized( ControlEvent event ) {
} );
}

/**
* <p>
* Returns the inner {@link ScrolledComposite}.
* </p>
*
* @since 1.4
*/
public ScrolledComposite getScrolledComposite() {
return scrolledComposite;
}

@Override
public void layout( boolean changed, boolean all ) {
super.layout( changed, all );
Expand Down

0 comments on commit 21df8ba

Please sign in to comment.