當前位置: 首頁>>代碼示例>>Java>>正文


Java SubProgressMonitor.PREPEND_MAIN_LABEL_TO_SUBTASK屬性代碼示例

本文整理匯總了Java中org.eclipse.core.runtime.SubProgressMonitor.PREPEND_MAIN_LABEL_TO_SUBTASK屬性的典型用法代碼示例。如果您正苦於以下問題:Java SubProgressMonitor.PREPEND_MAIN_LABEL_TO_SUBTASK屬性的具體用法?Java SubProgressMonitor.PREPEND_MAIN_LABEL_TO_SUBTASK怎麽用?Java SubProgressMonitor.PREPEND_MAIN_LABEL_TO_SUBTASK使用的例子?那麽, 這裏精選的屬性代碼示例或許可以為您提供幫助。您也可以進一步了解該屬性所在org.eclipse.core.runtime.SubProgressMonitor的用法示例。


在下文中一共展示了SubProgressMonitor.PREPEND_MAIN_LABEL_TO_SUBTASK屬性的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: subMonitorFor

/**
    * Return a submonitor for monitor 
 * @param monitor the parent progress monitor
 * @param ticks the number of work ticks allocated from the
 *    parent monitor
 * @return IProgressMonitor
    */
public static IProgressMonitor subMonitorFor(IProgressMonitor monitor, int ticks) {
	if (monitor == null)
		return new NullProgressMonitor();
	if (monitor instanceof NullProgressMonitor)
		return monitor;
	return new SubProgressMonitor(monitor, ticks, SubProgressMonitor.PREPEND_MAIN_LABEL_TO_SUBTASK);
}
 
開發者ID:subclipse,項目名稱:subclipse,代碼行數:14,代碼來源:Policy.java

示例2: infiniteSubMonitorFor

/**
 * Return a submonitor for cases when we do not know the number of ticks ...
 * The main task label will be prepended to the subtask label.
 * @param monitor the parent progress monitor
 * @param ticks the number of work ticks allocated from the
 *    parent monitor
 * @return IProgressMonitor
 */
public static IProgressMonitor infiniteSubMonitorFor(IProgressMonitor monitor, int ticks) {
	if (monitor == null)
		return new NullProgressMonitor();
	if (monitor instanceof NullProgressMonitor)
		return monitor;
	return new InfiniteSubProgressMonitor(monitor, ticks, SubProgressMonitor.PREPEND_MAIN_LABEL_TO_SUBTASK);
}
 
開發者ID:subclipse,項目名稱:subclipse,代碼行數:15,代碼來源:Policy.java

示例3: ProgressMonitorTaskMonitorAdapter

/**
 * Creates a new {@link ProgressMonitorTaskMonitorAdapter}, wrapping the
 * specified {@link IProgressMonitor}.
 *
 * @param progressMonitor
 *        an {@link IProgressMonitor} to wrap (must not be <code>null</code>
 *        )
 */
public ProgressMonitorTaskMonitorAdapter(final IProgressMonitor progressMonitor) {
    this(progressMonitor, SubProgressMonitor.PREPEND_MAIN_LABEL_TO_SUBTASK);
}
 
開發者ID:Microsoft,項目名稱:team-explorer-everywhere,代碼行數:11,代碼來源:ProgressMonitorTaskMonitorAdapter.java


注:本文中的org.eclipse.core.runtime.SubProgressMonitor.PREPEND_MAIN_LABEL_TO_SUBTASK屬性示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。