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 117735 - All refactor menu items disabled
Summary: All refactor menu items disabled
Status: VERIFIED WONTFIX
Alias: None
Product: xml
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-04 08:56 UTC by Jiri Skrivanek
Modified: 2016-07-07 10:06 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Issue seen in 6.5 dev build (146.75 KB, image/png)
2008-05-27 22:27 UTC, tonybeckham
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Skrivanek 2007-10-04 08:56:56 UTC
All refactor sub menu items are disabled since build #3692. Probably caused by the commit

samaresh:
fix for 116998: Multiple cut/copy/paste doesnt work in schema
1.6	xml/schema/schemaui/src/org/netbeans/modules/xml/schema/ui/basic/SchemaColumn.java

See
http://deadlock.netbeans.org/hudson/job/testsHistory/ws/results/netbeans_6.0_validation/20071004063727/quality_engineering-validation/deadlock/testrun_071004-073449/testbag_3/user/o.n.t.x.s.A/refactorComplexType/screen.png
http://deadlock.netbeans.org/hudson/job/testsHistory/ws/results/netbeans_6.0_validation/matrix-netbeans_trunk-quality_engineering-validation-deadlock.html
Comment 1 Samaresh Panda 2007-10-04 16:22:39 UTC
Let me take a look.
Comment 2 Samaresh Panda 2007-10-04 18:07:10 UTC
Just made a fresh build, I can see that refactor sub menu items are enabled. Tony, Misha can you please verify the same?
Comment 3 tonybeckham 2007-10-04 21:49:46 UTC
All refactor sub menu items are available for me. Build 200710040000 on Mac and Linux.
Comment 4 Samaresh Panda 2007-10-04 22:40:18 UTC
jskrivanek, the changes I made yesterday shouldn't cause this issue. Also we're able to see enabled manu items, not sure
what's causing the tests to fail. Can you try this manually on your system and if it works, check the test code.
Comment 5 Jiri Skrivanek 2007-10-05 07:55:58 UTC
To reproduce:

- create a new java project
- open new file wizard
- choose XML|XML Schema
- finish the wizard
- right-click "http://xml.netbeans.org/" and choose "Add|Complex Type..."
- confirm the Add dialog
- right-click "http://xml.netbeans.org/" and choose "Add|Attribute..."
- confirm the Add dialog
- select "Complex Types"
- right-click "newComplexType" and choose "Add|Attribute Reference..."
- int the dialog select "Attributes|newAttribute"
- click OK
- right-click newComplexType but Refactor sub menu items are disabled

Build 20071005040152, Java: 1.6.0_03-b02, Windows XP.
Comment 6 Mikhail Matveev 2007-10-05 13:18:20 UTC
Reproducible for me. JDK6, WinXP, build 200710050000
Comment 7 tonybeckham 2007-10-05 18:03:41 UTC
I can reproduce following those steps on Linux Build 200710050000.  
I found that it is only reproducible in Columns view and a work around is to click in the second column (the one with
the complex types). 
Comment 8 tonybeckham 2007-10-05 19:20:24 UTC
Since there is a workaround this should be a P2.
Comment 9 Samaresh Panda 2007-10-05 20:06:19 UTC
This is not a regression, just a new issue discovered recently.
Comment 10 Jiri Skrivanek 2007-10-08 09:29:04 UTC
This is a regression because something that worked before build 20071004063727 doesn't work anymore. And according to
http://qa.netbeans.org/bugzilla/bug_priority_guidelines.html I am changing priority to P1. Also, please, take into
accout that this issue breaks the validation suite on deadlock.netbeans.org. It means all NetBeans developers are
affected because NetBeans continuous build is marked as unstable since October 4-th. Thank you in advance for fixing
this issue or reverting offending commit.
Comment 11 tonybeckham 2007-10-08 21:16:02 UTC
Upon further review, the workaround is only good for the steps provided, but the problem goes further but always only in
Column View, I actually think this is P1 and a stopper now.
Comment 12 Samaresh Panda 2007-10-10 03:18:24 UTC
I'm testing this on Beta 1 and found the same issue, so I do not understand the claim that it used to work before 10-04.
In any case, I have a fix that will fix the issue partially, that is, user needs to click and then right-click. This is
applicable to cases when user wants to do things on B but the earlier click was on C in path A->B->C.
/cvs/xml/schema/schemaui/src/org/netbeans/modules/xml/schema/ui/basic/SchemaColumn.java
new revision: 1.7; previous revision: 1.6
/cvs/xml/xamui/src/org/netbeans/modules/xml/xam/ui/column/ColumnListView.java
new revision: 1.5; previous revision: 1.4

I'm marking this as a P3. If the unit tests still do not work, please fix the tests and add a left-click before the
right-click actions.
Comment 13 Jiri Skrivanek 2007-10-10 13:22:27 UTC
The test used to work before 10-04. Anyway thank you for the fix. The test passed in recent builds.
Comment 14 tonybeckham 2007-10-10 22:41:29 UTC
Product Version: NetBens IDE Dev (Build 200710031200)
Java: 1.6.0_03; Java HotSpot(TM) Client VM 1.6.0_03_b05
System: Windows XP version 5.1 running on x86; Cp1252; en_us (nb)

With the stated configuration the problem is still there.  It is strange that tests started to fail because the issue
existed before 10/4 it was just not caught.  I will try to reproduce again w/ Beta1 to see if it has always been a problem.
Comment 15 tonybeckham 2007-10-11 19:49:31 UTC
Reproducible in Beta 1 which was well before 10/4

Product Version: NetBeans IDE 6.0 Beta 1 (Build 200709141330) 
Java: 1.5.0_07; Java HotSpot(TM) Client VM 1.5.0_07-87 
System: Mac OS X version 10.4.10 running on i386; MacRoman; en_US (nb)
Comment 16 Mikhail Matveev 2007-10-18 16:42:56 UTC
Still reproducible in Beta2
Comment 17 Samaresh Panda 2007-10-19 03:28:38 UTC
Of course it is, otherwise I would have marked it as fixed. First left-click and then right-click to have the correct
menu items.
Comment 18 Samaresh Panda 2008-05-27 20:08:24 UTC
Works for me in 6.1 and trunk builds. Please verify.
Comment 19 tonybeckham 2008-05-27 22:26:24 UTC
System:
Product Version: NetBeans IDE Dev (Build 200805271203)
Java: 1.6.0_05; Java HotSpot(TM) 64-Bit Server VM 1.6.0_05-b13-52
System: Mac OS X version 10.5.2 running on x86_64; MacRoman; en_US (nb)

Still reproducible for me. (see screenshot)
Comment 20 tonybeckham 2008-05-27 22:27:17 UTC
Created attachment 62013 [details]
Issue seen in 6.5 dev build
Comment 21 Martin Balin 2016-07-07 09:56:35 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss