當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。