Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require "outline_view/commands"
- module Redcar
- class OutlineView
- def self.menus
- Menu::Builder.build do
- sub_menu "View" do
- item "Current Document Outline", :command => OutlineView::OpenOutlineViewCommand, :priority => :first
- end
- end
- end
- def self.keymaps
- linwin = Keymap.build("main", [:linux, :windows]) do
- link "Ctrl+I", OutlineView::OpenOutlineViewCommand
- end
- osx = Keymap.build("main", [:osx]) do
- link "Cmd+I", OutlineView::OpenOutlineViewCommand
- end
- [linwin, osx]
- end
- class OutlineViewDialog < MyFilterListDialog
- include Redcar::Model
- include Redcar::Observable
- attr_accessor :document
- def initialize(document)
- self.controller = Redcar::OutlineViewSWT.new(self)
- end
- def update_list(z)
- p "my filter" + z.inspect
- result = {}
- result
- end
- end
- end
- end
Add Comment
Please, Sign In to add comment