Community
Participate
Working Groups
if( updateMode ) {
updateMode();
}
packed = false;
clearPacked( oldSize );
notifyMove( oldLocation );
notifyResize( oldSize );
void updateMode() {
// subclasses may override
private void clearPacked( Point oldSize ) {
if( !oldSize.equals( getSize() ) ) {
void notifyResize( final Point oldSize ) {
// Expected Exception
public void testNotClearPackedOnSetLocation() {
shell.pack();
shell.setLocation( 1, 2 );
IControlAdapter controlAdapter = ( IControlAdapter )shell.getAdapter( IControlAdapter.class );
assertTrue( controlAdapter.isPacked() );