[unused declaration] fix layout (IDEA-279399)

GitOrigin-RevId: bbb4d16516860007c73c0df9393d40d3b8e3f412
This commit is contained in:
Anna Kozlova
2022-01-20 13:25:08 +01:00
committed by intellij-monorepo-bot
parent 0210695327
commit 01f2a89708
2 changed files with 10 additions and 23 deletions

View File

@@ -162,22 +162,21 @@
</constraints>
<properties/>
</component>
<component id="ded2e" class="javax.swing.JLabel">
<constraints>
<grid row="0" column="2" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="8" fill="0" indent="0" use-parent-layout="false"/>
<gridbag weightx="1.0" weighty="0.0"/>
</constraints>
<properties/>
</component>
<component id="a82ad" class="javax.swing.JCheckBox" binding="myCheckParameterExcludingHierarchyCheckBox">
<constraints>
<grid row="0" column="3" row-span="1" col-span="1" vsize-policy="0" hsize-policy="3" anchor="8" fill="0" indent="0" use-parent-layout="false"/>
<grid row="0" column="2" row-span="1" col-span="1" vsize-policy="0" hsize-policy="3" anchor="8" fill="0" indent="0" use-parent-layout="false"/>
<gridbag weightx="0.0" weighty="0.0"/>
</constraints>
<properties>
<text resource-bundle="messages/JavaBundle" key="inspection.unused.symbol.check.parameters.excluding.hierarchy"/>
</properties>
</component>
<hspacer id="f9cd0">
<constraints>
<grid row="0" column="3" row-span="1" col-span="1" vsize-policy="1" hsize-policy="6" anchor="0" fill="1" indent="0" use-parent-layout="false"/>
<gridbag weightx="1.0" weighty="0.0"/>
</constraints>
</hspacer>
</children>
</grid>
</children>

View File

@@ -1,22 +1,9 @@
/*
* Copyright 2000-2014 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.codeInspection.unusedSymbol;
import com.intellij.psi.PsiModifier;
import com.intellij.util.ui.JBUI;
import com.intellij.util.ui.UIUtil;
import org.jetbrains.annotations.Nullable;
@@ -57,6 +44,7 @@ public class UnusedSymbolLocalInspection extends UnusedSymbolLocalInspectionBase
myInnerClassesCheckBox.setSelected(INNER_CLASS);
myCheckParametersCheckBox.setSelected(PARAMETER);
myCheckParameterExcludingHierarchyCheckBox.setSelected(myCheckParameterExcludingHierarchy);
myCheckParameterExcludingHierarchyCheckBox.setBorder(JBUI.Borders.emptyLeft(5));
myAccessors.setSelected(!isIgnoreAccessors());
updateEnableState();