Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 43925

Summary: Get busy cursor when new synchronize view is refreshing
Product: [Eclipse Project] Platform Reporter: Lance Walton <lance>
Component: TeamAssignee: Platform-VCM-Inbox <platform-vcm-inbox>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P3    
Version: 3.0   
Target Milestone: ---   
Hardware: Macintosh   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

Description Lance Walton CLA 2003-09-30 12:38:51 EDT
Build Id: 200309250800

Whenever the new synchronize view is refreshing, I get a busy cursor and can't
do anything else within Eclipse. This got particularly bad today when our CVS
server was taken down. Whenever Eclipse tried to connect to the server, I had to
wait for the socket timeout before I got control back.

Closing the synchronize view in the open perspective didn't help, however (I
still get socket timeouts in the log, so I guess the synchronization is still
running somewhere)

In my synchronize Preferences, I have both options in the 'Refreshing with
remote' section checked.



Lance
Comment 1 Lance Walton CLA 2003-09-30 12:45:53 EDT
Here's a stack for you.

Lance

!ENTRY org.eclipse.team.ui 4 -6 Sep 30, 2003 17:22:03.921
!MESSAGE An error occured while synchronizing with remote contents.
!SUBENTRY 1 org.eclipse.team.cvs.core 4 0 Sep 30, 2003 17:22:03.922
!MESSAGE Cannot connect to host
!STACK 0
java.net.ConnectException: Operation timed out
        at java.net.PlainSocketImpl.socketConnect(Native Method)
        at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
        at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
        at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
        at java.net.Socket.connect(Socket.java:426)
        at java.net.Socket.connect(Socket.java:376)
        at java.net.Socket.<init>(Socket.java:291)
        at java.net.Socket.<init>(Socket.java:119)
        at org.eclipse.team.internal.ccvs.core.util.Util$1.run(Util.java:183)
        at java.lang.Thread.run(Thread.java:554)
Comment 2 Jean-Michel Lemieux CLA 2003-10-03 15:15:58 EDT
When the background sync is running we change the cursor to the 'arrow-with-busy'. this is only 
supported on some platforms, but when not supported defaults to the simple arrow. I've tried to 
duplicate this problem on the Mac and was unsuccessful. When the background refresh is 
happening the view and Eclipse is responsive. Also, if I disconnect the network cable to simulate a 
server that is down, Eclipse remains responsive but the refresh job returns an error.

Please re-open if you still have this problem. I suspect though that some other plugin was actually 
to blame, while running a long operation in the UI thread.