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 254635 - Original context is not available when re-runing the Inspector
Summary: Original context is not available when re-runing the Inspector
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 8.1
Hardware: PC Windows 7 x64
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-24 07:08 UTC by stwr
Modified: 2015-09-10 01:29 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
The list of available scopes when running the inspector from the hint (33.76 KB, image/png)
2015-08-24 07:09 UTC, stwr
Details
The list of available scopes when going to re-run the inspector (36.78 KB, image/png)
2015-08-24 07:09 UTC, stwr
Details

Note You need to log in before you can comment on or make changes to this bug.
Description stwr 2015-08-24 07:08:42 UTC
Hello,

I realized annoying behavior during my daily work.

--Use Case--

1. Start the IDE with clear user dir
2. Create a Java class and invent some static final constant with a name that does not fit to the default pattern defined for constant naming convention, e.g. private static final String constant = "value";
3. Perform 'Run Inspect on...' USING THE HINT
4. Once inspection is finished hit 'Refresh' from the Inspector view

--Actual Result--

The list of scopes contains only one entry - 'Open Projects'. There is no way to re-run the inspector with the same rules for the same file.

--Expected Result--

The list of scopes contains all entries, the same which are available in the dialog displayed in the 3rd step - 'Open Projects', 'Open Project (XYZ)', 'Current Package (XYZ)' and 'Current File (XYZ)'.

What is more and also important - when the Inspect is executed from menu for the first time (so not from the hint) the list of scopes is full when refreshing.

Product Version: NetBeans IDE Dev (Build 201508230002)
Java: 1.8.0_60-ea; Java HotSpot(TM) 64-Bit Server VM 25.60-b23
Runtime: Java(TM) SE Runtime Environment 1.8.0_60-ea-b25
System: Windows 7 version 6.1 running on amd64; Cp1250; en_US (nb)
Comment 1 stwr 2015-08-24 07:09:20 UTC
Created attachment 155566 [details]
The list of available scopes when running the inspector from the hint
Comment 2 stwr 2015-08-24 07:09:48 UTC
Created attachment 155567 [details]
The list of available scopes when going to re-run the inspector
Comment 3 Jiri Prox 2015-08-24 14:41:30 UTC
reproducible
Comment 4 Svata Dedic 2015-09-09 13:26:02 UTC
Fixed in jet-main#c35ba7ffb605
Comment 5 Quality Engineering 2015-09-10 01:29:13 UTC
Integrated into 'main-silver', will be available in build *201509100002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/c35ba7ffb605
User: Svata Dedic <sdedic@netbeans.org>
Log: #254635: node context saved for possible refresh operation