本文整理汇总了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);
}
示例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);
}
示例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);
}
示例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();
}
});
}
示例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();
}
});
}
示例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();
}
});
}