Skip to content
This repository was archived by the owner on Nov 21, 2020. It is now read-only.

Commit 464f252

Browse files
authored
Merge pull request #80 from derbylock/master
Fixed Bug: update index progress blocks (maven) builds
2 parents 358bf3f + e5fc267 commit 464f252

File tree

6 files changed

+15
-4
lines changed

6 files changed

+15
-4
lines changed

instasearch/src/it/unibz/instasearch/jobs/CheckUpdatesJob.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ public CheckUpdatesJob()
5656
{
5757
super("InstaSearch Update Check");
5858

59+
setPriority(DECORATE);
60+
5961
setProperty(IProgressConstants.ICON_PROPERTY,
6062
InstaSearchPlugin.getImageDescriptor("update"));
6163

instasearch/src/it/unibz/instasearch/jobs/DeleteIndexJob.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ public DeleteIndexJob(WorkspaceIndexer indexer)
4040
this.indexer = indexer;
4141
setRule(indexer);
4242

43+
setPriority(DECORATE);
44+
4345
setProperty(IProgressConstants.NO_IMMEDIATE_ERROR_PROMPT_PROPERTY, Boolean.TRUE);
4446
setProperty(IProgressConstants.ICON_PROPERTY,
4547
InstaSearchPlugin.getImageDescriptor("delete"));

instasearch/src/it/unibz/instasearch/jobs/IndexUpdateJob.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@ public IndexUpdateJob(WorkspaceIndexer indexer, IndexChangeListener indexChangeL
7373

7474
setRule(indexer);
7575

76+
setPriority(DECORATE);
77+
7678
setProperty(IProgressConstants.ICON_PROPERTY, InstaSearchPlugin.getImageDescriptor("syncdb"));
7779
setProperty(IProgressConstants.NO_IMMEDIATE_ERROR_PROMPT_PROPERTY, Boolean.TRUE);
7880
}

instasearch/src/it/unibz/instasearch/jobs/IndexingJob.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ public IndexingJob(WorkspaceIndexer indexer) {
3232

3333
setRule(indexer);
3434

35+
setPriority(DECORATE);
36+
3537
setProperty(IProgressConstants.ICON_PROPERTY, InstaSearchPlugin.getImageDescriptor("binary"));
3638
setProperty(IProgressConstants.NO_IMMEDIATE_ERROR_PROMPT_PROPERTY, Boolean.TRUE);
3739
}

instasearch/src/it/unibz/instasearch/jobs/UpdatePluginJob.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ public UpdatePluginJob()
3939
{
4040
super("InstaSearch Update");
4141

42+
setPriority(DECORATE);
43+
4244
setProperty(IProgressConstants.ICON_PROPERTY, InstaSearchPlugin.getImageDescriptor("update"));
4345
setProperty(IProgressConstants.NO_IMMEDIATE_ERROR_PROMPT_PROPERTY, Boolean.TRUE);
4446
}

instasearch/src/it/unibz/instasearch/ui/ResultLabelProvider.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
import org.eclipse.jface.viewers.StyledString;
3131
import org.eclipse.jface.viewers.StyledString.Styler;
3232
import org.eclipse.search.ui.text.Match;
33+
import org.eclipse.swt.graphics.Color;
3334
import org.eclipse.swt.graphics.Image;
3435
import org.eclipse.swt.graphics.RGB;
3536
import org.eclipse.ui.ISharedImages;
@@ -38,9 +39,7 @@
3839

3940
class ResultLabelProvider extends LabelProvider implements IStyledLabelProvider, IPropertyChangeListener {
4041

41-
/**
42-
*
43-
*/
42+
private static final String ECLIPSE_SEARCH_UI_MATCH_HIGHLIGHT = "org.eclipse.search.ui.match.highlight";
4443
private static final String HIGHLIGHT_COLOR_NAME = "it.unibz.instasearch.ui.HighlightColor";
4544
private static final String IMG_OBJ_TEXT_SEARCH_LINE = "org.eclipse.search.ui.line_match";
4645
private static final String MORE_RESULTS_LABEL = "More...";
@@ -58,7 +57,9 @@ class ResultLabelProvider extends LabelProvider implements IStyledLabelProvider,
5857
private boolean showFullPath;
5958

6059
public ResultLabelProvider(ResultContentProvider contentProvider) {
61-
JFaceResources.getColorRegistry().put(HIGHLIGHT_COLOR_NAME, new RGB(206, 204, 247));
60+
Color searchColor = JFaceResources.getColorRegistry().get(ECLIPSE_SEARCH_UI_MATCH_HIGHLIGHT);
61+
62+
JFaceResources.getColorRegistry().put(HIGHLIGHT_COLOR_NAME, (searchColor!=null?searchColor.getRGB():new RGB(206, 204, 247)));
6263

6364
this.labelProvider = new WorkbenchLabelProvider();
6465
this.highlightStyle = StyledString.createColorRegistryStyler(null, HIGHLIGHT_COLOR_NAME);

0 commit comments

Comments
 (0)