Search in sources :

Example 1 with TalendPaletteSearchIndex

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;
}
Also used : IStatus(org.eclipse.core.runtime.IStatus) TalendPaletteSearchIndex(org.talend.designer.core.ui.editor.TalendPaletteSearchIndex) LocalSearchManager(org.eclipse.help.internal.search.LocalSearchManager)

Aggregations

IStatus (org.eclipse.core.runtime.IStatus)1 LocalSearchManager (org.eclipse.help.internal.search.LocalSearchManager)1 TalendPaletteSearchIndex (org.talend.designer.core.ui.editor.TalendPaletteSearchIndex)1