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 170664

Summary: Need a way to detect that a refactoring is in progress
Product: java Reporter: _ tboudreau <tboudreau>
Component: RefactoringAssignee: Jan Pokorsky <jpokorsky>
Status: RESOLVED FIXED    
Severity: blocker CC: ankinelaturu
Priority: P2 Keywords: API
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:
Bug Depends on:    
Bug Blocks: 170659, 170663    

Description _ tboudreau 2009-08-19 18:13:21 UTC
See issue 170659 and issue 170663 for details.  Summary:  Java Card projects are only allowed to contain a single Java package.  We are requesting API 
support to suppress folder templates and package templates, and the ability to veto new folder creation via Paste or other means.

However, renaming a package involves creating the new package, copying the contents of the old one, and then deleting it.  So to make vetoability of folder 
creation useful, we need to be able to detect when a refactoring that could legally be creating packages is running, and if so, disable vetoing of folder 
creation.
Comment 1 Jan Pokorsky 2009-08-20 12:24:24 UTC
See java.source/src/org/netbeans/modules/java/source/usages/AllRefactoringsPluginFactory.java. It should be what you are
looking for.