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


Java UpdateInfoTree类代码示例

本文整理汇总了Java中com.intellij.openapi.vcs.update.UpdateInfoTree的典型用法代码示例。如果您正苦于以下问题:Java UpdateInfoTree类的具体用法?Java UpdateInfoTree怎么用?Java UpdateInfoTree使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


UpdateInfoTree类属于com.intellij.openapi.vcs.update包,在下文中一共展示了UpdateInfoTree类的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: showUpdateProjectInfo

import com.intellij.openapi.vcs.update.UpdateInfoTree; //导入依赖的package包/类
public UpdateInfoTree showUpdateProjectInfo(UpdatedFiles updatedFiles, String displayActionName, ActionInfo actionInfo, boolean canceled) {
  if (! myProject.isOpen() || myProject.isDisposed()) return null;
  ContentManager contentManager = getContentManager();
  if (contentManager == null) {
    return null;  // content manager is made null during dispose; flag is set later
  }
  final UpdateInfoTree updateInfoTree = new UpdateInfoTree(contentManager, myProject, updatedFiles, displayActionName, actionInfo);
  Content content = ContentFactory.SERVICE.getInstance().createContent(updateInfoTree, canceled ?
    VcsBundle.message("toolwindow.title.update.action.canceled.info", displayActionName) :
    VcsBundle.message("toolwindow.title.update.action.info", displayActionName), true);
  Disposer.register(content, updateInfoTree);
  ContentsUtil.addContent(contentManager, content, true);
  ToolWindowManager.getInstance(myProject).getToolWindow(ToolWindowId.VCS).activate(null);
  updateInfoTree.expandRootChildren();
  return updateInfoTree;
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:17,代码来源:ProjectLevelVcsManagerImpl.java

示例2: showUpdateProjectInfo

import com.intellij.openapi.vcs.update.UpdateInfoTree; //导入依赖的package包/类
@Override
public UpdateInfoTree showUpdateProjectInfo(UpdatedFiles updatedFiles, String displayActionName, ActionInfo actionInfo, boolean canceled) {
  if (!myProject.isOpen() || myProject.isDisposed()) return null;
  ContentManager contentManager = getContentManager();
  if (contentManager == null) {
    return null;  // content manager is made null during dispose; flag is set later
  }
  final UpdateInfoTree updateInfoTree = new UpdateInfoTree(contentManager, myProject, updatedFiles, displayActionName, actionInfo);
  ContentUtilEx.addTabbedContent(contentManager, updateInfoTree, "Update Info", DateFormatUtil.formatDateTime(System.currentTimeMillis()), true, updateInfoTree);
  ToolWindowManager.getInstance(myProject).getToolWindow(ToolWindowId.VCS).activate(null);
  updateInfoTree.expandRootChildren();
  return updateInfoTree;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:14,代码来源:ProjectLevelVcsManagerImpl.java

示例3: hyperlinkUpdate

import com.intellij.openapi.vcs.update.UpdateInfoTree; //导入依赖的package包/类
@Override
public void hyperlinkUpdate(@NotNull Notification notification, @NotNull HyperlinkEvent event) {
  if (event.getEventType().equals(HyperlinkEvent.EventType.ACTIVATED)) {
    if (event.getDescription().equals("UpdatedFiles")) {
      ProjectLevelVcsManagerEx vcsManager = ProjectLevelVcsManagerEx.getInstanceEx(myProject);
      UpdateInfoTree tree = vcsManager.showUpdateProjectInfo(myUpdatedFiles, "Update", ActionInfo.UPDATE, false);
      tree.setBefore(myBeforeUpdateLabel);
      tree.setAfter(myAfterUpdateLabel);
    }
    else {
      BrowserUtil.browse(event.getDescription());
    }
  }
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:15,代码来源:GitPushResultNotification.java

示例4: hyperlinkUpdate

import com.intellij.openapi.vcs.update.UpdateInfoTree; //导入依赖的package包/类
@Override
public void hyperlinkUpdate(@NotNull Notification notification, @NotNull HyperlinkEvent event) {
  if (event.getEventType().equals(HyperlinkEvent.EventType.ACTIVATED)) {
    if (event.getDescription().equals("UpdatedFiles")) {
      ProjectLevelVcsManagerEx vcsManager = ProjectLevelVcsManagerEx.getInstanceEx(myProject);
      UpdateInfoTree tree = vcsManager.showUpdateProjectInfo(myUpdatedFiles, "Update", ActionInfo.UPDATE, false);
      tree.setBefore(myBeforeUpdateLabel);
      tree.setAfter(LocalHistory.getInstance().putSystemLabel(myProject, "After push"));
    }
    else {
      BrowserUtil.launchBrowser(event.getDescription());
    }
  }
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:15,代码来源:GitPushResult.java

示例5: showUpdateProjectInfo

import com.intellij.openapi.vcs.update.UpdateInfoTree; //导入依赖的package包/类
@CalledInAwt
@Nullable
@Override
public UpdateInfoTree showUpdateProjectInfo(UpdatedFiles updatedFiles, String displayActionName, ActionInfo actionInfo, boolean canceled) {
  if (!myProject.isOpen() || myProject.isDisposed()) return null;
  ContentManager contentManager = getContentManager();
  if (contentManager == null) {
    return null;  // content manager is made null during dispose; flag is set later
  }
  final UpdateInfoTree updateInfoTree = new UpdateInfoTree(contentManager, myProject, updatedFiles, displayActionName, actionInfo);
  ContentUtilEx.addTabbedContent(contentManager, updateInfoTree, "Update Info", DateFormatUtil.formatDateTime(System.currentTimeMillis()), false, updateInfoTree);
  updateInfoTree.expandRootChildren();
  return updateInfoTree;
}
 
开发者ID:consulo,项目名称:consulo,代码行数:15,代码来源:ProjectLevelVcsManagerImpl.java

示例6: ViewUpdateInfoNotification

import com.intellij.openapi.vcs.update.UpdateInfoTree; //导入依赖的package包/类
public ViewUpdateInfoNotification(@Nonnull Project project, @Nonnull UpdateInfoTree updateInfoTree, @Nonnull String actionName,
                                  @Nonnull Notification notification) {
  super(actionName);
  myProject = project;
  myTree = updateInfoTree;
  Disposer.register(updateInfoTree, new Disposable() {
    @Override
    public void dispose() {
      notification.expire();
    }
  });
}
 
开发者ID:consulo,项目名称:consulo,代码行数:13,代码来源:ViewUpdateInfoNotification.java

示例7: showUpdateProjectInfo

import com.intellij.openapi.vcs.update.UpdateInfoTree; //导入依赖的package包/类
public abstract UpdateInfoTree showUpdateProjectInfo(UpdatedFiles updatedFiles,
String displayActionName,
ActionInfo actionInfo,
boolean canceled);
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:5,代码来源:ProjectLevelVcsManagerEx.java

示例8: showProjectOperationInfo

import com.intellij.openapi.vcs.update.UpdateInfoTree; //导入依赖的package包/类
@CalledInAwt
@Override
public void showProjectOperationInfo(final UpdatedFiles updatedFiles, String displayActionName) {
  UpdateInfoTree tree = showUpdateProjectInfo(updatedFiles, displayActionName, ActionInfo.STATUS, false);
  if (tree != null) ViewUpdateInfoNotification.focusUpdateInfoTree(myProject, tree);
}
 
开发者ID:consulo,项目名称:consulo,代码行数:7,代码来源:ProjectLevelVcsManagerImpl.java

示例9: focusUpdateInfoTree

import com.intellij.openapi.vcs.update.UpdateInfoTree; //导入依赖的package包/类
public static void focusUpdateInfoTree(@Nonnull Project project, @Nonnull UpdateInfoTree updateInfoTree) {
  ToolWindowManager.getInstance(project).getToolWindow(ToolWindowId.VCS).activate(() -> {
    ContentManager contentManager = ProjectLevelVcsManagerEx.getInstanceEx(project).getContentManager();
    if (contentManager != null) ContentUtilEx.selectContent(contentManager, updateInfoTree, true);
  }, true, true);
}
 
开发者ID:consulo,项目名称:consulo,代码行数:7,代码来源:ViewUpdateInfoNotification.java


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