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 243244 - Inspect and Transform action is enabled on multiple project selection but Inspect and Transform Panel preselects first project only.
Summary: Inspect and Transform action is enabled on multiple project selection but Ins...
Status: RESOLVED WONTFIX
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 8.0
Hardware: PC All
: P3 normal with 1 vote (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-25 09:16 UTC by nhoffmann
Modified: 2016-07-07 07:19 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Inspect and Transform preview after selection of multiple projects. (23.49 KB, image/png)
2014-03-25 09:16 UTC, nhoffmann
Details

Note You need to log in before you can comment on or make changes to this bug.
Description nhoffmann 2014-03-25 09:16:23 UTC
Created attachment 146293 [details]
Inspect and Transform preview after selection of multiple projects.

The Inspect and Transform action is available on multiple selected projects (in this case Maven projects), but the preview is only shown for the first one in the list of selected projects (see attachment).

This is counter-intuitive and I would expect that either the action is only enabled when a single project is selected, or that the preview would also include the other projects. The second node shows the project's name, so it should be possible to show other projects on the same level as well.

If I invoke the Inspect and Transform action from the Refactoring menu, with scope "Inspect: Open Projects", I see a preview of ALL changes for ALL projects, 
so the view should be able to handle multiple selections correctly. 

If I use a custom scope and select all projects manually, and then go on "Inspect", I receive a "No patterns found" dialog, which seems wrong, since the scope with Open Projects worked correctly. (Maybe the latter point deserves its own, separate bug). 

The related code is probably in this class:

java.hints.ui/src/org/netbeans/modules/java/hints/spiimpl/refactoring/InspectAndRefactorPanel.java
Comment 1 nhoffmann 2014-03-25 09:45:42 UTC
To clarify, it is okay to have the scope selection panel visible on a multiple selection, but it is counterintuitive that the multiple selected projects are not multiply selected, e.g. by preselecting the custom scope, when the dialog opens.
Comment 2 Martin Balin 2016-07-07 07:19:11 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss