Bug 93176 [JFace] Window.getDefaultOrientation() is marked as experimental
build I20050426 Window.getDefaultOrientation states: * <strong>NOTE</strong> This API is experimental and may * be subject to change during the development cycle for * Eclipse 3.1. Should address for M7.
bundles/org.eclipse.jface/src/org/eclipse/jface/window/Window.java
* <code>createShell</code> when creating this window's shell.
	 * </p>
	 * 
	 * @param newShellStyle
	 *            the new shell style bits
	 */
	protected void setShellStyle(int newShellStyle) {
		shellStyle = newShellStyle;
	}
	/**
	 * Sets the window manager of this window.
	 * <p>
	 * Note that this method is used by <code>WindowManager</code> to maintain
	 * a backpointer. Clients must not call the method directly.
	 * </p>
	 * 
	 * @param manager
	 *            the window manager, or <code>null</code> if none
	 */
	public void setWindowManager(WindowManager manager) {
		windowManager = manager;
		
		if (manager != null) {
			Window[] windows = manager.getWindows();
			for (int i = 0; i < windows.length; i++) {
				if (windows[i] == this)
					return;
			}
			manager.add(this);
		}