connectivity/com.nokia.carbide.remoteConnections/src/com/nokia/carbide/remoteconnections/internal/ui/StatusDisplay.java
branchRCL_2_4
changeset 1049 b4ccdbf9778e
parent 1047 cc3916f16460
child 1104 e84724c7f393
equal deleted inserted replaced
1047:cc3916f16460 1049:b4ccdbf9778e
   132 	private Shell getModalShell(Display display) {
   132 	private Shell getModalShell(Display display) {
   133 		Shell[] shells = display.getShells();
   133 		Shell[] shells = display.getShells();
   134 		for (int i = shells.length - 1; i >= 0; i--) {
   134 		for (int i = shells.length - 1; i >= 0; i--) {
   135 			Shell shell = shells[i];
   135 			Shell shell = shells[i];
   136 			if ((shell.getStyle() & MODAL_MASK) != 0) {
   136 			if ((shell.getStyle() & MODAL_MASK) != 0) {
   137 				System.out.println(shell.getText() + ":" + shell.getBounds());
       
   138 				return shell;
   137 				return shell;
   139 			}
   138 			}
   140 		}
   139 		}
   141 		return null;
   140 		return null;
   142 	}
   141 	}