use of org.talend.designer.core.ui.editor.TalendPaletteSearchIndex in project tdi-studio-se by Talend.
the class UpdateHelpIndexJob method run.
@Override
protected IStatus run(IProgressMonitor monitor) {
LocalSearchManager localSearchManager = BaseHelpSystem.getInstance().getLocalSearchManager();
IStatus status = Status.OK_STATUS;
try {
TalendPaletteSearchIndex talendPaletteSearchIndex = TalendPaletteSearchIndex.getInstance();
if (talendPaletteSearchIndex != null) {
localSearchManager.ensureIndexUpdated(monitor, talendPaletteSearchIndex);
} else {
status = Status.CANCEL_STATUS;
}
} catch (Throwable e) {
status = Status.CANCEL_STATUS;
}
return status;
}
Aggregations