Java Code Examples for org.eclipse.jface.action.IStatusLineManager#getProgressMonitor()

The following examples show how to use org.eclipse.jface.action.IStatusLineManager#getProgressMonitor() . 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: ImageViewerEditor.java    From eclipse-extras with Eclipse Public License 1.0 5 votes vote down vote up
private IProgressMonitor getProgressMonitor() {
  IProgressMonitor monitor = null;
  IStatusLineManager manager = getEditorSite().getActionBars().getStatusLineManager();
  if( manager != null ) {
    monitor = manager.getProgressMonitor();
  }
  return monitor != null ? monitor : new NullProgressMonitor();
}
 
Example 2
Source File: XLIFFEditorImplWithNatTable.java    From translationstudio8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * 返回与此编辑器相关的进度监视器。
 * @return 与此编辑器相关的进度监视器
 */
protected IProgressMonitor getProgressMonitor() {
	IProgressMonitor pm = null;
	IStatusLineManager manager = getStatusLineManager();
	if (manager != null)
		pm = manager.getProgressMonitor();
	return pm != null ? pm : new NullProgressMonitor();
}
 
Example 3
Source File: XLIFFEditorImplWithNatTable.java    From tmxeditor8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * 返回与此编辑器相关的进度监视器。
 * @return 与此编辑器相关的进度监视器
 */
protected IProgressMonitor getProgressMonitor() {
	IProgressMonitor pm = null;
	IStatusLineManager manager = getStatusLineManager();
	if (manager != null)
		pm = manager.getProgressMonitor();
	return pm != null ? pm : new NullProgressMonitor();
}
 
Example 4
Source File: WebBrowserView.java    From APICloud-Studio with GNU General Public License v3.0 4 votes vote down vote up
private IProgressMonitor getStatusBarProgressMonitor() {
	IStatusLineManager statusLineManager = getViewSite().getActionBars().getStatusLineManager();
	return statusLineManager.getProgressMonitor();
}
 
Example 5
Source File: WebBrowserEditor.java    From APICloud-Studio with GNU General Public License v3.0 4 votes vote down vote up
private IProgressMonitor getStatusBarProgressMonitor() {
	IStatusLineManager statusLineManager = getEditorSite().getActionBars().getStatusLineManager();
	return statusLineManager.getProgressMonitor();
}