UniMod-1.3-SourceCode

From UniMod Wiki

Contents

Repository Location

Source code for UniMod 1.3 version is located at sourceforge SVN repository: https://unimod.svn.sourceforge.net/svnroot/unimod/unimod-1.3/
You may browse code on-line using url http://unimod.svn.sourceforge.net/viewcvs.cgi/unimod/unimod-1.3/

How to Checkout

SVN Repository Structure

FolderDescription
com.evelopers.unimod.relengbuilding scripts
com.evelopers.unimod.updatesiteupdate site
features/com.evelopers.unimodUniMod feature
features/com.evelopers.unimod.samplesUniMod Samples Feature
plugins/com.evelopers.unimodplugin with all UI-related code
plugins/com.evelopers.unimod.codeplugin with meta-model, validation algorithms, debugger, model runtime engine
plugins/com.evelopers.unimod.adapter.standaloneplugin to execute UniMod model as standalone Java application
plugins/com.evelopers.unimod.core.testplugin with test cases
plugins/com.evelopers.unimod.docsplugin with documentation
plugins/com.evelopers.unimod.generator.javaModel to Java source generator
plugins/com.evelopers.unimod.generator.xmlModel to runtime XML-description generator (actually UniMod model is being stored in XML - *.unimod file, but this file contains also a lot of graphical information such as node positions, so we need generator to create XML file without graphical information)
plugins/com.evelopers.unimod.glayoutStatechart layout algorythms (on-hold currently)
plugins/com.evelopers.unimod.sample.atmATM sample
plugins/com.evelopers.unimod.sample.messengersaICQ-like messenger sample
plugins/com.evelopers.unimod.sample.persistenceHow to permanently save active state sample (in file or database)
plugins/com.evelopers.unimod.sample.prisonersPrisoners problem sample

How to Execute (for developers only)

After checkout you should see screen like this:

Image:eclipse-folders.png

Go to Run->Run... menu and create new Eclipse Application launch configuration:

Image:unimod-launch.png

Press Run, new Eclipse instance with intergrated UniMod features will start.

How to Build Update Site

For Windows from command line:

  • Install JDK 1.5, Eclipse 3.x, GEF 3.x, Apache Forrest 0.7.x
  • Set env variables ECLIPSE_HOME, FORREST_HOME and artifactsDir (optional)
  • Turn the following parameters in file com.evelopers.unimod.releng\build.properties
# publish update site or not
publishUpdateSite=true
# destination folder of update site
updateSiteDir=D:/Java/jboss-4.0.3/server/default/deploy/unimod.war/update


  • Execute command
com.evelopers.unimod.releng\run.bat XX.XX.XX

where XX.XX.XX is build number

How to Add Plugin into UniMod Feature

See Add Plugin

How to Contribute