mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Constant value warnings
GitOrigin-RevId: c8230afd6a1d5ab374cb78aafa22f7693e940313
This commit is contained in:
committed by
intellij-monorepo-bot
parent
c7544805af
commit
4d1c5305ab
+1
-5
@@ -301,11 +301,7 @@ final class ProjectStartupConfigurable implements SearchableConfigurable, Config
|
||||
|
||||
private void showPopup(AnActionButton button, JBPopup popup) {
|
||||
final RelativePoint point = button.getPreferredPopupPoint();
|
||||
if (point != null) {
|
||||
popup.show(point);
|
||||
} else {
|
||||
popup.showInCenterOf(myDecorator.getActionsPanel());
|
||||
}
|
||||
popup.show(point);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
+1
-3
@@ -337,9 +337,7 @@ public final class ExternalProjectDataSelectorDialog extends DialogWrapper {
|
||||
rootModuleNode[0] = treeNode;
|
||||
}
|
||||
String ideGrouping = moduleData.getIdeGrouping();
|
||||
if (ideGrouping != null) {
|
||||
ideGroupingMap.put(ideGrouping, node);
|
||||
}
|
||||
ideGroupingMap.put(ideGrouping, node);
|
||||
} else {
|
||||
// add elements under module node like web/enterprise artifacts
|
||||
DataNode<ModuleData> parentModule = node.getParent(ModuleData.class);
|
||||
|
||||
@@ -150,8 +150,7 @@ public abstract class AbstractWizard<T extends Step> extends DialogWrapper {
|
||||
buttonPanel.add(myNextButton);
|
||||
principalTouchbarButtons.add(myNextButton);
|
||||
|
||||
if (SystemInfo.isMac)
|
||||
Touchbar.setButtonActions(panel, touchbarButtons, principalTouchbarButtons, myNextButton);
|
||||
Touchbar.setButtonActions(panel, touchbarButtons, principalTouchbarButtons, myNextButton);
|
||||
}
|
||||
else {
|
||||
panel.add(buttonPanel, BorderLayout.CENTER);
|
||||
|
||||
+1
-4
@@ -91,10 +91,7 @@ abstract class SubCompositeConfigurable implements SearchableConfigurable.Parent
|
||||
|
||||
buildConfigurables();
|
||||
if (isChildrenMerged()) {
|
||||
if (children.length == 0) {
|
||||
rootComponent = root == null ? null : root.getComponent();
|
||||
}
|
||||
else if (root == null && children.length == 1) {
|
||||
if (root == null) {
|
||||
rootComponent = children[0].createComponent();
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user