Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456 CoCoViLa
CoCoViLa - a compiler compiler for visual languages.
COCOVILA packages are situated in the packages
directory. A
package consists of a package file in xml format (eg mypackage.xml),
bitmaps for all visual classes of the packages (to be shown
in
the toolbar in the scheme editor), and Java classes associated with the
visual classes.
All files of type .java and .gif can be created in any
convenient
way, using some Java programming tool and a bitmap
editor.
Creating a package
Open the Class Editor
Use File
-> Create Package to create a package. Enter
the name and description of the package, You will be prompted with a
dialog to choose where the newly created package will be saved.
Typically, you should save it under a new directory in packages
directory.
Construct visual classes.
Constructing a visual class
Draw an image (a shape) of
the class, using the drawing tools of
the Class Editor
Add ports to the image by
clicking on the port tool button and
then on the image, and specify interface variable bound to the port and
its type in the port pop-up window.
Add class fields (component
fields that will be visible on the
scheme when double-clicked on the image).
Specify the bounding box
that defines an area where the image
will register mouse clicks in Scheme Editor. To do this, click on the
bounding box button and then cover the image with the bounding box.
Specify class properties and
export the visual class by using
commands File -> Export ->To Package. Choose the package
you have
created for this class.
Note that right now, the
Class Editor does not support drawing
graphics for ports and fields. However the package format itself allows
it, so graphics for open and closed ports and known and unknown fields
can be given by directly editing the xml source of a package.
After that, there are still two things to do
Create and move source files
of the classes to the package
directory.
Create bitmaps of the icons
of classes and put them into the
package directory.
Deleting and importing classes
Delete a class: File
-> Delete (This command requires a
package name and a class name.)
Import a class from a
package: File -> Import
To save the imported class
use File -> Export ->To Package
in the same way as for a new visual class.