mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fixed PY-13563 New Project: cant create project with keyboard
This commit is contained in:
+19
-7
@@ -51,6 +51,7 @@ import javax.swing.event.DocumentEvent;
|
||||
import java.awt.*;
|
||||
import java.awt.event.ActionEvent;
|
||||
import java.awt.event.ActionListener;
|
||||
import java.awt.event.FocusEvent;
|
||||
import java.awt.event.MouseEvent;
|
||||
import java.beans.PropertyChangeEvent;
|
||||
import java.beans.PropertyChangeListener;
|
||||
@@ -64,7 +65,7 @@ abstract public class AbstractProjectSettingsStep extends AbstractActionWithPane
|
||||
private boolean myInstallFramework;
|
||||
private TextFieldWithBrowseButton myLocationField;
|
||||
protected final File myProjectDirectory;
|
||||
private ActionButtonWithText myCreateButton;
|
||||
private Button myCreateButton;
|
||||
private JLabel myErrorLabel;
|
||||
private AnAction myCreateAction;
|
||||
private Sdk mySdk;
|
||||
@@ -131,7 +132,6 @@ abstract public class AbstractProjectSettingsStep extends AbstractActionWithPane
|
||||
final JPanel bottomPanel = new JPanel(new BorderLayout());
|
||||
|
||||
|
||||
myCreateButton.setPreferredSize(new Dimension(mainPanel.getPreferredSize().width, 40));
|
||||
bottomPanel.add(myErrorLabel, BorderLayout.NORTH);
|
||||
bottomPanel.add(myCreateButton, BorderLayout.EAST);
|
||||
mainPanel.add(bottomPanel, BorderLayout.SOUTH);
|
||||
@@ -398,6 +398,23 @@ abstract public class AbstractProjectSettingsStep extends AbstractActionWithPane
|
||||
return 8;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isFocusable() {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void processFocusEvent(FocusEvent e) {
|
||||
super.processFocusEvent(e);
|
||||
if (e.getID() == FocusEvent.FOCUS_GAINED) {
|
||||
processMouseEvent(new MouseEvent(this, MouseEvent.MOUSE_ENTERED, System.currentTimeMillis(), 0, 0, 0, 0, false));
|
||||
|
||||
}
|
||||
else if (e.getID() == FocusEvent.FOCUS_LOST) {
|
||||
processMouseEvent(new MouseEvent(this, MouseEvent.MOUSE_EXITED, System.currentTimeMillis(), 0, 0, 0, 0, false));
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public Insets getInsets() {
|
||||
return new Insets(5,10,5,5);
|
||||
@@ -408,11 +425,6 @@ abstract public class AbstractProjectSettingsStep extends AbstractActionWithPane
|
||||
return SwingConstants.LEFT;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getToolTipText() {
|
||||
return null;
|
||||
}
|
||||
|
||||
protected void processMouseEvent(MouseEvent e) {
|
||||
super.processMouseEvent(e);
|
||||
if (e.getID() == MouseEvent.MOUSE_ENTERED) {
|
||||
|
||||
Reference in New Issue
Block a user