Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 367392

Summary: [Generate Getters and Setters] Wizard can proceed and generate a change even if nothing selected
Product: [Tools] CDT Reporter: Marc-André Laperle <malaperle>
Component: cdt-refactoringAssignee: Sergey Prigogin <eclipse.sprigogin>
Status: VERIFIED FIXED QA Contact: Sergey Prigogin <eclipse.sprigogin>
Severity: normal    
Priority: P3 CC: cdtdoug
Version: 8.0.1   
Target Milestone: 8.0.2   
Hardware: All   
OS: All   
Whiteboard:

Description Marc-André Laperle CLA 2011-12-22 03:01:10 EST
Tested with 8.0.1 and master (2011-12-21)

class TestClass
{
    int foo;
};

1. Invoke Generate Getters and Setters but make sure 'foo' is not in the text selection
2. When the wizard opens, nothing should be selected. The Next and Finish buttons are enabled but they should be disabled since there is nothing to generate. Click Next anyway.
3. Some code gets generated: the line "public:" is inserted.
Comment 1 Sergey Prigogin CLA 2011-12-27 17:49:14 EST
Fixed together with bug 367391.
Comment 2 Marc-André Laperle CLA 2012-01-21 23:18:48 EST
Verified in 8.0.2 RC1.