Guest User

Untitled

a guest
Jan 24th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. require "outline_view/commands"
  2.  
  3. module Redcar
  4. class OutlineView
  5.  
  6. def self.menus
  7. Menu::Builder.build do
  8. sub_menu "View" do
  9. item "Current Document Outline", :command => OutlineView::OpenOutlineViewCommand, :priority => :first
  10. end
  11. end
  12. end
  13.  
  14. def self.keymaps
  15. linwin = Keymap.build("main", [:linux, :windows]) do
  16. link "Ctrl+I", OutlineView::OpenOutlineViewCommand
  17. end
  18. osx = Keymap.build("main", [:osx]) do
  19. link "Cmd+I", OutlineView::OpenOutlineViewCommand
  20. end
  21. [linwin, osx]
  22. end
  23.  
  24.  
  25. class OutlineViewDialog < MyFilterListDialog
  26. include Redcar::Model
  27. include Redcar::Observable
  28.  
  29. attr_accessor :document
  30.  
  31.  
  32. def initialize(document)
  33. self.controller = Redcar::OutlineViewSWT.new(self)
  34. end
  35.  
  36.  
  37.  
  38. def update_list(z)
  39. p "my filter" + z.inspect
  40. result = {}
  41. result
  42. end
  43.  
  44.  
  45. end
  46. end
  47. end
Add Comment
Please, Sign In to add comment