Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Intellij Community
Commits
84302b0c
Commit
84302b0c
authored
6 years ago
by
Nadya Zabrodina
1
Browse files
Options
Download
Email Patches
Plain Diff
shelf: use speed search with expand nodes mode
parent
d881375c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
platform/vcs-impl/src/com/intellij/openapi/vcs/changes/shelf/ShelvedChangesViewManager.java
+1
-1
.../openapi/vcs/changes/shelf/ShelvedChangesViewManager.java
platform/vcs-impl/src/com/intellij/openapi/vcs/changes/ui/ChangesTree.java
+6
-4
.../src/com/intellij/openapi/vcs/changes/ui/ChangesTree.java
with
7 additions
and
5 deletions
+7
-5
platform/vcs-impl/src/com/intellij/openapi/vcs/changes/shelf/ShelvedChangesViewManager.java
+
1
-
1
View file @
84302b0c
...
...
@@ -337,7 +337,7 @@ public class ShelvedChangesViewManager implements Disposable {
private
class
ShelfTree
extends
ChangesTree
{
private
ShelfTree
(
@NotNull
Project
project
)
{
super
(
project
,
false
,
false
);
super
(
project
,
false
,
false
,
true
);
setKeepTreeState
(
true
);
}
...
...
This diff is collapsed.
Click to expand it.
platform/vcs-impl/src/com/intellij/openapi/vcs/changes/ui/ChangesTree.java
+
6
-
4
View file @
84302b0c
...
...
@@ -90,9 +90,11 @@ public abstract class ChangesTree extends Tree implements DataProvider {
private
boolean
myModelUpdateInProgress
;
public
ChangesTree
(
@NotNull
Project
project
,
boolean
showCheckboxes
,
boolean
highlightProblems
)
{
public
ChangesTree
(
@NotNull
Project
project
,
boolean
showCheckboxes
,
boolean
highlightProblems
)
{
this
(
project
,
showCheckboxes
,
highlightProblems
,
false
);
}
protected
ChangesTree
(
@NotNull
Project
project
,
boolean
showCheckboxes
,
boolean
highlightProblems
,
boolean
expandInSpeedSearch
)
{
super
(
ChangesBrowserNode
.
createRoot
());
myProject
=
project
;
myShowCheckboxes
=
showCheckboxes
;
...
...
@@ -101,7 +103,7 @@ public abstract class ChangesTree extends Tree implements DataProvider {
setRootVisible
(
false
);
setShowsRootHandles
(
true
);
setOpaque
(
false
);
new
TreeSpeedSearch
(
this
,
ChangesBrowserNode
.
TO_TEXT_CONVERTER
);
new
TreeSpeedSearch
(
this
,
ChangesBrowserNode
.
TO_TEXT_CONVERTER
,
expandInSpeedSearch
);
final
ChangesBrowserNodeRenderer
nodeRenderer
=
new
ChangesBrowserNodeRenderer
(
myProject
,
this
::
isShowFlatten
,
highlightProblems
);
setCellRenderer
(
new
MyTreeCellRenderer
(
nodeRenderer
));
...
...
This diff is collapsed.
Click to expand it.
小 白蛋
@baidan
mentioned in commit
764571ce
·
2 years ago
mentioned in commit
764571ce
mentioned in commit 764571ce589fe7a21c5db317fe53fb7b820b8558
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment