Provides the main implementation of the Eclipse IDE sensor.

EclipseSensorPlugin is the implementation class for Eclipse IDE plugin, whose main purpose is to instantiate EclipseSensor class.

EclipseSensor instantiates sensor shell to collect necessary data such as active file information, file metric information. Provides public process methods such as processActivity, processStateChangeActivity, processFileMetric, and processUnitTest.

StateChangeTimerTask runs to process state change and file metric in a certain interval. BuffTransTimerTask runs to process buffer transitions in a certain interval.

Currently, Three threshold values are manipulated by the sensor:

  1. Activity : The activity time is captured if a ceratain event asociated with acitivity is triggered. For the most frequentry threshold is state change acitivity. It is captured if there exisst unstored buffer in the text file.
  2. FileMetric : The metrics are calculated such as CK metrics.
  3. UnitTest : The JUnit test results are captured if the JUnit test cases or suites are executed in the JUnit pane of the Eclipse.
  4. BuffTrans : The buffer transitions are captured if the current buffer is visiting a file and if that file is different from the file visited by the buffer during the last wakeup.
The determination of these three threshold values are set in the sensor.properties file.

For instructions on how to install these sensors in your Eclipse IDE, see the web page installation instructions at a running Hackystat server.