Lines 116-121
Link Here
|
116 |
|
116 |
|
117 |
transient boolean dropTargetPopupAllowed = true; |
117 |
transient boolean dropTargetPopupAllowed = true; |
118 |
transient private Container contentPane; |
118 |
transient private Container contentPane; |
|
|
119 |
transient Boolean waitCursorDisabled; |
119 |
|
120 |
|
120 |
/** Constructor. |
121 |
/** Constructor. |
121 |
*/ |
122 |
*/ |
Lines 662-667
Link Here
|
662 |
return tree.getSelectionModel ().getSelectionMode (); |
663 |
return tree.getSelectionModel ().getSelectionMode (); |
663 |
} |
664 |
} |
664 |
|
665 |
|
|
|
666 |
// wait cursor |
667 |
private boolean isWaitCursorDisabled () { |
668 |
if (waitCursorDisabled == null) { |
669 |
if (System.getProperty ("netbeans.wait.disabled") != null) { // NOI18N |
670 |
waitCursorDisabled = Boolean.getBoolean ("netbeans.wait.disabled") ? Boolean.TRUE : Boolean.FALSE; // NOI18N |
671 |
} else { |
672 |
waitCursorDisabled = Boolean.TRUE; |
673 |
} |
674 |
} |
675 |
return waitCursorDisabled.booleanValue (); |
676 |
} |
677 |
|
665 |
private void showWaitCursor () { |
678 |
private void showWaitCursor () { |
666 |
if (getRootPane () == null) return ; |
679 |
if (getRootPane () == null) return ; |
667 |
contentPane = getRootPane ().getContentPane (); |
680 |
contentPane = getRootPane ().getContentPane (); |
Lines 933-938
Link Here
|
933 |
} |
946 |
} |
934 |
|
947 |
|
935 |
public void treeWillExpand(TreeExpansionEvent event) throws ExpandVetoException { |
948 |
public void treeWillExpand(TreeExpansionEvent event) throws ExpandVetoException { |
|
|
949 |
if (isWaitCursorDisabled ()) return ; |
936 |
// prepare wait cursor and optionally show it |
950 |
// prepare wait cursor and optionally show it |
937 |
TreePath path = event.getPath (); |
951 |
TreePath path = event.getPath (); |
938 |
prepareWaitCursor (DragDropUtilities.secureFindNode (path.getLastPathComponent ())); |
952 |
prepareWaitCursor (DragDropUtilities.secureFindNode (path.getLastPathComponent ())); |