File tree Expand file tree Collapse file tree
java/src/processing/mode/java Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -69,16 +69,14 @@ public void componentHidden(ComponentEvent e) {
6969
7070 tree .addTreeSelectionListener (e -> {
7171 if (tree .getLastSelectedPathComponent () != null ) {
72- DefaultMutableTreeNode tnode =
72+ DefaultMutableTreeNode treeNode =
7373 (DefaultMutableTreeNode ) tree .getLastSelectedPathComponent ();
74- if (tnode .getUserObject () instanceof ASTNode ) {
75- ASTNode node = (ASTNode ) tnode .getUserObject ();
74+ if (treeNode .getUserObject () instanceof ASTNode ) {
75+ ASTNode node = (ASTNode ) treeNode .getUserObject ();
7676 pps .whenDone (ps -> {
7777 SketchInterval si = ps .mapJavaToSketch (node );
7878 if (!ps .inRange (si )) return ;
79- EventQueue .invokeLater (() -> {
80- editor .highlight (si .tabIndex , si .startTabOffset , si .stopTabOffset );
81- });
79+ EventQueue .invokeLater (() -> editor .highlight (si .tabIndex , si .startTabOffset , si .stopTabOffset ));
8280 });
8381 }
8482 }
You can’t perform that action at this time.
0 commit comments