From be63b4333a32026f9c8f1745573d054f7f857906 Mon Sep 17 00:00:00 2001 From: Manindra Moharana Date: Sat, 14 Jun 2014 23:35:00 +0530 Subject: [PATCH] updated jdoc --- .../mode/experimental/ErrorCheckerService.java | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/pdex/src/processing/mode/experimental/ErrorCheckerService.java b/pdex/src/processing/mode/experimental/ErrorCheckerService.java index c9951b938..06e493762 100644 --- a/pdex/src/processing/mode/experimental/ErrorCheckerService.java +++ b/pdex/src/processing/mode/experimental/ErrorCheckerService.java @@ -296,6 +296,9 @@ public class ErrorCheckerService implements Runnable{ }); }*/ + /** + * Ensure user is running the minimum P5 version + */ public void ensureMinP5Version(){ // Processing 2.1.2 - Revision 0225 if(Base.getRevision() < 225){ @@ -304,6 +307,14 @@ public class ErrorCheckerService implements Runnable{ } } + /** + * The way the error checking happens is: DocumentListeners are added + * to each SketchCode object. Whenever the document is edited, it call + * runManualErrorCheck(). Internally, an atomic integer counter is incremented. + * The ECS thread checks the value of this counter evey sleepTime seconds. + * If the counter is non zero, error checking is done(in the ECS thread) + * and the counter is reset. + */ public void run() { stopThread.set(false); @@ -1288,6 +1299,12 @@ public class ErrorCheckerService implements Runnable{ return new int[] { codeIndex, x }; } + /** + * Returns line number of corresponding java source + * @param tab + * @param pdeLineNum + * @return + */ public int getJavaLineNumFromPDElineNum(int tab, int pdeLineNum){ int jLineNum = programImports.size() + 1; for (int i = 0; i < tab; i++) {