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 144249 - [65cat] Refactor menu on jsp node has enabled unwanted actions
Summary: [65cat] Refactor menu on jsp node has enabled unwanted actions
Status: NEW
Alias: None
Product: obsolete
Classification: Unclassified
Component: visualweb (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Quy Nguyen
Depends on:
Reported: 2008-08-18 12:30 UTC by rajivderas
Modified: 2009-05-25 21:07 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:

144249 Screen Shot (147.61 KB, image/png)
2008-08-18 12:31 UTC, rajivderas

Note You need to log in before you can comment on or make changes to this bug.
Description rajivderas 2008-08-18 12:30:24 UTC
Steps to reproduce: 
1) Create a Visual Web Project
2) Then create a new Visual Web JSF page on the Web Pages folder
3) Right click the newly created Visual Web JSF page node from the project explorer and select Refactor from the menu
and it will display the  Refactor options available to the selected node in a sub menu

The sub menus should only enable "Rename..." and "Move..." action for the jsp node selected in the project explorer but
here it has also enabled the following sub menus which are irrelevant -
Introduce Variable
Introduce Constant
Introduce Method
Introduce Field

How can we Introduce Method to a jsp file ? These submenu actions should be disabled.

Dev Build 200808170243
JDK 6 Update 10
Glassfish V2 Server
Comment 1 rajivderas 2008-08-18 12:31:43 UTC
Created attachment 67691 [details]
144249 Screen Shot
Comment 2 _ potingwu 2008-08-18 17:13:43 UTC
Visual web refactoring is handled by insync.
Comment 3 Peter Zavadsky 2008-09-25 01:04:12 UTC
The refactoring actions for the jsf jsp dataobject are declared in visualweb.jsf.project module. Instead of that action
(all for java), there probably should be only refactoring rename and refactoring move action. Passing to the owner.
Comment 4 _ potingwu 2008-09-25 17:51:13 UTC
As I described before, this is handled by insync!

The jsfloader module only decides which 'main menu items' to display; i.e., 'Set As Start Page', 'Open', 'Refactor', ...
and then the refactoring implementation (i.e., insync) handles the behaviors of the 'sub menu items' under the 'Refactor'.
Comment 5 Peter Zavadsky 2008-09-25 18:06:52 UTC
The refactoring API offers to use either Refactoring all action... or explicitelly Refactoring rename or Refactoring
move actions, those can be specified via layers only. Insync can't infuence the content of refactoring all action.
Comment 6 _ potingwu 2008-09-25 18:17:21 UTC
It's from jsfloader.
Comment 7 _ potingwu 2008-09-25 18:51:09 UTC
Minor issue that we will handle post 6.5.