User Tools

Site Tools


05_developer_tutorials:dev-guide:automatic-imports

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
05_developer_tutorials:dev-guide:automatic-imports [2025/02/19 15:51] – removed - external edit (Unknown date) 127.0.0.105_developer_tutorials:dev-guide:automatic-imports [2025/02/19 15:51] (current) – ↷ Page moved from 04_developer_documentation:dev-guide:automatic-imports to 05_developer_tutorials:dev-guide:automatic-imports gaetan
Line 1: Line 1:
 +Groimp enables to includes default imports in files when compiling them. These imports are defined in the registry under. ''/io/filter/xx'' where xx is the filter type to manage.
 +
 +Currently only the rgg filter is modified, thus, all ''.rgg'' files are compiled with additional default imports. 
 +
 +The paths of default imports are :
 +  * ''/io/filter/rgg/packageimports'': equivalent to //import pckname.*//, where pckname is the name of a java package (e.g. java.lang).
 +  * ''/io/filter/rgg/singletypeimports'': equivalent to //import pck.ClassName//, where pck.ClassName represent the complete name of a type (e.g. de.grogra.graph.impl.Node).
 +  * ''/io/filter/rgg/statictypeimports'': equivalent to //import static pck.ClassName//.
 +
 +**This page only list imports from the RGG plugin. Other plugin can includes default import by adding them in the registry under the paths above.**
 +
 +==== Package imports ====
 +  * java.lang
 +  * de.grogra.xl.lang
 +  * de.grogra.annotation
 +  * de.grogra.rgg
 +  * de.grogra.turtle
 +  * de.grogra.imp3d.objects
 +  * de.grogra.imp3d.shading
 +  * de.grogra.math
 +  * javax.vecmath
 +  * de.grogra.pf.data
 +
 +==== Single type import ====
 +  * de.grogra.graph.impl.Node
 +  * de.grogra.rgg.Attributes
 +  * de.grogra.rgg.numeric.GraphODE
 +  * de.grogra.rgg.numeric.Tolerance
 +
 +==== Static import ====
 +  * de.grogra.xl.util.Operators
 +  * de.grogra.rgg.Library
 +  * de.grogra.rgg.NumOperators
 +  * de.grogra.vecmath.VecmathOperators
 +  * de.grogra.imp3d.shading.RGBAShader
 +  * de.grogra.pf.ui.ChartPanel
 +  * de.grogra.turtle.TurtleState
 +  * de.grogra.xl.impl.base.Graph
 +