Eclipse - application class editing

A condition to edit the application classes is:

A structure of the created project consists of user-editable and automatically generated parts and source code. The application classes of events/pictures (hereafter scripts) are stored in the source "appsrc".

Source directory

The scripts can be edited only after the object has been opened to edit, i.e. events opened in D2000 CNF and pictures opened in D2000 GrEditor. After opening the object in D2000 CNF / D2000 GR both the user and generated parts of script will be copied on disc. The source "appsrc" needs to be refreshed (F5) in Eclipse, it means the environment restores the script. The script will display in tree structure "appsrc" in library (package) "app.runnables". The other libraries in "appsrc" are generated and can not be changed.


Script in tree structure

Clicking on the script you can edit it. To save the script in D2000 System you must the first save it in Eclipse and then save the object D2000, which this script belongs to, in D2000 CNF / D2000 GR - the script is loaded from disc into D2000 System, compiled, saved into a configuration database and ready to be done.

Eclipse plug-in


Eclipse plug-in is used to support an application class editing. If it is activated, it disables opening of the script of picture or event until is opened in D2000 GrEditor or D2000 CNF. After the script is saved in Eclipse, it will be saved in D2000 process.
Plug-in is tested on the Eclipse 3.3, 3.4 and 3.5 versions.


Implementation

Copy the file d2plugin.jar from the directory D2000.EXE\bin\ into eclipse\plugins\ and start Eclipse up. The plug-in icon will display in toolbar.


Activation

Plug-in is activated by clicking on the icon (next clicking deactivates the plug-in). Start the processes D2000 GrEditor and (or) D2000 CNF before the plug-in activation. A running plug-in searches a project, path of which is %application_folder%\java\eclipseproject. If plug-in finds the project, it locks all the scripts of pictures and events.

When the script, which is not activated in D2000, is opened, the warning occurs. Otherwise, the script will be opened. When it is saved in Eclipse it will be saved automatically in D2000. When the picture or event is closed in D2000, the scrip will be closed in Eclipse automatically.

0 komentárov

Nie ste prihlásený. Akékoľvek zmeny, ktoré vykonáte, sa označia ako anonymné. Ak už máte svoj účet, pravdepodobne sa budete chcieť prihlásiť .