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

Commit

Permalink
Merge pull request #80 from derbylock/master
Browse files Browse the repository at this point in the history
Fixed Bug: update index progress blocks (maven) builds
  • Loading branch information
ajermakovics authored Sep 7, 2016
2 parents 358bf3f + e5fc267 commit 464f252
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ public CheckUpdatesJob()
{
super("InstaSearch Update Check");

setPriority(DECORATE);

setProperty(IProgressConstants.ICON_PROPERTY,
InstaSearchPlugin.getImageDescriptor("update"));

Expand Down
2 changes: 2 additions & 0 deletions instasearch/src/it/unibz/instasearch/jobs/DeleteIndexJob.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ public DeleteIndexJob(WorkspaceIndexer indexer)
this.indexer = indexer;
setRule(indexer);

setPriority(DECORATE);

setProperty(IProgressConstants.NO_IMMEDIATE_ERROR_PROMPT_PROPERTY, Boolean.TRUE);
setProperty(IProgressConstants.ICON_PROPERTY,
InstaSearchPlugin.getImageDescriptor("delete"));
Expand Down
2 changes: 2 additions & 0 deletions instasearch/src/it/unibz/instasearch/jobs/IndexUpdateJob.java
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ public IndexUpdateJob(WorkspaceIndexer indexer, IndexChangeListener indexChangeL

setRule(indexer);

setPriority(DECORATE);

setProperty(IProgressConstants.ICON_PROPERTY, InstaSearchPlugin.getImageDescriptor("syncdb"));
setProperty(IProgressConstants.NO_IMMEDIATE_ERROR_PROMPT_PROPERTY, Boolean.TRUE);
}
Expand Down
2 changes: 2 additions & 0 deletions instasearch/src/it/unibz/instasearch/jobs/IndexingJob.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ public IndexingJob(WorkspaceIndexer indexer) {

setRule(indexer);

setPriority(DECORATE);

setProperty(IProgressConstants.ICON_PROPERTY, InstaSearchPlugin.getImageDescriptor("binary"));
setProperty(IProgressConstants.NO_IMMEDIATE_ERROR_PROMPT_PROPERTY, Boolean.TRUE);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ public UpdatePluginJob()
{
super("InstaSearch Update");

setPriority(DECORATE);

setProperty(IProgressConstants.ICON_PROPERTY, InstaSearchPlugin.getImageDescriptor("update"));
setProperty(IProgressConstants.NO_IMMEDIATE_ERROR_PROMPT_PROPERTY, Boolean.TRUE);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
import org.eclipse.jface.viewers.StyledString;
import org.eclipse.jface.viewers.StyledString.Styler;
import org.eclipse.search.ui.text.Match;
import org.eclipse.swt.graphics.Color;
import org.eclipse.swt.graphics.Image;
import org.eclipse.swt.graphics.RGB;
import org.eclipse.ui.ISharedImages;
Expand All @@ -38,9 +39,7 @@

class ResultLabelProvider extends LabelProvider implements IStyledLabelProvider, IPropertyChangeListener {

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

public ResultLabelProvider(ResultContentProvider contentProvider) {
JFaceResources.getColorRegistry().put(HIGHLIGHT_COLOR_NAME, new RGB(206, 204, 247));
Color searchColor = JFaceResources.getColorRegistry().get(ECLIPSE_SEARCH_UI_MATCH_HIGHLIGHT);

JFaceResources.getColorRegistry().put(HIGHLIGHT_COLOR_NAME, (searchColor!=null?searchColor.getRGB():new RGB(206, 204, 247)));

this.labelProvider = new WorkbenchLabelProvider();
this.highlightStyle = StyledString.createColorRegistryStyler(null, HIGHLIGHT_COLOR_NAME);
Expand Down

0 comments on commit 464f252

Please sign in to comment.