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 143776

Summary: [65cat]Parts of Refactoring menu enabled on Right Clicked on Empty Package Node
Product: java Reporter: rajivderas <rajivderas>
Component: HintsAssignee: Max Sauer <msauer>
Status: RESOLVED FIXED    
Severity: blocker Keywords: SIMPLEFIX
Priority: P3    
Version: 6.x   
Hardware: PC   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:
Attachments: Parts of Refactoring menu enabled on Right Clicked on Empty Package Node

Description rajivderas 2008-08-13 15:18:54 UTC
Steps to reproduce:
1) Create a new EJB Module Project
2) Create a new package in the EJB Module
3) Right Click on the newly created package and select "Refactor" , It will pop-out the sub menu of "Refactor" menu

This sub menu of "Refactor" menu should only enable the "Rename" sub menu since clicked on an empty package but in 
this it has enabled the following  sub menus also:
Introduce Variable
Introduce Constant
Introduce Method
Introduce Field

Env Properties : Dev Build 200808120201
                 JDK 6 Update 10
Comment 1 rajivderas 2008-08-13 15:20:25 UTC
Created attachment 67270 [details]
Parts of Refactoring menu enabled on Right Clicked on Empty Package Node
Comment 2 Jiri Prox 2008-08-13 15:38:57 UTC
The menu items are enabled regardless of what is selected (nodes in explorer of text in editor) -> this should be fixed 
But this is does not classify as P2 IMO.
Comment 3 Max Sauer 2008-09-09 11:09:05 UTC
Fixed. Please verify, thanks.
---
http://hg.netbeans.org/main/rev/93f17e4cc3f8
Comment 4 Quality Engineering 2008-09-09 17:28:02 UTC
Integrated into 'main-golden', will be available in build *200809091401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/93f17e4cc3f8
User: Max Sauer <msauer@netbeans.org>
Log: #143776: [65cat]Parts of Refactoring menu enabled on Right Clicked on Empty Package Node