Giter Site home page Giter Site logo

ozpos / glimmer Goto Github PK

View Code? Open in Web Editor NEW

This project forked from andyobtiva/glimmer

0.0 2.0 0.0 9.14 MB

Glimmer is a JRuby DSL that enables easy and efficient authoring of user-interfaces using the robust platform-independent Eclipse SWT library. Glimmer comes with built-in data-binding support to greatly facilitate synchronizing UI with domain models.

Home Page: http://www.eclipse.org/glimmer

License: MIT License

Ruby 100.00%

glimmer's Introduction

Glimmer

Glimmer is a JRuby DSL that enables easy and efficient authoring of desktop application user-interfaces. It relies on the robust platform-independent Eclipse SWT library. Glimmer comes with built-in data-binding support to greatly facilitate synchronizing UI with domain models.

Glimmer

Example

shell {
  text "Example"
  label {
    text "Hello World!"
  }
}.open

Getting Started

  1. Download the "SWT binary and source" archive from the Eclipse site and follow their instructions. http://www.eclipse.org/swt/
  2. Add swt.jar to your environment Java classpath (e.g. export CLASSPATH="/path_to_swt_jar/swt.jar")
  3. Download and setup jRuby 1.5.6 (rvm install jruby -v1.5.6)
  4. Install bundler (gem install bundler)
  5. Install project required gems (bundle install)
  6. Write a program that requires the file "lib/glimmer.rb" (or glimmer gem) and has the UI class (view) include the Glimmer module
  7. Run your program with jruby (pass -J-XstartOnFirstThread option if on the Mac)

Samples

Check the "samples" folder for examples on how to write Glimmer applications.

Mac Support

In order to run Glimmer on the Mac, you need to pass an extra option to JRuby. For example: jruby -J-XstartOnFirstThread samples/hello_world.rb

Background

Ruby is a dynamically-typed object-oriented language, which provides great productivity gains due to its powerful expressive syntax and dynamic nature. While it is proven by the Ruby on Rails framework for web development, it currently lacks a robust platform-independent framework for building desktop applications. Given that Java libraries can now be utilized in Ruby code through JRuby, Eclipse technologies, such as SWT, JFace, and RCP can help fill the gap of desktop application development with Ruby.

Resources

Contributors

  • Annas "Andy" Al Maleh (Founder)
  • Dennis Theisen

License

Copyright (c) 2011 Annas Al Maleh. See LICENSE.txt for further details.

glimmer's People

Contributors

soleone avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.