From c7a721aad7c23640d59ad682854e066f4538436c Mon Sep 17 00:00:00 2001
From: James Moger <james.moger@gitblit.com>
Date: Thu, 10 Nov 2011 07:56:07 -0500
Subject: [PATCH] Show busy cursors when executing workers

---
 src/com/gitblit/client/SearchDialog.java |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/com/gitblit/client/SearchDialog.java b/src/com/gitblit/client/SearchDialog.java
index cf17116..0f25e9a 100644
--- a/src/com/gitblit/client/SearchDialog.java
+++ b/src/com/gitblit/client/SearchDialog.java
@@ -16,6 +16,7 @@
 package com.gitblit.client;
 
 import java.awt.BorderLayout;
+import java.awt.Cursor;
 import java.awt.FlowLayout;
 import java.awt.Insets;
 import java.awt.Rectangle;
@@ -328,6 +329,7 @@
 		if (isSearch && StringUtils.isEmpty(fragment)) {
 			return;
 		}
+		setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
 		SwingWorker<List<FeedEntryModel>, Void> worker = new SwingWorker<List<FeedEntryModel>, Void>() {
 			@Override
 			protected List<FeedEntryModel> doInBackground() throws IOException {
@@ -341,6 +343,7 @@
 
 			@Override
 			protected void done() {
+				setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));
 				try {
 					List<FeedEntryModel> results = get();
 					if (isSearch) {

--
Gitblit v1.9.1