mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-143470 Open File dialog: unnecessary dot in the end of the phrase
This commit is contained in:
+3
-4
@@ -31,7 +31,6 @@ import com.intellij.openapi.fileChooser.impl.FileChooserUtil;
|
||||
import com.intellij.openapi.project.DumbModePermission;
|
||||
import com.intellij.openapi.project.DumbService;
|
||||
import com.intellij.openapi.project.Project;
|
||||
import com.intellij.openapi.project.ProjectManager;
|
||||
import com.intellij.openapi.ui.DialogWrapper;
|
||||
import com.intellij.openapi.ui.Messages;
|
||||
import com.intellij.openapi.ui.popup.JBPopupFactory;
|
||||
@@ -78,6 +77,8 @@ import java.util.Map;
|
||||
public class FileChooserDialogImpl extends DialogWrapper implements FileChooserDialog, PathChooserDialog, FileLookup {
|
||||
@NonNls public static final String FILE_CHOOSER_SHOW_PATH_PROPERTY = "FileChooser.ShowPath";
|
||||
public static final String RECENT_FILES_KEY = "file.chooser.recent.files";
|
||||
public static final String DRAG_N_DROP_HINT =
|
||||
"<html><center><small><font color=gray>Drag and drop a file into the space above to quickly locate it in the tree</font></small></center></html>";
|
||||
private final FileChooserDescriptor myChooserDescriptor;
|
||||
protected FileSystemTreeImpl myFileSystemTree;
|
||||
private Project myProject;
|
||||
@@ -357,9 +358,7 @@ public class FileChooserDialogImpl extends DialogWrapper implements FileChooserD
|
||||
panel.setPreferredSize(JBUI.size(400));
|
||||
|
||||
|
||||
panel.add(new JLabel(
|
||||
"<html><center><small><font color=gray>Drag and drop a file into the space above to quickly locate it in the tree.</font></small></center></html>",
|
||||
SwingConstants.CENTER), BorderLayout.SOUTH);
|
||||
panel.add(new JLabel(DRAG_N_DROP_HINT, SwingConstants.CENTER), BorderLayout.SOUTH);
|
||||
|
||||
|
||||
ApplicationManager.getApplication().getMessageBus().connect(getDisposable())
|
||||
|
||||
+2
-3
@@ -25,6 +25,7 @@ import com.intellij.openapi.application.ApplicationManager;
|
||||
import com.intellij.openapi.fileChooser.FileChooserDescriptor;
|
||||
import com.intellij.openapi.fileChooser.FileSystemTree;
|
||||
import com.intellij.openapi.fileChooser.FileSystemTreeFactory;
|
||||
import com.intellij.openapi.fileChooser.ex.FileChooserDialogImpl;
|
||||
import com.intellij.openapi.fileChooser.ex.FileDrop;
|
||||
import com.intellij.openapi.fileChooser.ex.FileTextFieldImpl;
|
||||
import com.intellij.openapi.fileChooser.ex.LocalFsFinder;
|
||||
@@ -141,9 +142,7 @@ public abstract class SelectLocationStep extends WizardStep {
|
||||
myNorthPanel.add(toolbarPanel, BorderLayout.NORTH);
|
||||
panel.add(myNorthPanel, BorderLayout.NORTH);
|
||||
panel.add(ScrollPaneFactory.createScrollPane(myFileSystemTree.getTree()), BorderLayout.CENTER);
|
||||
panel.add(new JLabel(
|
||||
"<html><center><small><font color=gray>Drag and drop a file into the space above to quickly locate it in the tree.</font></small></center></html>",
|
||||
SwingConstants.CENTER), BorderLayout.SOUTH);
|
||||
panel.add(new JLabel(FileChooserDialogImpl.DRAG_N_DROP_HINT, SwingConstants.CENTER), BorderLayout.SOUTH);
|
||||
myUiUpdater = new MergingUpdateQueue("FileChooserUpdater", 200, false, panel);
|
||||
Disposer.register(myFileSystemTree, myUiUpdater);
|
||||
new UiNotifyConnector(panel, myUiUpdater);
|
||||
|
||||
Reference in New Issue
Block a user