Skip to content

Commit 924ccb4

Browse files
committed
update doc
1 parent 2343b94 commit 924ccb4

File tree

4 files changed

+70
-17
lines changed

4 files changed

+70
-17
lines changed

.idea/workspace.xml

Lines changed: 17 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

API Reference.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,19 @@
11
# Real-time Data API Reference
22

33
## Overview
4-
We provide a real-time data API for future plug-in developers and researchers to get the real-time data from IDE tracker and eye tracker separately. The API is based on the [IDE Tracker](#ide-tracker) and [Eye Tracker](#eye-tracker).
4+
We provide a real-time data API for future plugin developers and researchers to get the real-time data from IDE tracker and eye tracker separately. The API is based on the [IDE Tracker](#ide-tracker) and [Eye Tracker](#eye-tracker).
55

66
## Configuration
7-
add dependency stuff
7+
Before using the API, you first need to add the following dependency to the `intellij` section in `build.gradle.kts` file.
8+
9+
```groovy
10+
intellij {
11+
plugins.set(file("path-to-CodeGRITS-project\\build\\idea-sandbox\\plugins\\CodeVision"))
12+
}
13+
```
814

915
## Quick Start
10-
describe how to use the API
16+
To use the API, simply call the `getInstance()` method to get the instance of the IDE Tracker or Eye Tracker. Then, set the `isRealTimeDataTransmitting` to `true` to enable the real-time data transmitting. After that, set the `ideTrackerDataHandler` or `eyeTrackerDataHandler` to handle the real-time data. Finally, call the `startTracking()` method to start tracking.
1117

1218
```java
1319
IDETracker ideTracker = IDETracker.getInstance();

DOCUMENT.md renamed to Output Format.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# CodeGRITS Documentation
1+
# Output Format
22

33
## Output Directory Structure
44

@@ -74,7 +74,8 @@ The [editor coordinate system](https://plugins.jetbrains.com/docs/intellij/coord
7474
- [`<selection>`](#selection)
7575
- [`<visible_areas>`](#vis_areas)
7676
- [`<visible_area>`](#vis_area)
77-
:::
77+
78+
:::
7879

7980
---
8081

README.md

Lines changed: 41 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,55 @@
1-
# CodeGRITS
1+
# Getting Started
22

3-
## Environment
3+
## What is CodeGRITS?
4+
CodeGRITS stands for **G**aze **R**ecording & **I**DE **T**racking **S**ystem, which is a plugin specifically designed for SE researchers. CodeGRITS is
5+
built on top of IntelliJ’s SDK, with wide compatibility with the
6+
entire family of JetBrains IDEs to track developers’ IDE interactions and eye gaze data.
7+
8+
## Key Features
9+
- **Gaze and IDE Recording**: CodeGRITS records developers’ eye gaze data and
10+
IDE interactions.
11+
- **Screen Recording**: CodeGRITS records developers’ screen.
12+
- **Research Toolkit**: CodeGRITS provides a set of extra features for SE
13+
researchers, including preset labels, real-time data API, etc.
14+
- **Data Export**: CodeGRITS exports data in XML format for further analysis.
15+
- **Real-time Data API**: CodeGRITS provides real-time data API for further
16+
development.
17+
18+
## Using CodeGRITS
19+
20+
### Python Environment
21+
It is necessary to install the following packages in your python environment to run this plugin.
422

523
```
6-
Windows 10
7-
IntelliJ IDEA 2022.1.4
824
python==3.8.8
925
tobii-research==1.10.1
1026
pyautogui==0.9.53
1127
screeninfo==0.8
1228
```
1329

14-
## Usage
30+
### Installation
31+
1. Clone the [repository](https://github.com/codegrits/CodeGRITS) to your local machine.
32+
2. Open command line and run `./gradlew build` in the root folder to build the plugin.
33+
3. Open IntelliJ IDEA and click `File` - `Settings` - `Plugins` - `Install Plugin from Disk...` to install the plugin zip file in `build/distributions` folder.
34+
4. Restart IntelliJ IDEA to enable the plugin.
35+
5. All CodeGRITS features are available in `Tools` dropdown menu, including `Start Tracking`, `Pause Tracking`, and `Configuration`.
36+
37+
### Usage
38+
!!!
39+
Before starting tracking, you should first configure the plugin. Click `Tools` - `CodeGRITS` - `Configuration` to open the configuration window. To enable eye tracking,
40+
you need to have the necessary Python packages installed in your Python environment. The plugin automatically checks the Python environment.
41+
42+
We highly recommend
43+
using [Tobii Pro Eye Tracker Manager](https://www.tobii.com/products/software/applications-and-developer-kits/tobii-pro-eye-tracker-manager#downloads)
44+
to conduct calibration before using eye tracking.
45+
!!!
1546

16-
You should
17-
use [Tobii Pro Eye Tracker Manager](https://www.tobii.com/products/software/applications-and-developer-kits/tobii-pro-eye-tracker-manager#downloads)
18-
to conduct calibration before using this plugin.
47+
1. Click `Tools` - `CodeGRITS` - `Start Tracking` to start tracking.
48+
2. Click `Tools` - `CodeGRITS` - `Pause Tracking` to pause tracking.
49+
3. Click `Tools` - `CodeGRITS` - `Resume Tracking` to resume tracking.
50+
4. Click `Tools` - `CodeGRITS` - `Stop Tracking` to stop tracking. The plugin will export data in XML format to the configured folder.
1951

20-
## Development
52+
## Further Development
2153

2254
1. Click `Run` - `Run Plugin` to run the plugin and test it.
2355
2. Open command line and run `./gradlew build` to build the plugin.

0 commit comments

Comments
 (0)