File tree Expand file tree Collapse file tree
preprocessor/src/main/java/processing/app
src/processing/mode/java/preproc Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -61,4 +61,7 @@ static public boolean getBoolean(String attribute) {
6161 String value = get (attribute ); //, null);
6262 return Boolean .parseBoolean (value );
6363 }
64+ static public int getInteger (String attribute /*, int defaultValue*/ ) {
65+ return Integer .parseInt (get (attribute ));
66+ }
6467}
Original file line number Diff line number Diff line change @@ -412,7 +412,7 @@ public PdePreprocessorBuilder setDestinationPackage(String newDestinationPackage
412412 */
413413 public PdePreprocessor build () {
414414 final int effectiveTabSize =
415- tabSize .orElseGet (() -> 4 );
415+ tabSize .orElseGet (() -> Preferences . getInteger ( "editor.tabs.size" ) );
416416
417417 final boolean effectiveIsTesting = isTesting .orElse (false );
418418
You can’t perform that action at this time.
0 commit comments