本文整理匯總了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);
}
示例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);
}
示例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);
}