mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Show "Optional actions" label only if there are any (IDEA-136830)
This commit is contained in:
@@ -107,7 +107,7 @@
|
||||
<text value="Scope:"/>
|
||||
</properties>
|
||||
</component>
|
||||
<component id="1fda7" class="javax.swing.JLabel">
|
||||
<component id="1fda7" class="javax.swing.JLabel" binding="myOptionalLabel">
|
||||
<constraints>
|
||||
<grid row="0" column="1" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="8" fill="0" indent="0" use-parent-layout="false"/>
|
||||
</constraints>
|
||||
|
||||
@@ -51,6 +51,7 @@ public class LayoutCodeDialog extends DialogWrapper {
|
||||
|
||||
private JPanel myActionsPanel;
|
||||
private JPanel myScopePanel;
|
||||
private JLabel myOptionalLabel;
|
||||
|
||||
private LayoutCodeOptions myRunOptions;
|
||||
|
||||
@@ -127,6 +128,8 @@ public class LayoutCodeDialog extends DialogWrapper {
|
||||
if (canRearrangeCode) {
|
||||
myRearrangeCodeCb.setSelected(myLastRunOptions.isRearrangeCode(myFile.getLanguage()));
|
||||
}
|
||||
|
||||
myOptionalLabel.setVisible(canOptimizeImports || canRearrangeCode);
|
||||
}
|
||||
|
||||
@Nullable
|
||||
|
||||
Reference in New Issue
Block a user