本文整理汇总了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();
}
示例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);
}
示例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);
}
示例4: getSelectionMode
import org.intellij.lang.annotations.JdkConstants; //导入方法依赖的package包/类
@JdkConstants.TreeSelectionMode
protected int getSelectionMode() {
return TreeSelectionModel.SINGLE_TREE_SELECTION;
}