Bug 336684 [JFace] NPE in Tray Dialog
bundles/org.eclipse.jface/src/org/eclipse/jface/dialogs/TrayDialog.java
private final GridData data;
		private final Shell shell;
		private final int TRAY_RATIO = 100; 
		private int remainder = 0; 
		private ResizeListener(GridData data, Shell shell) {
			this.data = data;
			this.shell = shell;
		}
		public void controlResized (ControlEvent event) {
				int newWidth = shell.getSize().x;
				if (newWidth != shellWidth) {					
					int shellWidthIncrease = newWidth - shellWidth;
					int trayWidthIncreaseTimes100 = (shellWidthIncrease * TRAY_RATIO) + remainder;
					int trayWidthIncrease = trayWidthIncreaseTimes100/100;
					remainder = trayWidthIncreaseTimes100 - (100 * trayWidthIncrease);
					data.widthHint = data.widthHint + trayWidthIncrease;
					shellWidth = newWidth;
					if (!shell.isDisposed()) {
						shell.layout();
					}
				}
		  }
	}
	private static boolean dialogHelpAvailable;
	/**
	 * The dialog's tray (null if none).
	 */
	private DialogTray tray;
	/**
	 * The tray's control (null if none).