File Save
- This dialog enables you to save the library element in the
current FBEditor tab in any of the following formats:
- XML: Saves the contents of
the XML tab as an IEC 61499 XML-encoded library element with a
file suffix as defined in the Compliance
Profile.
- Java: Saves the contents
of the Java tab as a *.java file and compiles it to a
*.class file. Following compilation, a dialog box will open
displaying the results of the compilation.
- Since compiling may be a lengthy operation, a status
indicator will appear at the right-hand end of the Status Line
while compiling is in progress.
- HTML: Saves the current
library element as an HTML file containing skeleton documentation for
the element, including an applet for viewing an XML file containing
the library element. The size of the applet frame and the pane splits
will be the same as currently displayed in the FBEditor frame.
- PNG: Saves the contents of
the Worksheet as a *.png file in Portable Network Graphics
(PNG) format. The size of the PNG image is trimmed to that required to
display all of the graphic elements in the Worksheet, which may be
larger or smaller than the size of the Viewport.
- JUnit: Saves the
contents of the JUnit tab as a Java source file for JUnit testing of the
library element
- The JUnit test framework for the FBDK is not yet publicly
released.
- The directory in which the files are
saved is determined by the package name. For instance, if the FBDK is
located in the C:\fbdk directory:
- the XML file of the element shown above would be stored as
C:\fbdk\src\mach\LOAD_CTL.fbt
;
- the HTML file would be stored as
C:\fbdk\doc\fb\rt\mach\LOAD_CTL.htm
;
- the Java™ file would be stored as
C:\fbdk\java\fb\rt\mach\LOAD_CTL.java
;
- the class file would be stored as
C:\fbdk\lib\fb\rt\mach\LOAD_CTL.class
; and
- the Worksheet contents would be saved as
C:\fbdk\images\fb\rt\mach\LOAD_CTL.png
.
- the JUnit contents would be saved as
C:\fbdk\test\fb\rt\mach\LOAD_CTL.java
.
- If a file is already saved with the
given library element name, e.g., myFBType.java, it is copied
into a backup file, e.g., myFBType.baknn, where nn is
the lowest available number in the sequence {00..99}.
- If all the backup numbers in the sequence 00..99 are
occupied, no backup will be made, so it is a good idea to purge
backed up files from time to time.
Last updated: 2011-02-11.
©2011 Holobloc
Inc.
Licensed under the Academic
Free License version 3.0.
Java
and JDK are trademarks or registered trademarks of Sun Microsystems,
Inc. in the United States and other countries.