Java Code Examples for org.eclipse.core.runtime.jobs.Job#setProperty()
The following examples show how to use
org.eclipse.core.runtime.jobs.Job#setProperty() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: InstallNewSoftwareHandler.java From elexis-3-core with Eclipse Public License 1.0 | 5 votes |
protected void setLoadJobProperties(Job loadJob){ super.setLoadJobProperties(loadJob); // If we are doing a background load, we do not wish to authenticate, as the // user is unaware that loading was needed if (!waitForPreload()) { loadJob.setProperty(LoadMetadataRepositoryJob.SUPPRESS_AUTHENTICATION_JOB_MARKER, Boolean.toString(true)); loadJob.setProperty(LoadMetadataRepositoryJob.SUPPRESS_REPOSITORY_EVENTS, Boolean.toString(true)); } }
Example 2
Source File: PreloadingRepositoryHandler.java From translationstudio8 with GNU General Public License v2.0 | 4 votes |
protected void setLoadJobProperties(Job loadJob) { loadJob.setProperty(LoadMetadataRepositoryJob.ACCUMULATE_LOAD_ERRORS, Boolean.toString(true)); }
Example 3
Source File: PreloadingRepositoryHandler.java From tmxeditor8 with GNU General Public License v2.0 | 4 votes |
protected void setLoadJobProperties(Job loadJob) { loadJob.setProperty(LoadMetadataRepositoryJob.ACCUMULATE_LOAD_ERRORS, Boolean.toString(true)); }
Example 4
Source File: PreloadingRepositoryHandler.java From elexis-3-core with Eclipse Public License 1.0 | 4 votes |
protected void setLoadJobProperties(Job loadJob){ loadJob.setProperty(LoadMetadataRepositoryJob.ACCUMULATE_LOAD_ERRORS, Boolean.toString(true)); }
Example 5
Source File: PatListeContentProvider.java From elexis-3-core with Eclipse Public License 1.0 | 4 votes |
@Override public Object[] getElements(Object inputElement){ if (bValid || bUpdating) { return pats; } if (pfilter != null) { pats = new String[] { Messages.PatListeContentProvider_LoadingData }; ((TableViewer) commonViewer.getViewerWidget()).setItemCount(1); } if (!CoreHub.acl.request(AccessControlDefaults.PATIENT_DISPLAY)) { return new Object[0]; } Job job = new Job(Messages.PatListeContentProvider_LoadingPatients) { @Override protected IStatus run(IProgressMonitor monitor){ monitor.beginTask(Messages.PatListeContentProvider_LoadPatients, IProgressMonitor.UNKNOWN); if (pfilter != null) { if (pfilter.aboutToStart() == false) { return Status.CANCEL_STATUS; } } // perform actual loading syncRefresh(); monitor.done(); return Status.OK_STATUS; } }; job.setPriority(Job.SHORT); job.setUser(false); bUpdating = true; IWorkbenchSiteProgressService siteService = (IWorkbenchSiteProgressService) site.getSite().getAdapter( IWorkbenchSiteProgressService.class); siteService.schedule(job, 0, true); job.setProperty(IProgressConstants.ICON_PROPERTY, Images.IMG_AUSRUFEZ_ROT.getImage()); return pats; }