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 101846

Summary: "Goto Rails Action/View" always enabled
Product: ruby Reporter: Jesse Glick <jglick>
Component: CodeAssignee: Torbjorn Norbye <tor>
Status: RESOLVED FIXED    
Severity: blocker CC: jrojcek
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description Jesse Glick 2007-04-19 21:50:50 UTC
This menu item should be disabled (or even hidden - use DynamicMenuContent) in
case there is no Rails project open. Which can be expected to be a common case
if people install the Ruby pack, thinking "why not?", but then do not use it.

BTW the label should probably be (note space and ellipsis):

"Go to Rails Action/View..."
Comment 1 Jiri Kovalsky 2007-07-03 14:05:34 UTC
Reassigning this issue to newly created 'ruby' component.
Comment 2 Torbjorn Norbye 2007-07-31 20:56:02 UTC
I've tried modifying the action to implement DynamicMenuContent, but nothing  I do seems to trigger the dynamic menu content methods from getting 
called. The action is showing up in the Navigate menu unconditionally.  I've looked at some other examples (RunLastTargetAction.java, 
InspectProjectAction.java) and can't figure out what's different.
Comment 3 Jesse Glick 2007-07-31 21:07:12 UTC
Don't know, trunk version is not using DynamicMenuContent.
Comment 4 jrojcek 2007-08-06 08:54:57 UTC
I would suggest to disable the action. Don't remove it. We're thinking about getting rid of dynamic behavior of Tools menu. This would go against it.
Comment 5 Torbjorn Norbye 2007-08-07 20:58:41 UTC
Fixed

IDE:-------------------------------------------------
IDE: [8/7/07 12:57 PM] Committing started
Checking in railsprojects/src/org/netbeans/modules/ruby/railsprojects/GotoActionView.java;
/cvs/ruby/railsprojects/src/org/netbeans/modules/ruby/railsprojects/GotoActionView.java,v  <--  GotoActionView.java
new revision: 1.6; previous revision: 1.5
done
Checking in editing/src/org/netbeans/modules/ruby/RubyUtils.java;
/cvs/ruby/editing/src/org/netbeans/modules/ruby/RubyUtils.java,v  <--  RubyUtils.java
new revision: 1.8; previous revision: 1.7
done
IDE: [8/7/07 12:57 PM] Committing finished
Comment 6 Torbjorn Norbye 2007-08-07 20:59:19 UTC
*** Issue 111353 has been marked as a duplicate of this issue. ***
Comment 7 Torbjorn Norbye 2007-08-07 21:05:56 UTC
Regarding "BTW the label should probably be (note space and ellipsis): "Go to Rails Action/View..." - I didn't add an ellipsis since this action does not pop up 
any dialogs (which I thought was what "..." signals).  It's just like "Go To Declaration" or the other navigation actions in that it just warps to another source file.