|Re: Setting up project [message #923064 is a reply to message #922840]
||Tue, 25 September 2012 15:16
| Konstantin Komissarchik
Registered: July 2009
There is an intro article, but it does not cover project setup. That is an area where documentation is in need of improvement.
My getting started recommendation is as follows:
1. Install the latest version of Sapphire into your Eclipse. If you manage your dev eclipse separately from your target platform, Sapphire needs to be present in both. If you don't know what that is talking about, don't worry. By default, the Eclipse you are running is your target platform.
2. Import Sapphire samples project into your workspace. You will find a zip of the samples listed next to the framework repository for each release of Sapphire. Verify that the imported samples are building cleanly. This will confirm correctness of step #1.
3. Review the intro article and dive into the samples. A runnable version of the code used in the intro article is one of samples. Start there and branch out to other samples.
4. Practice by making a few changes to the samples. Add a constraint to an existing property. Add a new property to model and UI.
5. Once you feel confident to start your own project, compare the configuration of your project to the sample's project. You will initially need to add dependencies on Sapphire bundles in manifest.mf and enable annotation processing under project properties -> Java Compiler -> Annotation Processing. Once you get close to needing to build your plugin for distribution, you will also need customBuildCallback.xml like the one in the samples project. It is wired in in project's build.properties file.
As you progress, if something is unclear, ask questions on this forum.
Powered by FUDForum
. Page generated in 0.12282 seconds