This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 255832

Summary: Move options for 'Fix Uses' into related dialog
Product: php Reporter: SebastianZ
Component: Formatting & IndentationAssignee: Tomas Mysik <tmysik>
Status: RESOLVED WORKSFORME    
Severity: normal    
Priority: P3    
Version: 8.1   
Hardware: All   
OS: All   
See Also: https://netbeans.org/bugzilla/show_bug.cgi?id=216372
Issue Type: DEFECT Exception Reporter:
Bug Depends on: 255833    
Bug Blocks:    

Description SebastianZ 2015-10-09 11:43:00 UTC
Instead of having the options to control the 'Fix Uses' feature within Tools > Options > Editor > Formatting > PHP > Uses, they should be shown within the dialog, which is shown when calling the feature via Source > Fix Uses...

This avoids mixing options for different features into the same UI, it makes clear where those options belong to and it allows the user to see and adjust what actions will be performed by the feature before they are applied.

See also bug 216372 comment 2.

Sebastian
Comment 1 Tomas Mysik 2016-06-03 07:13:19 UTC
Well, this is a bit complicated. If one invokes Fix Uses action, the newly inserted code is _formatted_ in a way how IDE Options are set. So, I do not think that the current state is totally incorrect. Moreover, we are consistent with the Java support - they also have Imports in Formatting options and if one formats a Java file, I do not think that it will change your imported classes (action Fix Imports does) - or am I wrong?

OTOH I agree with issue #216372 that it would be nice if we could change the preview once any options is changed.

Other thing is that I cannot imagine how the options in the Fix Uses dialog look like - where to put them exactly? The dialog can be quite large so it could be complicated...

Thanks for reporting.