SDA SE Wiki

Software Engineering for Smart Data Analytics & Smart Data Analytics for Software Engineering

User Tools

Site Tools


Editing Support

This storybook contains stories that help developers in creating queries or transformations from source code templates.

Selection to Clipboard Dialog

Description: Replace the existing two JT menu items with a single one (“Selection to Clipboard…”) that opens a dialog with the following contents:

  • an editable overview of the currently generated code –> user can copy / edit
  • a button “Copy to clipboard”
  • a radio button for switching between creating conditions or actions
  • a radio button for including / excluding the source location info
  • an integer input field that determines the level of indentation of the generated code

Aim: Have a single access point for configuring all the options that influence the copying to the clipboard.

Priority: High.

Selection to Clipboard Context Menu Item

Description: Add a context menu item to the editor that opens the “Selection to Clipboard Dialog”.

Aim: Speed up interaction. Self-documenting GUI (make it clear what selection is meant).

Priority: Nice to have.

Customizable Varnames in Selection to Clipboard

Description: Add to the dialog a scrollable, editable list of variable names used in the code → editing of the list takes effect immediately in the overview, replacing consistently all occurrences of the variable.

Aim: Make adaptation of the copied code to the context of use quick and easy.

Dependencies: See previous item.

Priority: High.

Node Selection to Clipboard

Description: Add a context menu item to the Factbase Inspector that copies the textual representation of the selected node and its descendants to the clipboard.

Aim: Give developers the freedom to work as they like best. Let them decide whether they prefer to create query templates from the source code or from the internal view of the factbase nodes.

Dependencies: Behaviour and dialog must be the same as for “Selection to Clipboard Dialog” and Customizable Varnames in Selection to Clipboard.

Priority: Medium.

Context-Aware Selection to Clipboard

Description: Let the “Selection to clipboard” item in the JT menu behave according to the current selection.

  • If there is an editor selection, perform “Java Selection to Clipboard”.
  • If there is a node selection in the factbase inspector, perform “Node Selection to Clipboard”.
  • If there is no selection tell the user to select something in the editor or factbase inspector.

Aim: Have a unique entry point to similar behaviour (→ “Erwartungskonformität”).

Dependencies: “Selection to Clipboard Dialog”, Customizable Varnames in Selection to Clipboard“ and Node Selection to Clipboard.

Priority: Low.

teaching/labs/xp/2008a/editing_support.txt · Last modified: 2018/05/09 01:59 (external edit)

SEWiki, © 2025