public ShellMinimumSizeEnforcer(final Shell shell,final int minimumWidth,final int minimumHeight){
  this.shell=shell;
  this.minimumWidth=minimumWidth;
  this.minimumHeight=minimumHeight;
  currentLocation=shell.getLocation();
  if ((FORCE_LEGACY_BEHAVIOR || !attemptSetMinimumSize()) && !WindowSystem.isCurrentWindowSystem(WindowSystem.X_WINDOW_SYSTEM)) {
    final MinSizeListener listener=new MinSizeListener();
    shell.addControlListener(listener);
  }
}

public ShellMinimumSizeEnforcer ( final Shell shell , final int minimumWidth , final int minimumHeight ) { this . shell = shell ; this . minimumWidth = minimumWidth ; this . minimumHeight = minimumHeight ; currentLocation = shell . getLocation ( ) ; if ( ( FORCE_LEGACY_BEHAVIOR || ! attemptSetMinimumSize ( ) ) && ! WindowSystem . isCurrentWindowSystem ( WindowSystem . X_WINDOW_SYSTEM ) ) { final MinSizeListener listener = new MinSizeListener ( ) ; shell . addControlListener ( listener ) ; } }
create a new minimumsizeenforcer for the given shell .
