Bug 78970 - [consistency] deiconifying a Shell does not fire Activate
Summary: [consistency] deiconifying a Shell does not fire Activate
Status: RESOLVED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.1   Edit
Hardware: PC Linux-Motif
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Grant Gayed CLA
URL:
Whiteboard:
Keywords: consistency
Depends on:
Blocks:
 
Reported: 2004-11-18 11:39 EST by Grant Gayed CLA
Modified: 2012-06-20 11:41 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.