Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 367392 - [Generate Getters and Setters] Wizard can proceed and generate a change even if nothing selected
Summary: [Generate Getters and Setters] Wizard can proceed and generate a change even ...
Status: VERIFIED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-refactoring (show other bugs)
Version: 8.0.1   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 8.0.2   Edit
Assignee: Sergey Prigogin CLA
QA Contact: Sergey Prigogin CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-22 03:01 EST by Marc-André Laperle CLA
Modified: 2012-01-21 23:18 EST (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 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.