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


Java TreeLinkMouseListener类代码示例

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


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

示例1: ChangesListView

import com.intellij.openapi.vcs.changes.issueLinks.TreeLinkMouseListener; //导入依赖的package包/类
public ChangesListView(final Project project) {
  myProject = project;

  getModel().setRoot(ChangesBrowserNode.create(myProject, TreeModelBuilder.ROOT_NODE_VALUE));

  setShowsRootHandles(true);
  setRootVisible(false);
  setDragEnabled(true);

  new TreeSpeedSearch(this, new NodeToTextConvertor());
  SmartExpander.installOn(this);
  myCopyProvider = new ChangesBrowserNodeCopyProvider(this);
  new TreeLinkMouseListener(new ChangesBrowserNodeRenderer(myProject, false, false)).installOn(this);

  myNodeRenderer = new ChangesBrowserNodeRenderer(project, false, true);
  myShowFlattenNodeRenderer = new ChangesBrowserNodeRenderer(project, true, true);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:18,代码来源:ChangesListView.java

示例2: ChangesListView

import com.intellij.openapi.vcs.changes.issueLinks.TreeLinkMouseListener; //导入依赖的package包/类
public ChangesListView(@Nonnull Project project) {
  myProject = project;

  setModel(TreeModelBuilder.buildEmpty(project));

  setShowsRootHandles(true);
  setRootVisible(false);
  setDragEnabled(true);

  myCopyProvider = new ChangesBrowserNodeCopyProvider(this);

  ChangesBrowserNodeRenderer renderer = new ChangesBrowserNodeRenderer(project, () -> myShowFlatten, true);
  setCellRenderer(renderer);

  new TreeSpeedSearch(this, TO_TEXT_CONVERTER);
  SmartExpander.installOn(this);
  new TreeLinkMouseListener(renderer).installOn(this);
}
 
开发者ID:consulo,项目名称:consulo,代码行数:19,代码来源:ChangesListView.java

示例3: ChangesListView

import com.intellij.openapi.vcs.changes.issueLinks.TreeLinkMouseListener; //导入依赖的package包/类
public ChangesListView(final Project project) {
  myProject = project;

  getModel().setRoot(ChangesBrowserNode.create(myProject, TreeModelBuilder.ROOT_NODE_VALUE));

  setShowsRootHandles(true);
  setRootVisible(false);

  new TreeSpeedSearch(this, new NodeToTextConvertor());
  SmartExpander.installOn(this);
  myCopyProvider = new TreeCopyProvider(this);
  new TreeLinkMouseListener(new ChangesBrowserNodeRenderer(myProject, false, false)).installOn(this);
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:14,代码来源:ChangesListView.java

示例4: CommittedChangesTreeBrowser

import com.intellij.openapi.vcs.changes.issueLinks.TreeLinkMouseListener; //导入依赖的package包/类
public CommittedChangesTreeBrowser(final Project project, final List<CommittedChangeList> changeLists) {
  super(new BorderLayout());

  myProject = project;
  myDecorators = new LinkedList<CommittedChangeListDecorator>();
  myChangeLists = changeLists;
  myChangesTree = new ChangesBrowserTree();
  myChangesTree.setRootVisible(false);
  myChangesTree.setShowsRootHandles(true);
  myChangesTree.setCellRenderer(new CommittedChangeListRenderer(project, myDecorators));
  TreeUtil.expandAll(myChangesTree);
  myChangesTree.getExpandableItemsHandler().setEnabled(false);

  myDetailsView = new RepositoryChangesBrowser(project, Collections.<CommittedChangeList>emptyList());
  myDetailsView.getViewer().setScrollPaneBorder(RIGHT_BORDER);

  myChangesTree.getSelectionModel().addTreeSelectionListener(new TreeSelectionListener() {
    public void valueChanged(TreeSelectionEvent e) {
      updateBySelectionChange();
    }
  });

  final TreeLinkMouseListener linkMouseListener = new TreeLinkMouseListener(new CommittedChangeListRenderer(project, myDecorators));
  linkMouseListener.installOn(myChangesTree);

  myLeftPanel = new JPanel(new BorderLayout());

  initSplitters();

  updateBySelectionChange();

  Keymap keymap = KeymapManager.getInstance().getActiveKeymap();
  CustomShortcutSet quickdocShortcuts = new CustomShortcutSet(keymap.getShortcuts(IdeActions.ACTION_QUICK_JAVADOC));
  EmptyAction.registerWithShortcutSet("CommittedChanges.Details", quickdocShortcuts, this);

  myCopyProvider = new TreeCopyProvider(myChangesTree);
  myTreeExpander = new DefaultTreeExpander(myChangesTree);
  myDetailsView.addToolbarAction(ActionManager.getInstance().getAction("Vcs.ShowTabbedFileHistory"));

  myHelpId = ourHelpId;

  myDetailsView.getDiffAction().registerCustomShortcutSet(myDetailsView.getDiffAction().getShortcutSet(), myChangesTree);

  myConnection = myProject.getMessageBus().connect();
  myConnection.subscribe(ITEMS_RELOADED, new CommittedChangesReloadListener() {
    public void itemsReloaded() {
    }
    public void emptyRefresh() {
      updateGrouping();
    }
  });
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:53,代码来源:CommittedChangesTreeBrowser.java

示例5: CommittedChangesTreeBrowser

import com.intellij.openapi.vcs.changes.issueLinks.TreeLinkMouseListener; //导入依赖的package包/类
public CommittedChangesTreeBrowser(final Project project, final List<CommittedChangeList> changeLists) {
  super(new BorderLayout());

  myProject = project;
  myDecorators = new LinkedList<CommittedChangeListDecorator>();
  myChangeLists = changeLists;
  myChangesTree = new ChangesBrowserTree();
  myChangesTree.setRootVisible(false);
  myChangesTree.setShowsRootHandles(true);
  myChangesTree.setCellRenderer(new CommittedChangeListRenderer(project, myDecorators));
  TreeUtil.expandAll(myChangesTree);
  myChangesTree.getExpandableItemsHandler().setEnabled(false);

  myDetailsView = new RepositoryChangesBrowser(project, Collections.<CommittedChangeList>emptyList());
  myDetailsView.getViewer().setScrollPaneBorder(RIGHT_BORDER);

  myChangesTree.getSelectionModel().addTreeSelectionListener(new TreeSelectionListener() {
    public void valueChanged(TreeSelectionEvent e) {
      updateBySelectionChange();
    }
  });

  final TreeLinkMouseListener linkMouseListener = new TreeLinkMouseListener(new CommittedChangeListRenderer(project, myDecorators));
  linkMouseListener.installOn(myChangesTree);

  myLeftPanel = new JPanel(new BorderLayout());

  initSplitters();

  updateBySelectionChange();

  ActionManager.getInstance().getAction("CommittedChanges.Details").registerCustomShortcutSet(
    new CustomShortcutSet(KeymapManager.getInstance().getActiveKeymap().getShortcuts(IdeActions.ACTION_QUICK_JAVADOC)),
    this);

  myCopyProvider = new TreeCopyProvider(myChangesTree);
  myTreeExpander = new DefaultTreeExpander(myChangesTree);
  myDetailsView.addToolbarAction(ActionManager.getInstance().getAction("Vcs.ShowTabbedFileHistory"));

  myHelpId = ourHelpId;

  myDetailsView.getDiffAction().registerCustomShortcutSet(CommonShortcuts.getDiff(), myChangesTree);

  myConnection = myProject.getMessageBus().connect();
  myConnection.subscribe(ITEMS_RELOADED, new CommittedChangesReloadListener() {
    public void itemsReloaded() {
    }
    public void emptyRefresh() {
      updateGrouping();
    }
  });
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:53,代码来源:CommittedChangesTreeBrowser.java

示例6: CommittedChangesTreeBrowser

import com.intellij.openapi.vcs.changes.issueLinks.TreeLinkMouseListener; //导入依赖的package包/类
public CommittedChangesTreeBrowser(final Project project, final List<CommittedChangeList> changeLists) {
  super(new BorderLayout());

  myProject = project;
  myDecorators = new LinkedList<CommittedChangeListDecorator>();
  myChangeLists = changeLists;
  myChangesTree = new ChangesBrowserTree();
  myChangesTree.setRootVisible(false);
  myChangesTree.setShowsRootHandles(true);
  myChangesTree.setCellRenderer(new CommittedChangeListRenderer(project, myDecorators));
  TreeUtil.expandAll(myChangesTree);
  myChangesTree.getExpandableItemsHandler().setEnabled(false);

  myDetailsView = new RepositoryChangesBrowser(project, Collections.<CommittedChangeList>emptyList());
  myDetailsView.getViewer().setScrollPaneBorder(RIGHT_BORDER);

  myChangesTree.getSelectionModel().addTreeSelectionListener(new TreeSelectionListener() {
    public void valueChanged(TreeSelectionEvent e) {
      updateBySelectionChange();
    }
  });

  final TreeLinkMouseListener linkMouseListener = new TreeLinkMouseListener(new CommittedChangeListRenderer(project, myDecorators));
  linkMouseListener.installOn(myChangesTree);

  myLeftPanel = new JPanel(new BorderLayout());

  initSplitters();

  updateBySelectionChange();

  ActionManager.getInstance().getAction("CommittedChanges.Details")
          .registerCustomShortcutSet(new CustomShortcutSet(KeymapManager.getInstance().getActiveKeymap().getShortcuts(IdeActions.ACTION_QUICK_JAVADOC)),
                                     this);

  myCopyProvider = new TreeCopyProvider(myChangesTree);
  myTreeExpander = new DefaultTreeExpander(myChangesTree);
  myDetailsView.addToolbarAction(ActionManager.getInstance().getAction("Vcs.ShowTabbedFileHistory"));

  myHelpId = ourHelpId;

  myDetailsView.getDiffAction().registerCustomShortcutSet(CommonShortcuts.getDiff(), myChangesTree);

  myConnection = myProject.getMessageBus().connect();
  myConnection.subscribe(ITEMS_RELOADED, new CommittedChangesReloadListener() {
    public void itemsReloaded() {
    }

    public void emptyRefresh() {
      updateGrouping();
    }
  });
}
 
开发者ID:consulo,项目名称:consulo,代码行数:54,代码来源:CommittedChangesTreeBrowser.java


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