public
Fork of kungfoo/java-mateview
Description: A TextMate syntax compatible source editing widget. Current adapters are for SWT.
Homepage: http://redcareditor.com
Clone URL: git://github.com/danlucraft/java-mateview.git
name age message
file .classpath Sat Sep 12 05:18:07 -0700 2009 cleaned up .classpath and re-added resources fo... [Silvio Heuberger]
file .gitignore Sun Oct 25 03:03:00 -0700 2009 merged by hand, hope it works [Silvio Heuberger]
file .project Sat Aug 08 11:31:21 -0700 2009 renamed to what it actually becomes now that i'... [Silvio Heuberger]
directory .settings/ Wed Sep 09 23:54:52 -0700 2009 changed execution environment as per discussion... [kungfoo]
file README Sat Sep 12 03:45:44 -0700 2009 made README reflect the steps needed to get thi... [Silvio Heuberger]
file Rakefile Mon Sep 07 02:29:26 -0700 2009 made jruby spec run osx compatible... [kungfoo]
file Run All Unit Tests Linux (java-mateview).launch Sat Sep 05 11:33:04 -0700 2009 extracted interfaces, made new run config, beca... [Silvio Heuberger]
file Run All Unit Tests OSX (java-mateview).launch Sat Sep 05 11:33:04 -0700 2009 extracted interfaces, made new run config, beca... [Silvio Heuberger]
file Run GrammarBenchmark (java-mateview).launch Tue Aug 11 11:58:09 -0700 2009 added benchmarking classe. will now apply it to... [kungfoo]
directory bench/ Sat Sep 05 09:03:32 -0700 2009 cleared up the way grammars can be created. Now... [Silvio Heuberger]
file build.xml Sun Oct 25 03:13:40 -0700 2009 this fixes the security exception issue, when l... [Silvio Heuberger]
directory input/ Sat Nov 21 01:15:03 -0800 2009 Example app now lets you change theme, for testing [danlucraft]
directory lib/ Wed Nov 25 06:01:27 -0800 2009 Added MateText.Parser.linesParsed counter for t... [danlucraft]
directory resources/ Thu Sep 03 20:11:22 -0700 2009 Set up cached copy of plist DTD to allow for te... [matschaffer]
directory spec/ Thu Dec 03 00:23:35 -0800 2009 Fixed an encoding issue (don't use Java's subst... [danlucraft]
directory src/ Thu Dec 03 00:23:35 -0800 2009 Fixed an encoding issue (don't use Java's subst... [danlucraft]
directory test/ Sat Nov 21 05:09:16 -0800 2009 Fix theme tests [danlucraft]
README
JavaMateView
============

Requirements
------------

* jruby-1.3.1 installed and set up on your path
* rspec gem installed via gem install rspec
* make sure that JAVA_HOME points to a 1.6 type JDK (this is especially true on OSX Leopard)


Running the Ant-based unit-tests
--------------------------------
    ant
or
    rake java:test


Running the RSpec parsing specs
-------------------------------

Compile the java code and run the specs:

    rake jruby:test

If you want to run it manually, without compiling:
On OSX:

    jruby -J-XstartOnFirstThread -S spec spec
    
On Linux:

    jruby -S spec spec/


Contributing
------------

Just so you know: You're free to use whatever IDE or editor to code on java-mateview.
You can use the rake tasks to compile your code and run the tests easily.

If you do however use the Eclipse IDE you also get the Eclipse project settings right away
when checking out the repository.
Alas, there are platform dependent libraries this project relies on, you need to do one little
thing to be on the way to code in eclipse (The rake + ant files do this in their own way).


Eclipse Setup
-------------

* Clone the repository so you have your own version to work with.
* Import the project.
* Set up a variable to point to the lib/{your platform here}/swt.jar
  - Go to: Window -> Preferences -> Java -> Build Path -> Classpath Variables
  - Choose "new" -> File
  - Name the variable SWT_JAR and point it to the lib/{platform}/swt.jar in the java-mateview folder.