SAFE X3 Studio: Improving X3 Developer Experience With Eclipse
SAFE X3 Studio: Improving X3 Developer Experience With Eclipse
SAFE X3 Studio: Improving X3 Developer Experience With Eclipse
Improving X3 Developer
Experience with Eclipse
What is Eclipse?
Eclipse is an open source community, whose projects are focused on building an open
development platform comprised of extensible frameworks, tools and runtimes for building,
deploying and managing software across the lifecycle.
Why Eclipse?
More than an IDE
– Commonly used for programming in Java, C/C++, PHP, Javascript, Python,...
– To develop Desktop, Webtop or server applications.
Advantages of the Eclipse Platform
– Plug-ins dynamically loaded when needed
– Integrated updates system
– Customization
– Multi OS (Windows, Linux, Mac, ...)
COPY
Client
(Eclipse)
SAVE
Local X3 Server
Workspace
LOAD
Eclipse
Eclipse IDE for Java Developers http://www.eclipse.org/downloads/
– Indigo SR2 3.7.2 plug-in 1.2.5
– Juno SR1 for plug-in 1.2.6
– Galileo version is no longer supported
Internet Access
From installation environment
Patch level
Latest is recommended, but at least Patch 17 for V6
– Debugging X3 process from Eclipse
V5
– Runtime ≥ 15r.120 Allows editing of process
V6
Latest runtime is recommended, but at least:
– Runtime ≥ 16r.114 Running Eclipse from X3 Client
– Runtime ≥ 16r.115 Running X3 process from Eclipse
– Runtime ≥ 16r.217 Debugging X3 process from Eclipse
Client
CLI.109 or sup. recommended
– Running Eclipse from X3 Client (CLI.104)
– Running X3 process from Eclipse (CLI.105)
– Debugging X3 process from Eclipse (CLI.109)
Checking installation
Run the downloaded installer program and follow the instructions
Start command line and check default version
No Setup
Eclipse does not have an install program.
The download is extracted in an appropriate directory
– e.g. C:\eclipse\, C:\eclipse\3.7\, C:\eclipse\juno\, …
Boot parameters
To select a workspace
– eclipse.exe –data workspace_path
More information
http://help.eclipse.org/help32/index.jsp?topic=/org.eclipse.platform.doc.user/tasks/running
_eclipse.htm
Workspace directory
Start Eclipse
Choose a Workspace directory
– Do not use a sub-directory within the Eclipse install directory, as this could be
overwritten if a new version of Eclipse is installed
Network Connections
Once Eclipse has started we may need to
configure the HTTP access if there is a proxy
server
– Window > Preferences
– General > Network Connections
– Direct = No proxy
– Native = System Settings
– Recommended but does not always work
– Manual = Entered by User
For manual entries, User and Password are shared between Eclipse installations
Window > Preferences > General > Security > Secure Storage
%USERPROFILE%\.eclipse\org.eclipse.equinox.security\secure_storage
Repository
– Help > Install New Software…
– Add Repository
Name: Leave blank. Will be filled with metadata repository
Location: http://pluginx3.sage.fr/safex3/studio/1.2/updates/
Safe X3 Studio
Perspective
The debugger works using the perspective « Debug »
Window > Preferences > Perspective
« Always » or « Prompt »
Server pooling
– Tick the check box to enable running and
Configuration is per folder, thus don't
debugging process from Eclipse forget to edit this parameters for each
one.
It is recommended to use the same
workspace for all folders.
Parameters
AECLIMAC : Defines the machine on which the Eclipse debugger will run
– By default this is the same as the client
AECLIDBG
AECLIMAC
AECLIDBGTR
AECLIPRT
Improving X3 Developer Experience with Eclipse 24
Using SAFE X3 Studio
Editor
Debugger
Perspectives
Define a way of organizing your environment
– SAFE X3 Studio perspective
Views
Windows designed to complete the editor
Different services and information
– Source files explorer
– Outline (synthetic view of the source code)
– List of errors
– List of locked files
– ...
Adding processes
Select your project, then
File > Open SAFE X3 Source file...
Views
Editor 1
Customizable color syntax
– Window > Preferences then SAFE X3 Studio > Editor
Multi-windowing
– Switch to full screen with Ctrl + M
Completion
– Key words, global variables, system variables, templates
– Screens and tables abbreviation defined in the process (Local File, Local Mask)
– Shortcut: Ctrl + space
Customizable Templates
– Window > Preferences then SAFE X3 Studio>Editor > Templates
Editor 2
Editor 3
Limit the line length to 200 characters. Can be set to a value between 20 and 250.
– Customizable via Window > Preferences > SAFE X3 Studio > Formatter
Multi-files navigation history (Alt + left arrow & Alt + right arrow)
Editor 4
Preferences
Window > Preferences > Safe X3 Studio
Connection
– Timeout
– Lock refresh rate - Moved to “Locked File” section in version 1.2.6
Editor > Code Assistance
– Configure the behavior of the completion
Editor > Syntax Coloring
– Comments
– Instructions
– labels
– strings
– subprograms and functions
Preferences
Window > Preferences > Safe X3 Studio
Running a process
Running a standalone process in the context of a X3 Client
Debugging a process
Debugging a standalone process in the context of a X3 Client
Project > Compile and Debug File
Manage Breakpoints
– Add
– Visualize
– Enable / Disable
– Add
– Modify
Local Variables
X3 Variable Classes [ ]
– Visualize
– Memory
– Processes
– Sequential files
– Tables
– Masks
OurSagePlace Blog
https://www.oursageplace.com/web/our-sage-place/safe-x3-studio-for-eclipse