Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Intellij Community
Commits
2d10e9e4
Commit
2d10e9e4
authored
6 years ago
by
Vassiliy.Kudryashov
Browse files
Options
Download
Email Patches
Plain Diff
Find In Path directory field: try to use 'typed' filepath in filechooser
parent
5a775fc3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
platform/lang-impl/src/com/intellij/find/impl/FindPopupDirectoryChooser.java
+4
-1
...src/com/intellij/find/impl/FindPopupDirectoryChooser.java
with
4 additions
and
1 deletion
+4
-1
platform/lang-impl/src/com/intellij/find/impl/FindPopupDirectoryChooser.java
+
4
-
1
View file @
2d10e9e4
...
...
@@ -18,6 +18,7 @@ import com.intellij.openapi.ui.FixedSizeButton;
import
com.intellij.openapi.ui.TextFieldWithBrowseButton
;
import
com.intellij.openapi.ui.ValidationInfo
;
import
com.intellij.openapi.util.SystemInfo
;
import
com.intellij.openapi.vfs.VfsUtil
;
import
com.intellij.openapi.vfs.VirtualFile
;
import
com.intellij.openapi.wm.IdeFocusManager
;
import
com.intellij.ui.DocumentAdapter
;
...
...
@@ -31,6 +32,7 @@ import java.awt.*;
import
java.awt.event.ActionListener
;
import
java.awt.event.InputEvent
;
import
java.awt.event.KeyEvent
;
import
java.io.File
;
import
java.util.List
;
@SuppressWarnings
(
"WeakerAccess"
)
...
...
@@ -74,7 +76,8 @@ public class FindPopupDirectoryChooser extends JPanel {
FileChooserDescriptor
descriptor
=
FileChooserDescriptorFactory
.
createSingleFolderDescriptor
();
descriptor
.
setForcedToUseIdeaFileChooser
(
true
);
myFindPopupPanel
.
getCanClose
().
set
(
false
);
FileChooser
.
chooseFiles
(
descriptor
,
myProject
,
null
,
null
,
FileChooser
.
chooseFiles
(
descriptor
,
myProject
,
null
,
VfsUtil
.
findFileByIoFile
(
new
File
(
getDirectory
()),
true
),
new
FileChooser
.
FileChooserConsumer
()
{
@Override
public
void
consume
(
List
<
VirtualFile
>
files
)
{
...
...
This diff is collapsed.
Click to expand it.
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
Menu
Projects
Groups
Snippets
Help