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 - Need a way to detect that a refactoring is in progress
Summary: Need a way to detect that a refactoring is in progress
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Jan Pokorsky
URL:
Keywords: API
Depends on:
Blocks: 170659 170663
  Show dependency tree
 
Reported: 2009-08-19 18:13 UTC by _ tboudreau
Modified: 2009-11-10 04:59 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.