@@ -487,9 +487,9 @@ static public void init(String[] args) {
487
487
List <String > warningsAccumulator = new LinkedList <String >();
488
488
boolean success = false ;
489
489
try {
490
- // costruttore di Editor carica lo sketch usando handleOpenInternal() che fa
491
- // la new di Sketch che chiama load() nel suo costruttore
492
- // In questo punto questo si traduce in :
490
+ // Editor constructor loads the sketch with handleOpenInternal() that
491
+ // creates a new Sketch that, in trun, calls load() inside its constructor
492
+ // This translates here as :
493
493
// SketchData data = new SketchData(file);
494
494
// File tempBuildFolder = getBuildFolder();
495
495
// data.load();
@@ -498,17 +498,17 @@ static public void init(String[] args) {
498
498
data .load ();
499
499
500
500
// Sketch.exportApplet()
501
- // - chiama Sketch.prepare() che chiama Sketch.ensureExistence()
502
- // - chiama Sketch.build(verbose=false) che chiama Sketch.ensureExistence(), imposta il progressListener e chiama Compiler.build()
503
- // - chiama Sketch.upload() (cfr. dopo ...)
501
+ // - calls Sketch.prepare() that calls Sketch.ensureExistence()
502
+ // - calls Sketch.build(verbose=false) that calls Sketch.ensureExistence(), set progressListener and calls Compiler.build()
503
+ // - calls Sketch.upload() (see later ...)
504
504
if (!data .getFolder ().exists ()) showError (_ ("No sketch" ), _ ("Can't find the sketch in the specified path" ), null );
505
505
String suggestedClassName = Compiler .build (data , tempBuildFolder .getAbsolutePath (), tempBuildFolder , null , parser .isDoVerboseBuild ());
506
506
if (suggestedClassName == null ) showError (_ ("Error while verifying" ), _ ("An error occurred while verifying the sketch" ), null );
507
507
showMessage (_ ("Done compiling" ), _ ("Done compiling" ));
508
508
509
509
// - chiama Sketch.upload() ... to be continued ...
510
510
Uploader uploader = Compiler .getUploaderByPreferences (parser .isNoUploadPort ());
511
- if (uploader .requiresAuthorization () && !PreferencesData .has (uploader .getAuthorizationKey ())) showError (_ ( "..." ), _ ( "..." ) , null );
511
+ if (uploader .requiresAuthorization () && !PreferencesData .has (uploader .getAuthorizationKey ())) showError ("..." , "..." , null );
512
512
try {
513
513
success = Compiler .upload (data , uploader , tempBuildFolder .getAbsolutePath (), suggestedClassName , parser .isDoUseProgrammer (), parser .isNoUploadPort (), warningsAccumulator );
514
514
showMessage (_ ("Done uploading" ), _ ("Done uploading" ));
@@ -531,19 +531,19 @@ static public void init(String[] args) {
531
531
for (String path : parser .getFilenames ())
532
532
{
533
533
try {
534
- // costruttore di Editor carica lo sketch usando handleOpenInternal() che fa
535
- // la new di Sketch che chiama load() nel suo costruttore
536
- // In questo punto questo si traduce in :
534
+ // Editor constructor loads sketch with handleOpenInternal() that
535
+ // creates a new Sketch that calls load() in its constructor
536
+ // This translates here as :
537
537
// SketchData data = new SketchData(file);
538
538
// File tempBuildFolder = getBuildFolder();
539
539
// data.load();
540
540
SketchData data = new SketchData (absoluteFile (path ));
541
541
File tempBuildFolder = getBuildFolder ();
542
542
data .load ();
543
543
544
- // metodo Sketch.prepare() chiama Sketch.ensureExistence()
545
- // Sketch.build(verbose) chiama Sketch.ensureExistence() e poi imposta il progressListener e, finalmente, chiama Compiler.build()
546
- // In questo punto questo si traduce in :
544
+ // Sketch.prepare() calls Sketch.ensureExistence()
545
+ // Sketch.build(verbose) calls Sketch.ensureExistence() and set progressListener and, finally, calls Compiler.build()
546
+ // This translates here as :
547
547
// if (!data.getFolder().exists()) showError(...);
548
548
// String ... = Compiler.build(data, tempBuildFolder.getAbsolutePath(), tempBuildFolder, null, verbose);
549
549
if (!data .getFolder ().exists ()) showError (_ ("No sketch" ), _ ("Can't find the sketch in the specified path" ), null );
0 commit comments