mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fix alignment of "include provided" in App run configuration IDEA-107048
This commit is contained in:
+3
-2
@@ -72,12 +72,13 @@
|
||||
<text resource-bundle="messages/ExecutionBundle" key="application.configuration.shorten.command.line.label"/>
|
||||
</properties>
|
||||
</component>
|
||||
<component id="241cb" class="com.intellij.ui.components.JBCheckBox" binding="myIncludeProvidedDeps">
|
||||
<component id="241cb" class="com.intellij.openapi.ui.LabeledComponent" binding="myIncludeProvidedDeps">
|
||||
<constraints>
|
||||
<grid row="4" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="3" anchor="8" fill="0" indent="0" use-parent-layout="false"/>
|
||||
</constraints>
|
||||
<properties>
|
||||
<text resource-bundle="messages/ExecutionBundle" key="application.configuration.include.provided.scope"/>
|
||||
<labelLocation value="West"/>
|
||||
<text value=""/>
|
||||
</properties>
|
||||
</component>
|
||||
</children>
|
||||
|
||||
+5
-4
@@ -51,7 +51,7 @@ public class ApplicationConfigurable extends SettingsEditor<ApplicationConfigura
|
||||
private final ConfigurationModuleSelector myModuleSelector;
|
||||
private JrePathEditor myJrePathEditor;
|
||||
private JCheckBox myShowSwingInspectorCheckbox;
|
||||
private JBCheckBox myIncludeProvidedDeps;
|
||||
private LabeledComponent<JBCheckBox> myIncludeProvidedDeps;
|
||||
private final JreVersionDetector myVersionDetector;
|
||||
private final Project myProject;
|
||||
private JComponent myAnchor;
|
||||
@@ -70,8 +70,9 @@ public class ApplicationConfigurable extends SettingsEditor<ApplicationConfigura
|
||||
myVersionDetector = new JreVersionDetector();
|
||||
|
||||
myShortenClasspathModeCombo.setComponent(new ShortenCommandLineModeCombo(myProject, myJrePathEditor, myModule.getComponent()));
|
||||
myIncludeProvidedDeps.setComponent(new JBCheckBox(ExecutionBundle.message("application.configuration.include.provided.scope")));
|
||||
myAnchor = UIUtil.mergeComponentsWithAnchor(myMainClass, myCommonProgramParameters, myJrePathEditor, myModule,
|
||||
myShortenClasspathModeCombo);
|
||||
myShortenClasspathModeCombo, myIncludeProvidedDeps);
|
||||
}
|
||||
|
||||
public void applyEditorTo(@NotNull final ApplicationConfiguration configuration) throws ConfigurationException {
|
||||
@@ -84,7 +85,7 @@ public class ApplicationConfigurable extends SettingsEditor<ApplicationConfigura
|
||||
configuration.ALTERNATIVE_JRE_PATH_ENABLED = myJrePathEditor.isAlternativeJreSelected();
|
||||
configuration.ENABLE_SWING_INSPECTOR = (myVersionDetector.isJre50Configured(configuration) || myVersionDetector.isModuleJre50Configured(configuration)) && myShowSwingInspectorCheckbox.isSelected();
|
||||
configuration.setShortenCommandLine((ShortenCommandLine)myShortenClasspathModeCombo.getComponent().getSelectedItem());
|
||||
configuration.setIncludeProvidedScope(myIncludeProvidedDeps.isSelected());
|
||||
configuration.setIncludeProvidedScope(myIncludeProvidedDeps.getComponent().isSelected());
|
||||
|
||||
updateShowSwingInspector(configuration);
|
||||
}
|
||||
@@ -95,7 +96,7 @@ public class ApplicationConfigurable extends SettingsEditor<ApplicationConfigura
|
||||
getMainClassField().setText(configuration.MAIN_CLASS_NAME != null ? configuration.MAIN_CLASS_NAME.replaceAll("\\$", "\\.") : "");
|
||||
myJrePathEditor.setPathOrName(configuration.ALTERNATIVE_JRE_PATH, configuration.ALTERNATIVE_JRE_PATH_ENABLED);
|
||||
myShortenClasspathModeCombo.getComponent().setSelectedItem(configuration.getShortenCommandLine());
|
||||
myIncludeProvidedDeps.setSelected(configuration.isProvidedScopeIncluded());
|
||||
myIncludeProvidedDeps.getComponent().setSelected(configuration.isProvidedScopeIncluded());
|
||||
|
||||
updateShowSwingInspector(configuration);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user