Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Expand the tree structure under the newly created Repository Location to the desired version to work on.
  • Select all the projects
  • Right-click one of the selected projects and select "Check Out" from the context menu

  1. Setup the Target Platform: In order to ..., a Target platform needs to be setup. The checked out projects alrady contain the setup for different platformThe Target Platform setting provides the Eclipse instance with information on the Servoy Developer installation, namely whether it's installed to run on a 32 or 64 bit Java virtual Machine (JVM).
    When the Eclipse instance is running with the same setup as the Servoy Developer instance (both 32 or 64 bit JVM's), then the setup is straight forward. When the Eclipse and Servoy Developer instance run with different setups, it is important to setup the Target Platform correctly.

The checked out projects already contain the target setup files for different platform/JVM combinations:

    1. Mac OSX
    2. Mac OSX 64 bit
    3. Windows 32 bit
    4. Windows 64 bit For the correct functioning if the entire environment, including the debugging facilities, the correct target platform needs to be setup.
    5. Linux.....
  • Switch back to the Java Perspective: Window > Open Perspective > Java
  • Expand to com.servoy.eclipse.core > target in the Package Explorer
  • Open (double-click) the .target file that matches the Servoy Developer environment and click the 'Set as Target Platform'. This will setup the Target Platform correctly, after which projects will be build and should compile without error.
    Tip
    Check the Servoy Developer JVM setup
    Check the Servoy Developer JVM setup

    To check if Servoy Developer runs on a 32 or 64 bit JVM follow the following steps:

    • Open Servoy Developer
    • Go to Help > About Servoy Developer > Installation Details > Configuration tab and look for the text '-arch'.
    • If the text is followed by 'x86', Servoy Developer runs on 32 bit. If it is followed by 'x86_64', Servoy Developer runs on 64 bit

verschillende target files staan voor de verschillende platformen.
Dit is de meest tricky onderdeel, want als jij bv met eclipse gewoon de 32 bits variant heb geinstalleerd
maar servoy zag dat je een 64bits jvm hebt (dat is in mijn geval zo) dan moet je dus hier de juiste target selecteren
Ben er nog niet over uit hoe we dat nu mooi kunnen doen.
Want bv als je mixed moet je ook nog de juiste jvm (32 bit of 64 bit) geconfigureerd hebben (anders kun je niet debuggen)

Maar je moet dus weten welk platform servoy heeft geinstalleerd als dat bij jou win32_64 is moet je die servoy_win32_64.target file openen
Als je de variable servoy_install goed hebt dan zie je als goed is in de eerste tab bij locations 224 plugins (rond dat getal..) available
nu kun je dus rechts boven in op Set as Target Platform link drukken.
Als het goed is compileerd nu alles in 1x.

  • Switch back to the Java Perspective: Window > Open Perspective > Java
  • Expand to com.servoy.eclipse.core > target in the Package Explorer
  • Open (double-click) the .target file that matches the development environment and click the 'Set as Target Platform'. This will setup the Target Platform correctly, after which projects will be build and should compile without error.
Installation & setup
  • Download & install Servoy Developer. 
  • Download & install a version of Eclipse with Eclipse Plugin Development features installed (Eclipse SDK)
  • Start Eclipse SDK and create a new Workspace
  • Install an SVN plugin
  • Checkout the Servoy Codebase from SVN
  • Add a new target platform (Preferences > Plugin Development > Target platform > add).
    • Add a Location under "Locations" of type "directory" and point it to the developer directory of the Servoy Developer installation
  • Create a new Debug Launch configuration (Run > Debug Configurations)
    • Select the "Eclipse Application" node and click the "New launch configuration" button
    • On the "Main" tab:
      • Provide a Name
      • Specify a workspace location under "Workspace Data" by clicking "File System". Select the workspace containing your Servoy solution projects  
      • select 'com.servoy.eclipse.core.ide' under "Main" > "Program to run" > "Run a product"
    • On the "Arguments" tab:
      • Point "Working directory" > "Others:" to the developer directory of the existing Servoy installation, by clicking the "File system" button
    • Apply the changes

*Debugging using Eclipse Plugin Development facilities:*

Plugin/bean development using the Eclipse Plugin Development facilities means that Servoy Developer is started from within a Eclipse instance that has the Eclipse Plugin Development features installed (called "plain" Eclipse from now on). 
The plugin/bean project is located in the "plain" Eclipse instance. When it's time to debug the code, the Servoy Developer Eclipse instance is launched as a debug process from within the "plain" Eclipse instance.
The Servoy Developer Eclipse instance is a full featured Servoy Developerhat can be used to create/alter solutons, start Debug Clients, create and debug JavaScript code etc. If any code is executed that is part of the plugin/bean project in the "plain" Eclipse instance and it contains a breakpoint, the Java debugger in the "plain" Eclipse instance will be activated and thus the plugin/bean code can be debugged.

Debugging

To launch a debug session the first time, it is required to go through the Debug Configuration dialog:
*  Run > Debug Configurations >  select the previously created Debug Configuration and press the "Debug" button
On subsequent launches the Debug Configuration will be accessible through the Debug History (available through Run > Debug History or the debug button on the toolbar)

Tip
titleMemory settings

Memory settings for the debug session can be set on the "Arguments" tab of the Debug Launch Configuration. It is advised to specify here the same memory settings as applied in the servoy.ini file of your Servoy Developer installation (Default: -Xms40m -Xmx256m -XX:MaxPermSize=256m)

Download Servoy
Download Eclipse SDK