1 ! Copyright (C) 2004, 2010 Slava Pestov.
2 ! See http://factorcode.org/license.txt for BSD license.
3 USING: combinators.short-circuit editors io.pathnames
4 io.standard-paths kernel make math.parser namespaces sequences
10 editor-class [ jedit ] initialize
12 HOOK: find-jedit-path os ( -- path )
14 M: object find-jedit-path f ;
16 M: macosx find-jedit-path
17 "org.gjt.sp.jedit" find-native-bundle [
18 "Contents/MacOS/jedit" append-path
23 M: windows find-jedit-path
24 { "jedit" } "jedit.exe" find-in-applications ;
26 : jedit-path ( -- path )
28 find-jedit-path [ "jedit" ?find-in-path ] unless*
31 M: jedit editor-command
35 [ , ] [ number>string "+line:" prepend , ] bi*