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