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 203017 - problems with "Inspect & Transform", can't delete a custom hint
Summary: problems with "Inspect & Transform", can't delete a custom hint
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 7.1
Hardware: PC Windows XP
: P2 normal (vote)
Assignee: Jan Becicka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-04 04:54 UTC by err
Modified: 2011-10-14 15:14 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description err 2011-10-04 04:54:30 UTC
To reproduce
- Refactor > Inspect & Transform > Manage > New
  This creates Custom > hintsSample
- Select hintsSample
  press Delete on the keyboard
Observe that nothing happens

I can't find any way to delete that newly created entry.

Not sure of expectations in 7.1 beta, here are a few other things I noticed. Let me know if you want a separate bug filed for anything.

- Custom scope button has no label, just "..."
- Two manage buttons bring up an identical dialog. Should be just one button?
- For default configuration, manage, in dialog check unused import
  (added unused import to a file)
  Did preview on default config for a single file, got "No patterns found".
  Also tried single inspection (instead of configuration) still not found
  (I just tried turning on all the import stuff and then something was found
  when I clicked Preview)
- when only some of the items under "Imports" are checked expect the "Imports"
  checkbox background to be gray not white.
- Single Inspection is hard to use, list is way too big
  How about a SingleInspection button that brings up the typical tree,
  but in a "Single Inspection" dialog (has no configuration combo box;
  select the hints you want in the tree,
  then press a "Preview now" or "Refactor now" button,
  guess you'd want the "Inspect Scope" combo in the "Single Inspection dialog"
  Note: to me single inspection means do it once, don't set up a configuration;
  it doesn't mean only do a single hint.
In http://wiki.netbeans.org/NewAndNoteworthyNB71 it shows
  ManageInspections and ManageTransformations (well Refactorings not Trans...)
- There's only a single dialog now. Will there be two?
- In the ManageInspections dialog what's the purpose of the "show as"
- On ManageInspections there's no "Cancel" button; seems inconsistent.
  The escape key forgets the changes, and "close" remembers them)
- Will there be a refactor button (not just preview)

Product Version: NetBeans IDE 7.1 Beta (Build 201109252201)
Java: 1.6.0_23; Java HotSpot(TM) Client VM 19.0-b09
System: Windows XP version 5.1 running on x86; Cp1252; en_US (nb)
User directory: C:\Documents and Settings\erra\.netbeans\7.1beta
Cache directory: C:\Documents and Settings\erra\.netbeans\7.1beta\var\cache
Comment 1 Jan Becicka 2011-10-05 13:43:01 UTC
Thanks for the feedback.

Delete issue fixed:
a1c6fd92f9f5

> Custom scope button has no label, just "..."

* I don't think this is an issue

> For default configuration, manage, in dialog check unused import
  (added unused import to a file)
  Did preview on default config for a single file, got "No patterns found".
  Also tried single inspection (instead of configuration) still not found
  (I just tried turning on all the import stuff and then something was found
  when I clicked Preview)

* It works strange, I filed separate bug 203143 for it.

> when only some of the items under "Imports" are checked expect the "Imports"
  checkbox background to be gray not white.

* Yes. Filed separate issue 203145 for it.

> In the ManageInspections dialog what's the purpose of the "show as"

* fixed as a3400f19ca7d

> In http://wiki.netbeans.org/NewAndNoteworthyNB71 it shows
  ManageInspections and ManageTransformations (well Refactorings not Trans...)
> There's only a single dialog now. Will there be two?

* No. Those screenshots are from dev version. Only single dialog.

> Will there be a refactor button (not just preview)

* There is "Inspect" button in final version.


Next 3 questions are for Jano Rojcek...

- On ManageInspections there's no "Cancel" button; seems inconsistent.
  The escape key forgets the changes, and "close" remembers them)
- Two manage buttons bring up an identical dialog. Should be just one button?
- Single Inspection is hard to use, list is way too big
  How about a SingleInspection button that brings up the typical tree,
  but in a "Single Inspection" dialog (has no configuration combo box;
  select the hints you want in the tree,
  then press a "Preview now" or "Refactor now" button,
  guess you'd want the "Inspect Scope" combo in the "Single Inspection dialog"
  Note: to me single inspection means do it once, don't set up a configuration;
  it doesn't mean only do a single hint.
Comment 2 Quality Engineering 2011-10-06 13:54:39 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/a1c6fd92f9f5
User: Jan Becicka <jbecicka@netbeans.org>
Log: #203017: issue with delete
Comment 3 Quality Engineering 2011-10-07 14:46:00 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/a1c6fd92f9f5
User: Jan Becicka <jbecicka@netbeans.org>
Log: #203017: issue with delete
Comment 4 Jan Becicka 2011-10-13 13:43:39 UTC
Changeset: http://hg.netbeans.org/jet-main/rev/3a5b3236410c
Author:    Jan Becicka <jbecicka@netbeans.org>
Date:      2011-10-13 15:40
Message:   
Issue #203017 - problems with "Inspect & Transform", can't delete a custom hint
Comment 5 Quality Engineering 2011-10-14 15:14:41 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/3a5b3236410c
User: Jan Becicka <jbecicka@netbeans.org>
Log: Issue #203017 - problems with "Inspect & Transform", can't delete a custom hint