本文整理汇总了Java中org.eclipse.team.core.TeamException.getStatus方法的典型用法代码示例。如果您正苦于以下问题:Java TeamException.getStatus方法的具体用法?Java TeamException.getStatus怎么用?Java TeamException.getStatus使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.eclipse.team.core.TeamException
的用法示例。
在下文中一共展示了TeamException.getStatus方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: members
import org.eclipse.team.core.TeamException; //导入方法依赖的package包/类
public ISVNRemoteResource[] members(IProgressMonitor progress)
throws SVNException {
try {
ISVNRemoteResource[] resources =
getRootFolder().members(progress);
return resources;
} catch (TeamException e) {
throw new SVNException(e.getStatus());
}
}
示例2: stop
import org.eclipse.team.core.TeamException; //导入方法依赖的package包/类
/**
* @see Plugin#shutdown()
*/
public void stop(BundleContext ctxt) throws Exception {
super.stop(ctxt);
// TeamUI.removePropertyChangeListener(listener);
try {
if (repositoryManager != null)
repositoryManager.shutdown();
} catch (TeamException e) {
throw new CoreException(e.getStatus());
}
console.shutdown();
}
示例3: run
import org.eclipse.team.core.TeamException; //导入方法依赖的package包/类
public IStatus run(IProgressMonitor monitor) {
try {
if(remoteResource != null && !shutdown) {
if(resource == null) {
if(remoteResource == null
|| !SVNUIPlugin.getPlugin().getPreferenceStore().getBoolean(ISVNUIConstants.PREF_SHOW_TAGS_IN_REMOTE))
tagManager = null;
else
tagManager = new AliasManager(remoteResource.getUrl());
} else
tagManager = new AliasManager(resource);
SVNRevision pegRevision = remoteResource.getRevision();
SVNRevision revisionEnd = new SVNRevision.Number(0);
boolean stopOnCopy = toggleStopOnCopyAction.isChecked();
boolean includeMergedRevisions = toggleIncludeMergedRevisionsAction.isChecked();
long limit = 0;
entries = getLogEntries(monitor, remoteResource, pegRevision, SVNRevision.HEAD, revisionEnd, stopOnCopy, limit,
tagManager, includeMergedRevisions);
final SVNRevision.Number revisionId = remoteResource.getLastChangedRevision();
getSite().getShell().getDisplay().asyncExec(new Runnable() {
public void run() {
if(entries != null && tableHistoryViewer != null && !tableHistoryViewer.getTable().isDisposed()) {
// once we got the entries, we refresh the table
if(entries.length > 0) {
lastEntry = entries[ entries.length - 1];
long lastEntryNumber = lastEntry.getRevision().getNumber();
revisionStart = new SVNRevision.Number(lastEntryNumber - 1);
}
tableHistoryViewer.refresh();
selectRevision(revisionId);
}
}
});
}
return Status.OK_STATUS;
} catch(TeamException e) {
return e.getStatus();
}
}
示例4: wrapException
import org.eclipse.team.core.TeamException; //导入方法依赖的package包/类
public static SVNException wrapException(TeamException e) {
if (e instanceof SVNException)
return (SVNException)e;
else
return new SVNException(e.getStatus());
}