Skip to main content
Jump to: navigation, search

Difference between revisions of "Riena/Getting Started"

(Build your own Riena-Targetplatform)
(Build your own Riena-Targetplatform)
Line 85: Line 85:
 
Riena provides a tycho-build to build a targetplatform from cvs head. Follows these steps:
 
Riena provides a tycho-build to build a targetplatform from cvs head. Follows these steps:
  
Prerequisites:
+
'''Prerequisites:'''
 
* install  ant
 
* install  ant
 
* install  [http://maven.apache.org/maven maven 3]  
 
* install  [http://maven.apache.org/maven maven 3]  
 
   
 
   
Start the build:
+
'''Start the build:'''
 
* checkout the bundle org.eclipse.riena.build.tycho from cvs (:pserver:anonymous@dev.eclipse.org:/cvsroot/rt)  
 
* checkout the bundle org.eclipse.riena.build.tycho from cvs (:pserver:anonymous@dev.eclipse.org:/cvsroot/rt)  
 
* open a shell and go to the directory org.eclipse.riena.build.tycho
 
* open a shell and go to the directory org.eclipse.riena.build.tycho

Revision as of 09:37, 30 June 2011

{{#eclipseproject:rt.riena}}


Set up target platform for Riena apps

For a Riena-based application to compile, a certain set of bundles (plug-ins) must be available at compile time. This set of bundles is known as a target platform. Follow the steps outlined in either of the following two sections to set up the target platform for Riena applications (based on Riena 3.0.0). Windows users can just download the complete targetplatform, unzip it and activate it under Window => Preferences => Plugin Development => Target Platform.

Setup

  • Download Eclipse IDE 3.7.x for your platform and start with a blank workspace.
  • Create a new target platform under Window => Preferences => Target Platform => Add => Nothing: Start with an empty target platform => Next
  • Provide a name like Riena 3.0.0
  • Click Add => Software Site
  • Select the Indigo Repository: http://download.eclipse.org/releases/indigo/
  • Uncheck "Group by Category" otherwise you can't see all 3 RCP Target Components.
  • Uncheck "Include required software".
  • Select "Equinox Target Components", "Eclipse RCP", "Eclipse RCP SDK" and "Eclipse RCP Plug-in Developer Resources"
  • Go back to "Add => Software Site
  • Select http://download.eclipse.org/rt/riena/3.0.0.0/rcp/
  • Select "Riena Target Components" from here: . The result should look like this:

Riena Targetplatform RCP.png

  • Activate the platform.
  • Done.

Next Step

Now you are ready to start writing Riena applications. To get a feeling of the Riena framework, take a look at Riena's Example Applications and Code Templates.

Set up target platform for Riena on RAP apps

For a Riena on RAP-based application to compile, a certain set of bundles (plug-ins) must be available at compile time. This set of bundles is known as a target platform. Follow the steps outlined in either of the following two sections to set up the target platform for Riena on RAP applications (based on Riena 3.0.0).

Setup

  • Download Eclipse IDE 3.7.x for your platform and start with a blank workspace.
  • Create a new target platform under Window => Preferences => Target Platform => Add => Nothing: Start with an empty target platform => Next
  • Provide a name like Riena 3.0.0
  • Click Add => Software Site
  • Select the Indigo Repository: http://download.eclipse.org/releases/indigo/
  • Uncheck "Group by Category" otherwise you can't see all 3 RCP Target Components.
  • Uncheck "Include required software".
  • Select "Equinox Target Components", "Rich Ajax Platform (RAP) Target Components"
  • Go back to "Add => Software Site
  • Select http://download.eclipse.org/rt/riena/3.0.0.0/rap/
  • Select "Riena Target Components" from here: . The result should look like this:

Riena RAP Targetplatform Screenshot.png

  • Activate the platform.
  • Done.


Next Step

Now you are ready to start writing Riena applications (ensure that in such a launch configuration the bundle org.eclipse.riena.ui.swt.rap is selected as required bundle). To get a feeling of the Riena framework, take a look at Riena's Example Applications and Code Templates. Make sure that you click on "Add Required bundles" before you start any of the examples that come with Riena.

Set up Riena Toolbox

There is a IDE Support for Riena for Eclipse 3.6. It consists of Wizards for generating some simple Riena Apps, a treebased Editor for the Assembly-Extensionpoints and an Previewer for RCP-Views and SWT-Composites.

Note: Make sure that you use the same Java-version to start your Eclipse-IDE and for compiling your worspace, because the Riena Toolbox uses classloaders to dynamically load and instantiate classes. That doesn't work if you run the Eclipse IDE with Java 1.5 and in your workspace have classes that were compiled with Java 1.6.

Setup

  1. install and run Eclipse >= 3.6
  2. install new software from http://download.eclipse.org/rt/riena/3.0.0.0/toolbox (make sure that you DISABLE the checkbox "Contact all update sites during install to find required software". That is currently important because of bug 306279 (https://bugs.eclipse.org/bugs/show_bug.cgi?id=306279).

So now you are all setup. To see it running:

  1. Create a new Plug-in Project (Would you like to create a rich client application = yes) 
  2. Select "Riena Hello World" or "Riena Mail Template" frmo the list of templates and finish creating the new template
  3. Show View -> Other -> Riena Toolbox -> AssemblyEditor
  4. The Assembly Editor now shows the assemblies from all projects in the workspace.


For more details about the Riena Toolbox, look here http://wiki.eclipse.org/Riena/Toolbox.

Build your own Riena-Targetplatform

Riena provides a tycho-build to build a targetplatform from cvs head. Follows these steps:

Prerequisites:

Start the build:

  • checkout the bundle org.eclipse.riena.build.tycho from cvs (:pserver:anonymous@dev.eclipse.org:/cvsroot/rt)
  • open a shell and go to the directory org.eclipse.riena.build.tycho
  • checkout the sources by executing: ant -f checkout.xml -DCHECKOUT_DIR=checkout -DTARGET_DIR=target
  • go to target/org.eclipse.riena.build.tycho
  • mvn clean install -P all-modules -Dmaven.test.skip=true

Back to the top