Bug 3323

Summary: OpenOnSelection - no selection inside CodeFormatterPreferencePage.fTextListener initializer (1GGND3S)
Product: [Eclipse Project] JDT Reporter: Philipe Mulet <philippe_mulet>
Component: CoreAssignee: David Audel <david_audel>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 2.0   
Target Milestone: 2.0 M4   
Hardware: All   
OS: Windows NT   
Whiteboard:

Description Philipe Mulet CLA 2001-10-10 22:53:13 EDT
No selection is available inside the method body of <modifyText> in the field initializer for CodeFormatterPreferencePage.fTextListener:

	private ModifyListener fTextListener= new ModifyListener() {
		public void modifyText(ModifyEvent e) {
			if (fTextOptions == null)																		<--- NO SELECTION FROM HERE
				return;
			Text source= (Text) e.widget;
			if (checkAllTextInputs(source)) {
				ConfigurableOption option= retrieveOption(source);
				option.setValueIndex(parseTextInput(source.getText()));
				updatePreview(fNewOptions);															<- TO HERE
			}
		}
	};
NOTES:
Comment 1 DJ Houghton CLA 2001-10-29 17:09:29 EST
PRODUCT VERSION:
SDK 125

Comment 2 David Audel CLA 2002-02-28 10:46:18 EST
Fixed