use of org.eclipse.linuxtools.internal.cdt.libhover.LibHoverLoadJob in project linuxtools by eclipse.
the class LibhoverPlugin method start.
@Override
public void start(BundleContext context) throws Exception {
super.start(context);
plugin = this;
ResourcesPlugin.getWorkspace().addSaveParticipant(PLUGIN_ID, new ISaveParticipant() {
@Override
public void saving(ISaveContext saveContext) {
save();
}
@Override
public void rollback(ISaveContext saveContext) {
}
@Override
public void prepareToSave(ISaveContext saveContext) {
}
@Override
public void doneSaving(ISaveContext saveContext) {
}
});
IPreferenceStore ps = getPreferenceStore();
if (ps == null || !ps.getBoolean(PreferenceConstants.LAZY_LOAD)) {
Job k = new LibHoverLoadJob(LibHoverMessages.getString(LOAD_JOB_TXT));
k.schedule();
}
}
Aggregations