Bug 78970

Summary: [consistency] deiconifying a Shell does not fire Activate
Product: [Eclipse Project] Platform Reporter: Grant Gayed <grant_gayed>
Component: SWTAssignee: Project Inbox <swt-triaged>
Status: RESOLVED WONTFIX QA Contact: Grant Gayed <grant_gayed>
Severity: normal    
Priority: P3 CC: steve_northover
Version: 3.1Keywords: consistency
Target Milestone: ---   
Hardware: PC   
OS: Linux-Motif   
Whiteboard:

Description Grant Gayed CLA 2004-11-18 11:39:56 EST
- run the snippet below
- minimize the Shell (whether it's currently active or not does not matter)
- restore the shell, and the contained Text is always given focus (this is
fine), but Activate is never received from the Shell, only Deiconify
Comment 1 Steve Northover CLA 2004-11-22 18:32:26 EST
Where is the snippet?
Comment 2 Grant Gayed CLA 2004-11-23 09:22:13 EST
public static void main(String[] args) {
	Display display = new Display ();
	final Shell shell = new Shell(display);
	shell.setBounds(10,10,200,200);
	shell.addShellListener(new ShellListener() {
		public void shellActivated(ShellEvent e) {
			System.out.println("activated");
		}
		public void shellClosed(ShellEvent e) {
			System.out.println("closed");
		}
		public void shellDeactivated(ShellEvent e) {
			System.out.println("deactivated");
		}
		public void shellDeiconified(ShellEvent e) {
			System.out.println("deiconified");
		}
		public void shellIconified(ShellEvent e) {
			System.out.println("iconified");
		}
	});
	Text text = new Text(shell, SWT.SINGLE);
	text.setBounds(10,10,100,30);
	shell.open();
	while (!shell.isDisposed()) {
		if (!display.readAndDispatch()) display.sleep();
	}
	display.dispose();
}
Comment 3 Steve Northover CLA 2005-01-19 19:47:32 EST
GG to prioritize.
Comment 4 Grant Gayed CLA 2012-06-19 14:21:56 EDT
Work is discontinued on SWT's Motif port.
Comment 5 Grant Gayed CLA 2012-06-20 11:41:18 EDT
Closing report, platform is discontinued.