Where everything is
Stau Metro adds one menu entry, one tool window and one settings page to the IDE. Everything else opens from them.
The pieces
| Piece | How to open it | What it is for | Help |
|---|---|---|---|
| Calculate Metrics... | Code menu | Choose the scope and the profile, and start a calculation | “Calculating metrics” |
| Metrics Profiles... | Button of the calculation dialog | Create, copy, edit and delete profiles | “Metrics profiles” |
| Stau Metro tool window | Opens by itself with the results | The Summary and the tables of each run | “The results window” |
| Summary tab | First tab of each run | The elements beyond a threshold, worst first | “The Summary” |
| Explain This Metric | Right-click a metric column | The full help of a metric | “Help for a metric” |
| Charts... | Right-click a metric column | Distribution, concentration, changes and map of a metric | “Charts” |
| Edit Thresholds... | Toolbar of the results | Change the limits of the metrics of a table | “Thresholds” |
| Settings | Tools | Stau Metro | IDE settings | The language of the plugin | “Settings” |
How they connect
- Calculate Metrics... asks what to measure (the scope) and with which metrics (the profile).
- The calculation runs in the background and adds a tab to the Stau Metro tool window. Each run has its own tab, named after its profile, its scope and its time, and stays there until you close it.
- Inside the tab, the Summary lists the problems and the other tabs hold the full tables, one per kind of element.
- From a table you reach the code (double-click), the help of a metric and its charts (right-click), and the actions of the toolbar on the left: recalculate, compare, save a snapshot, export and edit thresholds.
Words the interface uses
- Scope. The part of the project a calculation covers: the whole project, a module, a directory, a custom scope.
- Profile. A named set of metrics, each one enabled or not and with its thresholds. A calculation uses one profile. Some come with the plugin and are read-only, and you can create your own.
- Category. The kind of element a metric measures: method, class, interface, package, module, file type or project. The results have one table per category.
- Aspect. The quality question a metric belongs to: size, complexity, coupling, cohesion, inheritance, encapsulation, documentation, testing or package design. Profiles can show their metrics grouped by aspect.
- Threshold. A limit on the value of a metric. A value beyond it is marked as a warning or as an error.
- Hot spot. An element with at least one metric beyond a threshold. The Summary lists them.
- Snapshot. The results of a run saved in a file, to compare later runs with it.