User Tools

Site Tools


dev-guide:automatic-imports

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
dev-guide/automatic-imports.txt · Last modified: 2024/12/04 14:20 by gaetan