Ticket #220 (closed enhancement: fixed)

Opened 2 years ago

Last modified 21 months ago

automatically add imports for core objects and plugins in ui console

Reported by: dumoulin Owned by: dumoulin
Priority: low Milestone: 1.0
Component: ui.console Version: 0.3
Severity: minor Keywords:
Cc:

Description

For instance, we have to add a lot of imports when defining a mole in a script for ui console.

  • Common objects of the core could be automatically imported, at least the most importants/used.
  • tasks available as plugin could also be automatically imported with a collision detection mechanism. Thus, if two classes with same name are found, imports are not added and a warning is displayed when the console is started or a plugin is loaded.

Change History

Changed 21 months ago by dumoulin

  • owner changed from romain.reuillon to dumoulin
  • status changed from new to assigned

An other solution than adding import is to provide a builder that provides convenient methods for building common objects. An example session can be:

t1 = builder.buildGroovyTask()
t1.setCode("println 't1'")
t2 = builder.buildGroovyTask()
t2.setCode("println 't2'")
builder.buildMole(t1, t2).run()

Changed 21 months ago by dumoulin

  • status changed from assigned to closed
  • resolution set to fixed

implemented in r3459, see DevDoc/UIConsole.

Note: See TracTickets for help on using tickets.

logo cemagref

logo iscpif

logo lifegrid

logo region auvergne

logo patres project