本文整理汇总了Java中org.eclipse.team.internal.core.TeamPlugin类的典型用法代码示例。如果您正苦于以下问题:Java TeamPlugin类的具体用法?Java TeamPlugin怎么用?Java TeamPlugin使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
TeamPlugin类属于org.eclipse.team.internal.core包,在下文中一共展示了TeamPlugin类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: endDispatch
import org.eclipse.team.internal.core.TeamPlugin; //导入依赖的package包/类
private void endDispatch(ResourceDiffTree[] locked, IProgressMonitor monitor) {
if (locked == null) {
// The begin failed so there's nothing to unlock
return;
}
monitor.beginTask(null, 100 * locked.length);
for (int i = 0; i < locked.length; i++) {
ResourceDiffTree tree = locked[i];
try {
tree.endInput(Policy.subMonitorFor(monitor, 100));
} catch (RuntimeException e) {
// Don't worry about ending every set if an error occurs.
// Instead, log the error and suggest a restart.
TeamPlugin.log(IStatus.ERROR, Messages.SubscriberChangeSetCollector_0, e);
throw e;
}
}
monitor.done();
}
示例2: getTeamPreferences
import org.eclipse.team.internal.core.TeamPlugin; //导入依赖的package包/类
private static Preferences getTeamPreferences() {
return new InstanceScope().getNode(TeamPlugin.getPlugin().getBundle().getSymbolicName());
}