當前位置: 首頁>>代碼示例>>Java>>正文


Java VcsContentAnnotationSettings類代碼示例

本文整理匯總了Java中com.intellij.openapi.vcs.contentAnnotation.VcsContentAnnotationSettings的典型用法代碼示例。如果您正苦於以下問題:Java VcsContentAnnotationSettings類的具體用法?Java VcsContentAnnotationSettings怎麽用?Java VcsContentAnnotationSettings使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


VcsContentAnnotationSettings類屬於com.intellij.openapi.vcs.contentAnnotation包,在下文中一共展示了VcsContentAnnotationSettings類的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: isModified

import com.intellij.openapi.vcs.contentAnnotation.VcsContentAnnotationSettings; //導入依賴的package包/類
@Override
public boolean isModified() {
  VcsContentAnnotationSettings settings = VcsContentAnnotationSettings.getInstance(myProject);
  if (myHighlightRecentlyChanged.isSelected() != settings.isShow()) return true;
  if (! Comparing.equal(myHighlightInterval.getValue(), settings.getLimitDays())) return true;
  return false;
}
 
開發者ID:jskierbi,項目名稱:intellij-ce-playground,代碼行數:8,代碼來源:VcsContentAnnotationConfigurable.java

示例2: reset

import com.intellij.openapi.vcs.contentAnnotation.VcsContentAnnotationSettings; //導入依賴的package包/類
@Override
public void reset() {
  VcsContentAnnotationSettings settings = VcsContentAnnotationSettings.getInstance(myProject);
  myHighlightRecentlyChanged.setSelected(settings.isShow());
  myHighlightInterval.setValue(settings.getLimitDays());
  myHighlightInterval.setEnabled(myHighlightRecentlyChanged.isSelected());
}
 
開發者ID:jskierbi,項目名稱:intellij-ce-playground,代碼行數:8,代碼來源:VcsContentAnnotationConfigurable.java

示例3: getOptions

import com.intellij.openapi.vcs.contentAnnotation.VcsContentAnnotationSettings; //導入依賴的package包/類
@NotNull
@Override
public Collection<BooleanOptionDescription> getOptions(@Nullable Project project) {
  if (project == null || ProjectLevelVcsManager.getInstance(project).getAllVcss().length == 0) {
    return Collections.emptyList();
  }
  VcsConfiguration vcs = VcsConfiguration.getInstance(project);
  if (vcs == null) {
    return Collections.emptyList();
  }
  ArrayList<BooleanOptionDescription> options = new ArrayList<BooleanOptionDescription>();

  String id = "project.propVCSSupport.Mappings"; // process Version Control settings
  options.add(option(vcs, id, "Limit history by " + vcs.MAXIMUM_HISTORY_ROWS + " rows", "LIMIT_HISTORY"));
  options.add(option(vcs, id, "Show directories with changed descendants", "SHOW_DIRTY_RECURSIVELY"));
  options.add(option(vcs, id, "Store on shelf base revision texts for files under DVCS", "INCLUDE_TEXT_INTO_SHELF"));
  VcsContentAnnotationSettings vcsCA = VcsContentAnnotationSettings.getInstance(project);
  if (vcsCA != null) {
    options.add(option(vcsCA, id, "Show changed in last " + vcsCA.getLimitDays() + " days", "isShow", "setShow"));
  }
  options.add(option(vcs, id, "Notify about VCS root errors", "SHOW_VCS_ERROR_NOTIFICATIONS"));
  options.add(option(vcs, id, "Commit message right margin " + vcs.COMMIT_MESSAGE_MARGIN_SIZE + " columns", "USE_COMMIT_MESSAGE_MARGIN"));
  options.add(option(vcs, id, ApplicationBundle.message("checkbox.wrap.typing.on.right.margin"), "WRAP_WHEN_TYPING_REACHES_RIGHT_MARGIN"));

  id = "project.propVCSSupport.Confirmation"; // process Version Control / Confirmation settings
  ReadonlyStatusHandler vcsROSH = ReadonlyStatusHandler.getInstance(project);
  if (vcsROSH instanceof ReadonlyStatusHandlerImpl) {
    options.add(option(((ReadonlyStatusHandlerImpl)vcsROSH).getState(), id, "Show \"Clear Read-only Status\" Dialog", "SHOW_DIALOG"));
  }
  options.add(option(vcs, id, "Confirmation: Suggest to move uncommitted changes to another changelist", "OFFER_MOVE_TO_ANOTHER_CHANGELIST_ON_PARTIAL_COMMIT"));
  options.add(option(vcs, id, "Confirmation: Force non-empty checkin comments", "FORCE_NON_EMPTY_COMMENT"));
  options.add(option(vcs, id, "Confirmation: Clear initial commit message", "CLEAR_INITIAL_COMMIT_MESSAGE"));

  id = "project.propVCSSupport.Background"; // process Version Control / Background settings
  options.add(option(vcs, id, "Perform in background: update from VCS", "PERFORM_UPDATE_IN_BACKGROUND"));
  options.add(option(vcs, id, "Perform in background: commit to VCS", "PERFORM_COMMIT_IN_BACKGROUND"));
  options.add(option(vcs, id, "Perform in background: checkout from VCS", "PERFORM_CHECKOUT_IN_BACKGROUND"));
  options.add(option(vcs, id, "Perform in background: Edit/Checkout", "PERFORM_EDIT_IN_BACKGROUND"));
  options.add(option(vcs, id, "Perform in background: Add/Remove", "PERFORM_ADD_REMOVE_IN_BACKGROUND"));
  options.add(option(vcs, id, "Perform in background: revert", "PERFORM_ROLLBACK_IN_BACKGROUND"));

  if (!project.isDefault()) {
    // process Version Control / Changelist Conflicts settings
    options.add(tracker(project, "Changelists: Enable changelist conflict tracking", "TRACKING_ENABLED"));
    options.add(tracker(project, "Changelists: Show conflict resolving dialog", "SHOW_DIALOG"));
    options.add(tracker(project, "Changelists: Highlight files with conflicts", "HIGHLIGHT_CONFLICTS"));
    options.add(tracker(project, "Changelists: Highlight files from non-active changelists", "HIGHLIGHT_NON_ACTIVE_CHANGELIST"));
  }
  return Collections.unmodifiableCollection(options);
}
 
開發者ID:jskierbi,項目名稱:intellij-ce-playground,代碼行數:51,代碼來源:VcsOptionsTopHitProvider.java

示例4: createSpinnerModel

import com.intellij.openapi.vcs.contentAnnotation.VcsContentAnnotationSettings; //導入依賴的package包/類
protected SpinnerNumberModel createSpinnerModel() {
  return new SpinnerNumberModel(1, 1, VcsContentAnnotationSettings.ourMaxDays, 1);
}
 
開發者ID:jskierbi,項目名稱:intellij-ce-playground,代碼行數:4,代碼來源:VcsContentAnnotationConfigurable.java

示例5: apply

import com.intellij.openapi.vcs.contentAnnotation.VcsContentAnnotationSettings; //導入依賴的package包/類
@Override
public void apply() throws ConfigurationException {
  VcsContentAnnotationSettings settings = VcsContentAnnotationSettings.getInstance(myProject);
  settings.setShow(myHighlightRecentlyChanged.isSelected());
  settings.setLimit(((Number)myHighlightInterval.getValue()).intValue());
}
 
開發者ID:jskierbi,項目名稱:intellij-ce-playground,代碼行數:7,代碼來源:VcsContentAnnotationConfigurable.java


注:本文中的com.intellij.openapi.vcs.contentAnnotation.VcsContentAnnotationSettings類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。