Skip to content

Commit

Permalink
fix: removed nodeType dependency on scenery
Browse files Browse the repository at this point in the history
  • Loading branch information
smlpt committed Apr 23, 2024
1 parent 7943804 commit d8e5123
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().getNodeType() + " cannot export to N5.");
logService.warn("Node is " + sciView.getActiveNode().getClass() + " 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.nodeType + " To String: " + n
return "Node name: " + n.name + " Node type: " + n.javaClass + " 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.nodeType))
add(JMenuItem("Type: " + n.javaClass))
}
}

0 comments on commit d8e5123

Please sign in to comment.