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


Java JdkConstants.TreeSelectionMode方法代码示例

本文整理汇总了Java中org.intellij.lang.annotations.JdkConstants.TreeSelectionMode方法的典型用法代码示例。如果您正苦于以下问题:Java JdkConstants.TreeSelectionMode方法的具体用法?Java JdkConstants.TreeSelectionMode怎么用?Java JdkConstants.TreeSelectionMode使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.intellij.lang.annotations.JdkConstants的用法示例。


在下文中一共展示了JdkConstants.TreeSelectionMode方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: SelectCvsElementStep

import org.intellij.lang.annotations.JdkConstants; //导入方法依赖的package包/类
public SelectCvsElementStep(String title, CvsWizard wizard,
                            Project project,
                            SelectCVSConfigurationStep selectCVSConfigurationStep,
                            boolean allowRootSelection,
                            @JdkConstants.TreeSelectionMode int selectionMode,
                            boolean showModules,
                            boolean showFiles) {
  super(title, wizard);
  myShowModules = showModules;
  mySelectCVSConfigurationStep = selectCVSConfigurationStep;
  myProject = project;
  myShowFiles = showFiles;
  mySelectionMode = selectionMode;
  myAllowRootSelection = allowRootSelection;
  init();
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:17,代码来源:SelectCvsElementStep.java

示例2: getTreeSelectionModeFromListSelectionMode

import org.intellij.lang.annotations.JdkConstants; //导入方法依赖的package包/类
@JdkConstants.TreeSelectionMode
private static int getTreeSelectionModeFromListSelectionMode(@JdkConstants.ListSelectionMode int mode) {
  switch (mode) {
    case ListSelectionModel.SINGLE_SELECTION: return TreeSelectionModel.SINGLE_TREE_SELECTION;
    case ListSelectionModel.SINGLE_INTERVAL_SELECTION: return TreeSelectionModel.CONTIGUOUS_TREE_SELECTION;
    case ListSelectionModel.MULTIPLE_INTERVAL_SELECTION: return TreeSelectionModel.DISCONTIGUOUS_TREE_SELECTION;
  }
  throw new IllegalArgumentException("Illegal selection mode: " + mode);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:10,代码来源:ChangesTreeList.java

示例3: CvsTree

import org.intellij.lang.annotations.JdkConstants; //导入方法依赖的package包/类
public CvsTree(Project project, boolean allowRootSelection, @JdkConstants.TreeSelectionMode int selectionMode,
               boolean showModules, boolean showFiles, Consumer<VcsException> errorCallback) {
  super(new BorderLayout());
  myProject = project;
  mySelectionMode = selectionMode;
  myShowModules = showModules;
  myAllowRootSelection = allowRootSelection;
  myShowFiles = showFiles;
  myErrorCallback = errorCallback;
  setSize(500, 500);
  addListener(myLoadingNodeManager);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:13,代码来源:CvsTree.java

示例4: getSelectionMode

import org.intellij.lang.annotations.JdkConstants; //导入方法依赖的package包/类
@JdkConstants.TreeSelectionMode
protected int getSelectionMode() {
  return TreeSelectionModel.SINGLE_TREE_SELECTION;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:5,代码来源:TestConsoleProperties.java


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