Skip to main content
Jump to: navigation, search

Difference between revisions of "Riena/Getting Started"

m (Running the code samples and example client)
m (Running the code samples and example client)
Line 16: Line 16:
  
  
'''2.''' Download the [http://git.eclipse.org/c/riena/org.eclipse.riena.setup.git/snapshot/RienaSetup_5.0.0.0.zip RienaSetup] project and import it into your workspace.
+
'''2.''' Download the <code>[http://git.eclipse.org/c/riena/org.eclipse.riena.setup.git/snapshot/RienaSetup_5.0.0.0.zip RienaSetup]</code> project and import it into your workspace.
 
[[Image:import_project_RienaSetup.png]]
 
[[Image:import_project_RienaSetup.png]]
  
  
'''3.''' In the imported project, open the file "Riena_on_4x.target" and set the target platform.
+
'''3.''' In the imported project, open the file <code>Riena_on_4x.target</code> and set the target platform.
Note: If you want to use Riena on an Eclipse 3.x or [[RAP]] basis, select the appropriate target platform.
+
Note: If you want to use Riena on an Eclipse 3.x or [[RAP]] basis, select the appropriate target definition.
 
[[Image:target_platform_editor_RienaSetup.png]]
 
[[Image:target_platform_editor_RienaSetup.png]]
  
  
 
'''4.''' Open the "Plug-Ins" view and import as source project:
 
'''4.''' Open the "Plug-Ins" view and import as source project:
* org.eclipse.riena.example.client
+
* <code>org.eclipse.riena.example.client</code>
* org.eclipse.riena.sample.snippets (not relevant for Riena on RAP)
+
* <code>org.eclipse.riena.sample.snippets</code> (not relevant for Riena on RAP)
 
[[Image:import_source_project_RienaSetup.png]]
 
[[Image:import_source_project_RienaSetup.png]]
  
  
'''5.''' In the project "RienaSetup", select the launch configuration "SWT ExampleApplication E4" and add required plug-ins, then Run it. For Riena on Eclipse 3.x or RAP, use the appropriate launch configuration.
+
'''5.''' In the project <code>RienaSetup</code>, select the launch configuration "SWT ExampleApplication E4" and add required plug-ins, then Run it. For Riena on Eclipse 3.x or RAP, use the appropriate launch configuration.
 
* Explore the code and plugin.xml in the example project
 
* Explore the code and plugin.xml in the example project
  
  
'''6.''' Some specific techniques are demonstrated in the snippets project.
+
'''6.''' Some specific techniques are demonstrated in the snippets project, imported in step 4.
  
 
== Manual target platform setup ==  
 
== Manual target platform setup ==  

Revision as of 10:06, 13 June 2013

{{#eclipseproject:rt.riena}}


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 target platform. Follow the steps below to set up the target platform for Riena applications.


Running the code samples and example client

1. Download Eclipse for RCP and RAP Developers and start with a blank workspace.


2. Download the RienaSetup project and import it into your workspace. Import project RienaSetup.png


3. In the imported project, open the file Riena_on_4x.target and set the target platform. Note: If you want to use Riena on an Eclipse 3.x or RAP basis, select the appropriate target definition. Target platform editor RienaSetup.png


4. Open the "Plug-Ins" view and import as source project:

  • org.eclipse.riena.example.client
  • org.eclipse.riena.sample.snippets (not relevant for Riena on RAP)

Import source project RienaSetup.png


5. In the project RienaSetup, select the launch configuration "SWT ExampleApplication E4" and add required plug-ins, then Run it. For Riena on Eclipse 3.x or RAP, use the appropriate launch configuration.

  • Explore the code and plugin.xml in the example project


6. Some specific techniques are demonstrated in the snippets project, imported in step 4.

Manual target platform setup

  • Create a new target platform under Window => Preferences => Target Platform => Add => Nothing: Start with an empty target platform => Next
  • Provide a name like Riena 4.0.0
  • Click Add => Software Site
  • Select the repository: http://download.eclipse.org/eclipse/updates/3.8
  • Uncheck "Group by Category" otherwise you can't see all components.
  • Uncheck "Include required software" and select following components:
    • Eclipse RCP
    • Eclipse RCP Plug-in Developer Resources
    • Eclipse RCP SDK
    • Equinox Target Components

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 Riena Toolbox

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
  • Execute: mvn clean install -P all-modules -Dmaven.test.skip=true

At the moment Tycho can't handle the package import to javax.servlet, so we had to replace this with a dependencie. We accomplished this by patching the MANIFEST.MF from the bundle org.eclipse.communication.core after the checkout. There may be other issues with the result of this build or the buildprocess itself, so be aware that this is not yet production ready.

Back to the top