Skip to content

Commit

Permalink
use import instead of fully qualified classname
Browse files Browse the repository at this point in the history
  • Loading branch information
paulk-asert committed Sep 8, 2024
1 parent 738fe8e commit b06e06f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,14 @@
*/
package groovy.console.ui.view

import groovy.console.ui.Console
import javax.swing.text.StyleConstants
import javax.swing.text.StyleContext
import java.util.prefs.Preferences

build(Defaults)

def prefs = Preferences.userNodeForPackage(groovy.console.ui.Console)
def prefs = Preferences.userNodeForPackage(Console)
def fontFamily = prefs.get("fontName", "DejaVu Sans Mono")

// change font to DejaVu Sans Mono, much clearer
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,15 @@
*/
package groovy.console.ui.view

import groovy.console.ui.Console

import javax.swing.text.StyleConstants
import javax.swing.text.StyleContext
import java.util.prefs.Preferences

build(Defaults)

def prefs = Preferences.userNodeForPackage(groovy.console.ui.Console)
def prefs = Preferences.userNodeForPackage(Console)
def fontFamily = prefs.get("fontName", "Consolas")

// change fonts for vista
Expand Down

0 comments on commit b06e06f

Please sign in to comment.