| | |
| | | package com.gitblit.client;
|
| | |
|
| | | import java.awt.BorderLayout;
|
| | | import java.awt.Cursor;
|
| | | import java.awt.FlowLayout;
|
| | | import java.awt.Insets;
|
| | | import java.awt.Rectangle;
|
| | |
| | | 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 {
|
| | |
| | |
|
| | | @Override
|
| | | protected void done() {
|
| | | setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));
|
| | | try {
|
| | | List<FeedEntryModel> results = get();
|
| | | if (isSearch) {
|