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 111111 - There are two menu items with the same actions in popup menu of wsdl and xsd files
Summary: There are two menu items with the same actions in popup menu of wsdl and xsd ...
Status: VERIFIED FIXED
Alias: None
Product: xml
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Sonali Kochar
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-26 14:02 UTC by Vladimir Yaroslavskiy
Modified: 2007-11-02 18:25 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Yaroslavskiy 2007-07-26 14:02:06 UTC
There are two menu items with the same actions in popup menu of wsdl and xsd files:
Rename and Refactor | Rename. These actions do rename refactoring but it is expected
that first one should just rename without any refactoring activities.
Comment 1 Vladimir Yaroslavskiy 2007-07-26 14:05:33 UTC
Rename action should do simple renaming or should be deleted from popup menu,
because the actions can confuse user.

Related issue: http://www.netbeans.org/issues/show_bug.cgi?id=110966
Comment 2 Vladimir Yaroslavskiy 2007-07-26 14:09:09 UTC
The same problem in BPEL project: user doesn't have any chance just to rename
wsdl or xsd file without refactoring.
Comment 3 Sonali Kochar 2007-08-07 23:05:56 UTC
I have removed "Rename" action from the popup menu of wsdl and xsd. I looked at java and saw that java only allows
rename through refactoring. 
You cannot rename xsd, wsdl without refactoring because if the xsd, wsdl files are used in some other files, it will
result in broken references, resulting in more user error/confusion. Since java doesnt allow rename without refactoring,
XML tools will also follow the same protocol.

Checking in wsdlui/src/org/netbeans/modules/xml/wsdl/ui/netbeans/module/resources/layer.xml;
/cvs/xml/wsdlui/src/org/netbeans/modules/xml/wsdl/ui/netbeans/module/resources/layer.xml,v  <--  layer.xml
new revision: 1.22; previous revision: 1.21
done
Checking in schema/src/org/netbeans/modules/xml/schema/resources/mf-layer.xml;
/cvs/xml/schema/src/org/netbeans/modules/xml/schema/resources/mf-layer.xml,v  <--  mf-layer.xml
new revision: 1.19; previous revision: 1.18
done
Comment 4 Jesse Glick 2007-08-08 01:01:07 UTC
This commit seems to be causing commit validation to fail in
ValidateLayerConsistencyTest.testIfOneFileIsDefinedTwiceByDifferentModulesTheyNeedToHaveMutualDependency; please check:

Some modules override their files and do not depend on each other
Loaders/text/x-wsdl+xml/Actions/sep-4.instance is provided by: [org.netbeans.modules.xml.wsdlui,
org.netbeans.modules.websvc.core]
 org.netbeans.modules.xml.wsdlui: different attributes = '{position=1900}
 org.netbeans.modules.websvc.core: different attributes = '{position=1600}
Loaders/text/x-wsdl+xml/Actions/sep-3.instance is provided by: [org.netbeans.modules.xml.wsdlui,
org.netbeans.modules.websvc.core]
 org.netbeans.modules.xml.wsdlui: different attributes = '{position=1600}
 org.netbeans.modules.websvc.core: different attributes = '{position=1400}
Comment 5 Sonali Kochar 2007-08-08 01:16:20 UTC
I have rolled back the changes for the hudson build to proceed. 
Will investigate why these changes caused the failure and then do putback.
Comment 6 Sonali Kochar 2007-08-09 20:44:42 UTC
Fixed
Comment 7 Mikhail Matveev 2007-11-02 18:25:30 UTC
Verified