当前位置: 首页>>代码示例>>Java>>正文


Java TeamException.getStatus方法代码示例

本文整理汇总了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());
	}
}
 
开发者ID:subclipse,项目名称:subclipse,代码行数:11,代码来源:SVNRepositoryLocation.java

示例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();
	}
 
开发者ID:subclipse,项目名称:subclipse,代码行数:16,代码来源:SVNUIPlugin.java

示例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();
  }
}
 
开发者ID:subclipse,项目名称:subclipse,代码行数:40,代码来源:SVNHistoryPage.java

示例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());
}
 
开发者ID:subclipse,项目名称:subclipse,代码行数:7,代码来源:SVNException.java


注:本文中的org.eclipse.team.core.TeamException.getStatus方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。