Skip to content

Commit

Permalink
fix: changed classes to simple names, changed concatenation to string…
Browse files Browse the repository at this point in the history
… templates
  • Loading branch information
smlpt authored and skalarproduktraum committed May 7, 2024
1 parent 0e3b3a9 commit 435e6e5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/main/java/sc/iview/commands/file/ExportN5.java
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public void run() {
}

} else {
logService.warn("Node is " + sciView.getActiveNode().getClass() + " cannot export to N5.");
logService.warn("Node is " + sciView.getActiveNode().getClass().getSimpleName() + " cannot export to N5.");
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/main/kotlin/sc/iview/SciView.kt
Original file line number Diff line number Diff line change
Expand Up @@ -1814,7 +1814,7 @@ class SciView : SceneryBase, CalibratedRealInterval<CalibratedAxis> {
* Convenience function for getting a string of info about a Node
*/
fun nodeInfoString(n: Node): String {
return "Node name: " + n.name + " Node type: " + n.javaClass + " To String: " + n
return "Node name: ${n.name} Node type: ${n.javaClass.simpleName} To String: $n"
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/main/kotlin/sc/iview/ui/ContextPopUp.kt
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@ import javax.swing.JPopupMenu
class ContextPopUp(n: Node) : JPopupMenu() {
init {
add(JMenuItem("Name: " + n.name))
add(JMenuItem("Type: " + n.javaClass))
add(JMenuItem("Type: ${n.javaClass.simpleName}"))
}
}

0 comments on commit 435e6e5

Please sign in to comment.