Skip to content
This repository
Browse code

Store edge slope in user preferences.

  • Loading branch information...
commit 4c72a65904e13009f5d2c13eda21fa03e4399a92 1 parent ed23922
Jan Willem Janssen authored
4  client/src/main/java/nl/lxtreme/ols/client/diagram/settings/MutableDiagramSettings.java
@@ -375,6 +375,9 @@ public void readPreferences( final Preferences aPreferences )
375 375
 
376 376
     String colorSchemeName = aPreferences.get( "colorScheme", this.colorScheme.name() );
377 377
     setColorScheme( ColorScheme.valueOf( colorSchemeName ) );
  378
+
  379
+    String edgeSlopeName = aPreferences.get( "edgeSlope", this.edgeSlope.name() );
  380
+    setEdgeSlope( EdgeSlope.valueOf( edgeSlopeName ) );
378 381
   }
379 382
 
380 383
   /**
@@ -673,6 +676,7 @@ public void writePreferences( final Preferences aPreferences )
673 676
 
674 677
     aPreferences.put( "colorTarget", this.colorTarget.name() );
675 678
     aPreferences.put( "colorScheme", this.colorScheme.name() );
  679
+    aPreferences.put( "edgeSlope", this.edgeSlope.name() );
676 680
   }
677 681
 
678 682
   /**

0 notes on commit 4c72a65

Please sign in to comment.
Something went wrong with that request. Please try again.