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 212012

Summary: transform action doesn't apply to package but opened file only
Product: java Reporter: Milos Kleint <mkleint>
Component: RefactoringAssignee: Jan Becicka <jbecicka>
Status: RESOLVED FIXED    
Severity: normal CC: mmirilovic
Priority: P2 Keywords: REGRESSION
Version: 7.2   
Hardware: PC   
OS: Windows 7   
Issue Type: DEFECT Exception Reporter:
Attachments: screenshot

Description Milos Kleint 2012-05-03 12:12:14 UTC
Created attachment 119025 [details]
screenshot

see screenshot.

invoking Transform action on the package in projects view, the dialog shown has package as combobox value, however when previewed, I only get results from the currently shown file in editor. If there is no file opened, I get just a messsage that no patterns were found.





Product Version         = NetBeans IDE Dev (Build 201204250400) (#a167d4573612)
  Operating System        = Windows 7 version 6.1 running on amd64
  Java; VM; Vendor        = 1.6.0_30; Java HotSpot(TM) 64-Bit Server VM 20.5-b03; Sun Microsystems Inc.
  Runtime                 = Java(TM) SE Runtime Environment 1.6.0_30-b12
Comment 1 Jan Lahoda 2012-05-04 10:37:46 UTC
Turns out that this is a bug in the legacy hints->new hints bridge, fixed by:
http://hg.netbeans.org/jet-main/rev/2a50fceb8abc

Sorry for trouble.
Comment 2 Quality Engineering 2012-05-05 10:22:17 UTC
Integrated into 'main-golden', will be available in build *201205050400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/2a50fceb8abc
User: Jan Lahoda <jlahoda@netbeans.org>
Log: #212012: the legacy hint->new hint bridge needs to convert the ErrorDescription even in case the document was not opened, so that the legacy hints can be run in I&T (with their other restrictions anyway).