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 101385 - Sort by source doesn't work in navigator
Summary: Sort by source doesn't work in navigator
Status: VERIFIED FIXED
Alias: None
Product: ruby
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Torbjorn Norbye
URL:
Keywords:
: 109081 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-04-17 15:20 UTC by Jiri Skrivanek
Modified: 2007-08-07 13:12 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 Jiri Skrivanek 2007-04-17 15:20:10 UTC
If you try to sort methods by order in source file, it doesn't work. To reproduce:

- create a Ruby Application project
- create a new Ruby Class from template
- add two methods to the class:
  def b
  end
  def a
  end
- open Navigator (Window|Navigator)
- method a should be first, method b second
- right click in Navigator and choose 'Sort by Source'
- now order should be reversed according to apperance of method definition in
source file but it isn't.

Ruby 0.78.0, NB 20070417, JDK1.5.0_11, WindowsXP.
Comment 1 Jiri Kovalsky 2007-07-03 13:56:33 UTC
Reassigning this issue to newly created 'ruby' component.
Comment 2 Jiri Skrivanek 2007-07-09 13:37:48 UTC
*** Issue 109081 has been marked as a duplicate of this issue. ***
Comment 3 Torbjorn Norbye 2007-07-17 21:00:10 UTC
Fixed

IDE:-------------------------------------------------
IDE: [7/17/07 12:58 PM] Committing started
Checking in StructureAnalyzer.java;
/cvs/ruby/editing/src/org/netbeans/modules/ruby/StructureAnalyzer.java,v  <--  StructureAnalyzer.java
new revision: 1.2; previous revision: 1.1
done
Checking in ElementNode.java;
/cvs/ruby/gsf/src/org/netbeans/modules/retouche/navigation/ElementNode.java,v  <--  ElementNode.java
new revision: 1.2; previous revision: 1.1
done
IDE: [7/17/07 12:59 PM] Committing finished
Comment 4 Jiri Skrivanek 2007-08-07 13:12:04 UTC
Verified.