mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-89125 provide dimension keys for number of dialogs
This commit is contained in:
@@ -417,6 +417,11 @@ public class AndroidProcessChooserDialog extends DialogWrapper {
|
||||
closeOldSessionAndRun(debugPort);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected String getDimensionServiceKey() {
|
||||
return "AndroidProcessChooserDialog";
|
||||
}
|
||||
|
||||
private void closeOldSessionAndRun(final String debugPort) {
|
||||
final String configurationName = getRunConfigurationName(debugPort);
|
||||
final Collection<RunContentDescriptor> descriptors =
|
||||
|
||||
@@ -107,6 +107,11 @@ public abstract class CreateResourceDirectoryDialog extends DialogWrapper {
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
protected String getDimensionServiceKey() {
|
||||
return "AndroidCreateResourceDirectoryDialog";
|
||||
}
|
||||
|
||||
@Override
|
||||
public JComponent getPreferredFocusedComponent() {
|
||||
return myResourceTypeComboBox;
|
||||
|
||||
@@ -265,6 +265,11 @@ public class CreateResourceFileDialog extends DialogWrapper {
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
protected String getDimensionServiceKey() {
|
||||
return "AndroidCreateResourceFileDialog";
|
||||
}
|
||||
|
||||
@NotNull
|
||||
public Module getSelectedModule() {
|
||||
return (Module)myModuleCombo.getSelectedItem();
|
||||
|
||||
@@ -435,6 +435,11 @@ public class CreateXmlResourceDialog extends DialogWrapper {
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
protected String getDimensionServiceKey() {
|
||||
return "AndroidCreateXmlResourceDialog";
|
||||
}
|
||||
|
||||
@NotNull
|
||||
public String getResourceName() {
|
||||
return myNameField.getText().trim();
|
||||
|
||||
@@ -61,6 +61,11 @@ public class DeviceChooserDialog extends DialogWrapper {
|
||||
super.doOKAction();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected String getDimensionServiceKey() {
|
||||
return "AndroidDeviceChooserDialog";
|
||||
}
|
||||
|
||||
protected JComponent createCenterPanel() {
|
||||
return myDeviceChooser.getPanel();
|
||||
}
|
||||
|
||||
@@ -165,6 +165,11 @@ public class ExtendedDeviceChooserDialog extends DialogWrapper {
|
||||
super.doOKAction();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected String getDimensionServiceKey() {
|
||||
return "AndroidExtendedDeviceChooserDialog";
|
||||
}
|
||||
|
||||
protected JComponent createCenterPanel() {
|
||||
return myPanel;
|
||||
}
|
||||
|
||||
@@ -109,6 +109,11 @@ public class EditConfigurationDialog extends DialogWrapper {
|
||||
myDeviceConfiguratorPanel.applyEditors();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected String getDimensionServiceKey() {
|
||||
return "AndroidEditLayoutDeviceConfigurationDialog";
|
||||
}
|
||||
|
||||
@Override
|
||||
public JComponent getPreferredFocusedComponent() {
|
||||
if (myEditDeviceForm.getNameField().getText().length() == 0) {
|
||||
|
||||
+5
@@ -603,4 +603,9 @@ public class LayoutDeviceConfigurationsDialog extends DialogWrapper {
|
||||
protected JComponent createCenterPanel() {
|
||||
return myContentPanel;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected String getDimensionServiceKey() {
|
||||
return "AndroidLayoutDeviceConfigurationsDialog";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user