Browse Source

Updated formatting rules.

pull/142/head
weisj 5 years ago
parent
commit
aac2984a6f
  1. 4
      core/src/main/java/com/github/weisj/darklaf/color/DarkColorModelHSL.java
  2. 4
      core/src/main/java/com/github/weisj/darklaf/components/tabframe/PanelPopup.java
  3. 4
      core/src/main/java/com/github/weisj/darklaf/components/tabframe/ToggleSplitPane.java
  4. 8
      core/src/main/java/com/github/weisj/darklaf/components/tooltip/ToolTipContext.java
  5. 18
      core/src/main/java/com/github/weisj/darklaf/settings/ThemeSettingsPanel.java
  6. 6
      core/src/main/java/com/github/weisj/darklaf/ui/button/DarkButtonBorder.java
  7. 6
      core/src/main/java/com/github/weisj/darklaf/ui/button/DarkButtonUI.java
  8. 4
      core/src/main/java/com/github/weisj/darklaf/ui/colorchooser/ColorValueFormatter.java
  9. 2
      core/src/main/java/com/github/weisj/darklaf/ui/colorchooser/DarkColorChooserPanel.java
  10. 4
      core/src/main/java/com/github/weisj/darklaf/ui/colorchooser/SlideComponent.java
  11. 6
      core/src/main/java/com/github/weisj/darklaf/ui/combobox/DarkComboBoxUI.java
  12. 6
      core/src/main/java/com/github/weisj/darklaf/ui/filechooser/DarkFileChooserUIBridge.java
  13. 10
      core/src/main/java/com/github/weisj/darklaf/ui/filechooser/DarkFilePaneUIBridge.java
  14. 2
      core/src/main/java/com/github/weisj/darklaf/ui/popupmenu/DarkPopupMenuUI.java
  15. 2
      core/src/main/java/com/github/weisj/darklaf/ui/rootpane/DarkRootPaneUI.java
  16. 2
      core/src/main/java/com/github/weisj/darklaf/ui/scrollpane/DarkScrollPaneUI.java
  17. 6
      core/src/main/java/com/github/weisj/darklaf/ui/slider/DarkSliderUI.java
  18. 4
      core/src/main/java/com/github/weisj/darklaf/ui/spinner/DarkSpinnerBorder.java
  19. 8
      core/src/main/java/com/github/weisj/darklaf/ui/splitpane/DarkSplitPaneDivider.java
  20. 14
      core/src/main/java/com/github/weisj/darklaf/ui/tabbedpane/DarkTabbedPaneScrollLayout.java
  21. 26
      core/src/main/java/com/github/weisj/darklaf/ui/tabbedpane/DarkTabbedPaneUIBridge.java
  22. 8
      core/src/main/java/com/github/weisj/darklaf/ui/tabbedpane/TabbedPaneLayout.java
  23. 2
      core/src/main/java/com/github/weisj/darklaf/ui/tabbedpane/TabbedPaneTransferHandler.java
  24. 4
      core/src/main/java/com/github/weisj/darklaf/ui/tabframe/DarkPanelPopupUI.java
  25. 8
      core/src/main/java/com/github/weisj/darklaf/ui/tabframe/DarkTabFrameTabContainerUI.java
  26. 18
      core/src/main/java/com/github/weisj/darklaf/ui/tabframe/DarkTabFrameTabLabelUI.java
  27. 4
      core/src/main/java/com/github/weisj/darklaf/ui/tabframe/DarkTabbedPopupUI.java
  28. 4
      core/src/main/java/com/github/weisj/darklaf/ui/table/DarkTableHeaderUI.java
  29. 4
      core/src/main/java/com/github/weisj/darklaf/ui/table/DarkTableHeaderUIBridge.java
  30. 6
      core/src/main/java/com/github/weisj/darklaf/ui/table/DarkTableUI.java
  31. 4
      core/src/main/java/com/github/weisj/darklaf/ui/table/TableUIBridge.java
  32. 2
      core/src/main/java/com/github/weisj/darklaf/ui/text/DarkTextBorder.java
  33. 8
      core/src/main/java/com/github/weisj/darklaf/ui/text/DarkTextFieldUI.java
  34. 6
      core/src/main/java/com/github/weisj/darklaf/ui/togglebutton/StateIconUI.java
  35. 2
      core/src/main/java/com/github/weisj/darklaf/ui/togglebutton/tristate/DarkTristateCheckBoxMenuItemUI.java
  36. 2
      core/src/main/java/com/github/weisj/darklaf/ui/togglebutton/tristate/DarkTristateCheckBoxUI.java
  37. 2
      core/src/main/java/com/github/weisj/darklaf/ui/tooltip/DarkTooltipUI.java
  38. 2
      core/src/main/java/com/github/weisj/darklaf/ui/tooltip/ToolTipUtil.java
  39. 8
      core/src/main/java/com/github/weisj/darklaf/ui/tree/DarkTreeUI.java
  40. 2
      core/src/main/java/com/github/weisj/darklaf/util/GraphicsContext.java
  41. 6
      core/src/main/java/com/github/weisj/darklaf/util/GraphicsUtil.java
  42. 4
      core/src/main/java/com/github/weisj/darklaf/util/ImageUtil.java
  43. 2
      core/src/test/java/icon/IconDemo.java
  44. 2
      core/src/test/java/ui/button/ButtonDemo.java
  45. 2
      core/src/test/java/ui/button/ToggleButtonDemo.java
  46. 2
      core/src/test/java/ui/checkBox/CheckBoxDemo.java
  47. 2
      core/src/test/java/ui/checkBox/TriCheckBoxDemo.java
  48. 5
      core/src/test/java/ui/comboBox/ComboBoxDemo.java
  49. 2
      core/src/test/java/ui/label/LabelDemo.java
  50. 5
      core/src/test/java/ui/progressBar/ProgressBarDemo.java
  51. 2
      core/src/test/java/ui/radioButton/RadioButtonDemo.java
  52. 5
      core/src/test/java/ui/scrollPane/ScrollPaneDemo.java
  53. 8
      core/src/test/java/ui/slider/SliderDemo.java
  54. 4
      core/src/test/java/ui/spinner/SpinnerDemo.java
  55. 5
      core/src/test/java/ui/tabbedPane/TabbedPaneDemo.java
  56. 2
      core/src/test/java/ui/table/TableDemo.java
  57. 5
      core/src/test/java/ui/text/PasswordFieldDemo.java
  58. 5
      core/src/test/java/ui/text/TextFieldDemo.java
  59. 2
      core/src/test/java/ui/tree/TreeDemo.java
  60. 324
      darklaf_java.eclipseformat.xml
  61. 8
      property-loader/src/main/java/com/github/weisj/darklaf/PropertyLoader.java
  62. 6
      property-loader/src/main/java/com/github/weisj/darklaf/icons/StateIcon.java
  63. 2
      theme/src/main/java/com/github/weisj/darklaf/theme/info/DefaultThemeProvider.java
  64. 2
      windows/src/main/java/com/github/weisj/darklaf/platform/windows/PointerUtil.java
  65. 8
      windows/src/main/java/com/github/weisj/darklaf/platform/windows/ui/WindowsTitlePane.java

4
core/src/main/java/com/github/weisj/darklaf/color/DarkColorModelHSL.java

@ -88,8 +88,8 @@ public class DarkColorModelHSL extends DarkColorModel {
double saturation = (max - min);
if (saturation > 0.0f) {
saturation /= (summa > 1.0f)
? 2.0f - summa
: summa;
? 2.0f - summa
: summa;
}
return new double[]{
getHue(r / 255.0, g / 255.0, b / 255.0, max, min),

4
core/src/main/java/com/github/weisj/darklaf/components/tabframe/PanelPopup.java

@ -177,8 +177,8 @@ public class PanelPopup extends JPanel implements TabFramePopup {
public void setAlignment(final Alignment alignment) {
if (alignment == null || this.alignment == Alignment.CENTER) {
throw new IllegalArgumentException("Illegal alignment: " + (alignment != null
? alignment.toString()
: "null"));
? alignment.toString()
: "null"));
}
Alignment old = this.alignment;
this.alignment = alignment;

4
core/src/main/java/com/github/weisj/darklaf/components/tabframe/ToggleSplitPane.java

@ -175,7 +175,7 @@ public class ToggleSplitPane extends JSplitPane {
public int getMinimumDividerLocation() {
Component comp = getRightComponent();
return comp == null ? 0 : getOrientation() == HORIZONTAL_SPLIT
? comp.getMinimumSize().width
: comp.getMinimumSize().height;
? comp.getMinimumSize().width
: comp.getMinimumSize().height;
}
}

8
core/src/main/java/com/github/weisj/darklaf/components/tooltip/ToolTipContext.java

@ -371,8 +371,8 @@ public class ToolTipContext {
if (toolTip != null) {
toolTip.putClientProperty(DarkTooltipUI.KEY_POINTER_LOCATION,
alignment == Alignment.CENTER
? centerAlignment.opposite()
: alignInside ? alignment : alignment.opposite());
? centerAlignment.opposite()
: alignInside ? alignment : alignment.opposite());
toolTip.putClientProperty(DarkTooltipUI.KEY_INSETS, insets);
toolTip.putClientProperty(DarkTooltipUI.KEY_STYLE, style);
toolTip.doLayout();
@ -482,9 +482,9 @@ public class ToolTipContext {
mousePoint = alignCenter(dim, mRect);
} else {
compPoint = alignInside ? alignInside(dim, rect)
: alignOutside(dim, rect);
: alignOutside(dim, rect);
mousePoint = alignInside ? alignInside(dim, mRect)
: alignOutside(dim, mRect);
: alignOutside(dim, mRect);
}
return alignmentStrategy.align(compPoint, mousePoint);

18
core/src/main/java/com/github/weisj/darklaf/settings/ThemeSettingsPanel.java

@ -156,7 +156,7 @@ public class ThemeSettingsPanel extends JPanel {
}
if (ignoreSettings || isFontSizeFollowsSystem()) {
setFontSizeRule(isFontSizeFollowsSystem() ? theme.getFontSizeRule()
: currentTheme.getFontSizeRule());
: currentTheme.getFontSizeRule());
}
if (ignoreSettings || isAccentColorFollowsSystem()) {
setAccentColor(getAccentColor(isAccentColorFollowsSystem() ? theme : currentTheme, true));
@ -349,8 +349,8 @@ public class ThemeSettingsPanel extends JPanel {
protected Theme getTheme(final PreferredThemeStyle preferredThemeStyle) {
return isThemeFollowsSystem()
? LafManager.themeForPreferredStyle(preferredThemeStyle)
: (Theme) themeComboBox.getSelectedItem();
? LafManager.themeForPreferredStyle(preferredThemeStyle)
: (Theme) themeComboBox.getSelectedItem();
}
public FontSizeRule getFontSizeRule() {
@ -361,8 +361,8 @@ public class ThemeSettingsPanel extends JPanel {
protected FontSizeRule getFontSizeRule(final Theme theme, final PreferredThemeStyle preferredThemeStyle) {
if (theme == null) return FontSizeRule.getDefault();
return isFontSizeFollowsSystem()
? preferredThemeStyle.getFontSizeRule()
: FontSizeRule.relativeAdjustment(fontSlider.getValue());
? preferredThemeStyle.getFontSizeRule()
: FontSizeRule.relativeAdjustment(fontSlider.getValue());
}
public AccentColorRule getAccentColorRule() {
@ -379,14 +379,14 @@ public class ThemeSettingsPanel extends JPanel {
protected Color getAccentColor(final Theme theme, final boolean useThemeColor) {
return theme.supportsCustomAccentColor() ? useThemeColor ? theme.getAccentColorRule().getAccentColor()
: getSelectedColor(bgAccent, defaultAccent)
: null;
: getSelectedColor(bgAccent, defaultAccent)
: null;
}
protected Color getSelectionColor(final Theme theme, final boolean useThemeColor) {
return theme.supportsCustomSelectionColor() ? useThemeColor ? theme.getAccentColorRule().getSelectionColor()
: getSelectedColor(bgSelection, defaultSelection)
: null;
: getSelectedColor(bgSelection, defaultSelection)
: null;
}
public void setEnabledSystemPreferences(final boolean enabled) {

6
core/src/main/java/com/github/weisj/darklaf/ui/button/DarkButtonBorder.java

@ -279,9 +279,9 @@ public class DarkButtonBorder implements Border, UIResource {
int shadow = shadowVariant ? 0 : getShadowSize();
boolean square = ButtonConstants.isSquare(c);
Insets pad = ButtonConstants.isThin(c) ? square ? squareThinInsets
: thinInsets
: square ? squareInsets
: insets;
: thinInsets
: square ? squareInsets
: insets;
return maskInsets(new InsetsUIResource(pad.top, pad.left, pad.bottom, pad.right), c, shadow);
}

6
core/src/main/java/com/github/weisj/darklaf/ui/button/DarkButtonUI.java

@ -371,7 +371,7 @@ public class DarkButtonUI extends BasicButtonUI implements ButtonConstants {
Object colorClick = c.getClientProperty(KEY_CLICK_COLOR);
boolean armed = c.getModel().isArmed();
return armed ? colorClick instanceof Color ? (Color) colorClick : borderlessClick
: colorHover instanceof Color ? (Color) colorHover : borderlessHover;
: colorHover instanceof Color ? (Color) colorHover : borderlessHover;
}
protected Color getBorderlessOutline(final AbstractButton c) {
@ -409,8 +409,8 @@ public class DarkButtonUI extends BasicButtonUI implements ButtonConstants {
b.getVerticalTextPosition(), b.getHorizontalTextPosition(),
viewRect, iconRect, textRect,
b.getText() == null || ButtonConstants.isIconOnly(b)
? 0
: b.getIconTextGap());
? 0
: b.getIconTextGap());
}
@Override

4
core/src/main/java/com/github/weisj/darklaf/ui/colorchooser/ColorValueFormatter.java

@ -218,8 +218,8 @@ public final class ColorValueFormatter extends JFormattedTextField.AbstractForma
int b = Integer.valueOf(hexStr.substring(4, 6), 16);
checkRange(b, 0, 255);
int alpha = hexStr.length() >= 8
? Integer.valueOf(hexStr.substring(6, 8), 16)
: 255;
? Integer.valueOf(hexStr.substring(6, 8), 16)
: 255;
checkRange(alpha, 0, 255);
return new Color(r, g, b, alpha);
} else {

2
core/src/main/java/com/github/weisj/darklaf/ui/colorchooser/DarkColorChooserPanel.java

@ -127,7 +127,7 @@ public class DarkColorChooserPanel extends AbstractColorChooserPanel implements
try {
String hexStr = String.format("%1$-" + 8 + "s", textHex.getText()).replaceAll(" ", "F");
int alpha = isColorTransparencySelectionEnabled()
? Integer.valueOf(hexStr.substring(6, 8), 16) : 255;
? Integer.valueOf(hexStr.substring(6, 8), 16) : 255;
return new Color(Integer.valueOf(hexStr.substring(0, 2), 16),
Integer.valueOf(hexStr.substring(2, 4), 16),
Integer.valueOf(hexStr.substring(4, 6), 16),

4
core/src/main/java/com/github/weisj/darklaf/ui/colorchooser/SlideComponent.java

@ -261,13 +261,13 @@ class SlideComponent extends JComponent implements ColorListener {
@Override
public Dimension getPreferredSize() {
return vertical ? new Dimension(22, 100)
: new Dimension(100, 22);
: new Dimension(100, 22);
}
@Override
public Dimension getMinimumSize() {
return vertical ? new Dimension(22, 50)
: new Dimension(50, 22);
: new Dimension(50, 22);
}
@Override

6
core/src/main/java/com/github/weisj/darklaf/ui/combobox/DarkComboBoxUI.java

@ -305,9 +305,9 @@ public class DarkComboBoxUI extends BasicComboBoxUI implements ComboBoxConstants
// calculate the width and height of the button
int buttonHeight = size.height;
int buttonWidth = squareButton
? buttonHeight
: arrowButton.getPreferredSize().width
+ arrowButton.getInsets().left + arrowButton.getInsets().right;
? buttonHeight
: arrowButton.getPreferredSize().width
+ arrowButton.getInsets().left + arrowButton.getInsets().right;
// adjust the size based on the button width
size.height += insets.top + insets.bottom;
size.width += insets.left + insets.right + buttonWidth;

6
core/src/main/java/com/github/weisj/darklaf/ui/filechooser/DarkFileChooserUIBridge.java

@ -926,8 +926,8 @@ public abstract class DarkFileChooserUIBridge extends BasicFileChooserUI {
directories.clear();
File[] baseFolders = (useShellFolder)
? (File[]) ShellFolder.get("fileChooserComboBoxFolders")
: fsv.getRoots();
? (File[]) ShellFolder.get("fileChooserComboBoxFolders")
: fsv.getRoots();
directories.addAll(Arrays.asList(baseFolders));
// Get the canonical (full) path. This has the side
@ -944,7 +944,7 @@ public abstract class DarkFileChooserUIBridge extends BasicFileChooserUI {
// create File instances of each directory leading up to the top
try {
File sf = useShellFolder ? ShellFolder.getShellFolder(canonical)
: canonical;
: canonical;
File f = sf;
Vector<File> path = new Vector<>(10);
do {

10
core/src/main/java/com/github/weisj/darklaf/ui/filechooser/DarkFilePaneUIBridge.java

@ -350,7 +350,7 @@ public abstract class DarkFilePaneUIBridge extends JPanel implements PropertyCha
Boolean prop = (Boolean) chooser.getClientProperty("FileChooser.useShellFolder");
return prop == null ? chooser.getFileSystemView().equals(FileSystemView.getFileSystemView())
: prop;
: prop;
}
public void uninstallUI() {
@ -1275,8 +1275,8 @@ public abstract class DarkFilePaneUIBridge extends JPanel implements PropertyCha
return f.isDirectory() ? null : f.length();
}
return (col == COLUMN_FILENAME)
? f // always return the file itself for the 1st column
: ShellFolder.getFolderColumnValue(f, columnMap[col]);
? f // always return the file itself for the 1st column
: ShellFolder.getFolderColumnValue(f, columnMap[col]);
}
public void intervalAdded(final ListDataEvent e) {
@ -1453,8 +1453,8 @@ public abstract class DarkFilePaneUIBridge extends JPanel implements PropertyCha
Integer alignment = columnInfo.getAlignment();
if (alignment == null) {
alignment = (value instanceof Number)
? SwingConstants.RIGHT
: SwingConstants.LEADING;
? SwingConstants.RIGHT
: SwingConstants.LEADING;
}
setHorizontalAlignment(alignment);

2
core/src/main/java/com/github/weisj/darklaf/ui/popupmenu/DarkPopupMenuUI.java

@ -168,7 +168,7 @@ public class DarkPopupMenuUI extends BasicPopupMenuUI {
invoker = ((JPopupMenu) invoker).getInvoker();
}
grabbedWindow = (invoker == null) ? null : ((invoker instanceof Window) ? (Window) invoker
: SwingUtilities.getWindowAncestor(invoker));
: SwingUtilities.getWindowAncestor(invoker));
if (grabbedWindow != null) {
if (tk instanceof sun.awt.SunToolkit) {
((sun.awt.SunToolkit) tk).grab(grabbedWindow);

2
core/src/main/java/com/github/weisj/darklaf/ui/rootpane/DarkRootPaneUI.java

@ -144,7 +144,7 @@ public class DarkRootPaneUI extends BasicRootPaneUI implements HierarchyListener
private void installClientDecorations(final JRootPane root) {
updateWindow(rootPane.getParent());
int style = decorationsStyleFromWindow(window, windowDecorationsStyle < 0 ? root.getWindowDecorationStyle()
: windowDecorationsStyle);
: windowDecorationsStyle);
CustomTitlePane titlePane = DecorationsHandler.getSharedInstance().createTitlePane(root, style, window);
installLayout(root);
setTitlePane(root, titlePane);

2
core/src/main/java/com/github/weisj/darklaf/ui/scrollpane/DarkScrollPaneUI.java

@ -65,7 +65,7 @@ public class DarkScrollPaneUI extends BasicScrollPaneUI {
return;
}
JScrollBar scrollbar = e.isShiftDown() ? scrollpane.getHorizontalScrollBar()
: scrollpane.getVerticalScrollBar();
: scrollpane.getVerticalScrollBar();
scrollbar.setValueIsAdjusting(true);
ScrollBarUtil.doScroll(scrollbar, scrollpane.getViewport(), e,
scrollpane.getComponentOrientation().isLeftToRight());

6
core/src/main/java/com/github/weisj/darklaf/ui/slider/DarkSliderUI.java

@ -340,8 +340,8 @@ public class DarkSliderUI extends BasicSliderUI implements PropertyChangeListene
return new Dimension(plainThumbRadius + 6, plainThumbRadius + 6);
}
return isHorizontal()
? new Dimension(thumbSize.width, thumbSize.height)
: new Dimension(thumbSize.height, thumbSize.width);
? new Dimension(thumbSize.width, thumbSize.height)
: new Dimension(thumbSize.height, thumbSize.width);
}
@Override
@ -818,7 +818,7 @@ public class DarkSliderUI extends BasicSliderUI implements PropertyChangeListene
private int getSnappedValue(final MouseEvent e) {
int value = isHorizontal() ? valueForXPosition(e.getX())
: valueForYPosition(e.getY());
: valueForYPosition(e.getY());
return DarkSliderUI.this.getSnappedValue(value);
}
}

4
core/src/main/java/com/github/weisj/darklaf/ui/spinner/DarkSpinnerBorder.java

@ -78,8 +78,8 @@ public class DarkSpinnerBorder implements Border, UIResource {
JComponent editor = spinner.getEditor();
if (editor != null) {
int off = spinner.getComponentOrientation().isLeftToRight()
? editor.getBounds().x + editor.getWidth()
: editor.getBounds().x - 1 - borderSize;
? editor.getBounds().x + editor.getWidth()
: editor.getBounds().x - 1 - borderSize;
g.setColor(getBorderColor(spinner));
if (!treeCellEditor) {
g.fillRect(off, size, 1, height - 2 * size);

8
core/src/main/java/com/github/weisj/darklaf/ui/splitpane/DarkSplitPaneDivider.java

@ -149,8 +149,8 @@ public class DarkSplitPaneDivider extends BasicSplitPaneDivider {
public Icon getIcon() {
if (splitPane != null) {
return splitPane.getOrientation() == JSplitPane.HORIZONTAL_SPLIT
? getRightOneTouchIcon()
: getBottomOneTouchIcon();
? getRightOneTouchIcon()
: getBottomOneTouchIcon();
}
return EmptyIcon.create(0);
}
@ -161,8 +161,8 @@ public class DarkSplitPaneDivider extends BasicSplitPaneDivider {
public Icon getIcon() {
if (splitPane != null) {
return splitPane.getOrientation() == JSplitPane.HORIZONTAL_SPLIT
? getLeftOneTouchIcon()
: getTopOneTouchIcon();
? getLeftOneTouchIcon()
: getTopOneTouchIcon();
}
return EmptyIcon.create(0);
}

14
core/src/main/java/com/github/weisj/darklaf/ui/tabbedpane/DarkTabbedPaneScrollLayout.java

@ -146,12 +146,12 @@ public class DarkTabbedPaneScrollLayout extends TabbedPaneScrollLayout {
int vw = tw;
int vh = th;
Dimension butSize = moreTabs.isVisible()
? moreTabs.getPreferredSize()
: new Dimension(0, 0);
? moreTabs.getPreferredSize()
: new Dimension(0, 0);
boolean showNewTabButton = newTab.isVisible() && newTab.getParent() == ui.tabPane;
Dimension butSize2 = showNewTabButton
? newTab.getPreferredSize()
: new Dimension(0, 0);
? newTab.getPreferredSize()
: new Dimension(0, 0);
boolean leftToRight = ui.tabPane.getComponentOrientation().isLeftToRight();
if (tabPlacement == SwingConstants.LEFT || tabPlacement == SwingConstants.RIGHT) {
vh = th - butSize.height - butSize2.height;
@ -311,8 +311,8 @@ public class DarkTabbedPaneScrollLayout extends TabbedPaneScrollLayout {
JButton tabsButton = ui.scrollableTabSupport.moreTabsButton;
Rectangle selectedBounds = ui.tabPane.getSelectedIndex() > 0
? new Rectangle(ui.rects[ui.tabPane.getSelectedIndex()])
: new Rectangle(0, 0, 0, 0);
? new Rectangle(ui.rects[ui.tabPane.getSelectedIndex()])
: new Rectangle(0, 0, 0, 0);
if (!verticalTabRuns) {
int rightMargin = size.width - (insets.right + tabAreaInsets.right
+ insets.left + tabAreaInsets.left);
@ -663,7 +663,7 @@ public class DarkTabbedPaneScrollLayout extends TabbedPaneScrollLayout {
int maxStart = ui.maxVisible < 0 || ui.maxVisible >= tabCount ? tabCount - 1 : ui.maxVisible;
int currShift = isX ? ui.currentShiftXTmp + shift : ui.currentShiftYTmp + shift;
Function<Integer, Boolean> isVisible = isX ? (i -> isVisibleX(i, currShift, minVal, returnAt))
: (i -> isVisibleY(i, currShift, minVal, returnAt));
: (i -> isVisibleY(i, currShift, minVal, returnAt));
if (isVisible.apply(minStart)) {
// Descent to find minimum.
min = minStart;

26
core/src/main/java/com/github/weisj/darklaf/ui/tabbedpane/DarkTabbedPaneUIBridge.java

@ -639,7 +639,7 @@ public abstract class DarkTabbedPaneUIBridge extends TabbedPaneUI implements Swi
*/
protected Icon getIconForTab(final int tabIndex) {
return (!tabPane.isEnabled() || !tabPane.isEnabledAt(tabIndex)) ? tabPane.getDisabledIconAt(tabIndex)
: tabPane.getIconAt(tabIndex);
: tabPane.getIconAt(tabIndex);
}
/**
@ -840,7 +840,7 @@ public abstract class DarkTabbedPaneUIBridge extends TabbedPaneUI implements Swi
protected int getTabLabelShiftY(final int tabPlacement, final int tabIndex, final boolean isSelected) {
Rectangle tabRect = rects[tabIndex];
int nudge = (isSelected ? DefaultLookup.getInt(tabPane, this, "TabbedPane.selectedLabelShift", -1)
: DefaultLookup.getInt(tabPane, this, "TabbedPane.labelShift", 1));
: DefaultLookup.getInt(tabPane, this, "TabbedPane.labelShift", 1));
switch (tabPlacement) {
case BOTTOM :
@ -1621,7 +1621,7 @@ public abstract class DarkTabbedPaneUIBridge extends TabbedPaneUI implements Swi
int tabRunOverlay = getTabRunOverlay(tabPlacement);
return (horizRunCount > 0 ? horizRunCount * (maxTabHeight - tabRunOverlay) + tabRunOverlay +
tabAreaInsets.top + tabAreaInsets.bottom
: 0);
: 0);
}
/**
@ -1637,7 +1637,7 @@ public abstract class DarkTabbedPaneUIBridge extends TabbedPaneUI implements Swi
int tabRunOverlay = getTabRunOverlay(tabPlacement);
return (vertRunCount > 0 ? vertRunCount * (maxTabWidth - tabRunOverlay) + tabRunOverlay +
tabAreaInsets.left + tabAreaInsets.right
: 0);
: 0);
}
/**
@ -1719,7 +1719,7 @@ public abstract class DarkTabbedPaneUIBridge extends TabbedPaneUI implements Swi
int tabPlacement = tabPane.getTabPlacement();
int current = DefaultLookup.getBoolean(tabPane, this,
"TabbedPane.selectionFollowsFocus", true) ? tabPane.getSelectedIndex()
: getFocusIndex();
: getFocusIndex();
int tabCount = tabPane.getTabCount();
boolean leftToRight = tabPane.getComponentOrientation().isLeftToRight();
@ -2046,11 +2046,11 @@ public abstract class DarkTabbedPaneUIBridge extends TabbedPaneUI implements Swi
case LEFT : {
if (run == 0) {
offset = (forward ? -(calculateTabAreaWidth(tabPlacement, runCount, maxTabWidth) - maxTabWidth)
: -maxTabWidth);
: -maxTabWidth);
} else if (run == runCount - 1) {
offset = (forward ? maxTabWidth
: calculateTabAreaWidth(tabPlacement, runCount, maxTabWidth) - maxTabWidth);
: calculateTabAreaWidth(tabPlacement, runCount, maxTabWidth) - maxTabWidth);
} else {
offset = (forward ? maxTabWidth : -maxTabWidth);
}
@ -2059,10 +2059,10 @@ public abstract class DarkTabbedPaneUIBridge extends TabbedPaneUI implements Swi
case RIGHT : {
if (run == 0) {
offset = (forward ? maxTabWidth
: calculateTabAreaWidth(tabPlacement, runCount, maxTabWidth) - maxTabWidth);
: calculateTabAreaWidth(tabPlacement, runCount, maxTabWidth) - maxTabWidth);
} else if (run == runCount - 1) {
offset = (forward ? -(calculateTabAreaWidth(tabPlacement, runCount, maxTabWidth) - maxTabWidth)
: -maxTabWidth);
: -maxTabWidth);
} else {
offset = (forward ? maxTabWidth : -maxTabWidth);
}
@ -2071,10 +2071,10 @@ public abstract class DarkTabbedPaneUIBridge extends TabbedPaneUI implements Swi
case BOTTOM : {
if (run == 0) {
offset = (forward ? maxTabHeight
: calculateTabAreaHeight(tabPlacement, runCount, maxTabHeight) - maxTabHeight);
: calculateTabAreaHeight(tabPlacement, runCount, maxTabHeight) - maxTabHeight);
} else if (run == runCount - 1) {
offset = (forward ? -(calculateTabAreaHeight(tabPlacement, runCount, maxTabHeight) - maxTabHeight)
: -maxTabHeight);
: -maxTabHeight);
} else {
offset = (forward ? maxTabHeight : -maxTabHeight);
}
@ -2084,10 +2084,10 @@ public abstract class DarkTabbedPaneUIBridge extends TabbedPaneUI implements Swi
default : {
if (run == 0) {
offset = (forward ? -(calculateTabAreaHeight(tabPlacement, runCount, maxTabHeight) - maxTabHeight)
: -maxTabHeight);
: -maxTabHeight);
} else if (run == runCount - 1) {
offset = (forward ? maxTabHeight
: calculateTabAreaHeight(tabPlacement, runCount, maxTabHeight) - maxTabHeight);
: calculateTabAreaHeight(tabPlacement, runCount, maxTabHeight) - maxTabHeight);
} else {
offset = (forward ? maxTabHeight : -maxTabHeight);
}

8
core/src/main/java/com/github/weisj/darklaf/ui/tabbedpane/TabbedPaneLayout.java

@ -150,11 +150,11 @@ public abstract class TabbedPaneLayout implements LayoutManager {
if (child == ui.tabContainer) {
int tabContainerWidth = totalTabWidth == 0 ? bounds.width
: totalTabWidth + insets.left + insets.right +
contentInsets.left + contentInsets.right;
: totalTabWidth + insets.left + insets.right +
contentInsets.left + contentInsets.right;
int tabContainerHeight = totalTabHeight == 0 ? bounds.height
: totalTabHeight + insets.top + insets.bottom +
contentInsets.top + contentInsets.bottom;
: totalTabHeight + insets.top + insets.bottom +
contentInsets.top + contentInsets.bottom;
int tabContainerX = 0;
int tabContainerY = 0;

2
core/src/main/java/com/github/weisj/darklaf/ui/tabbedpane/TabbedPaneTransferHandler.java

@ -169,7 +169,7 @@ public class TabbedPaneTransferHandler extends TransferHandler implements DropTa
protected void createDragImage(final JTabbedPane tabbedPane, final DarkTabbedPaneUI ui) {
Color color = ui != null ? ui.getDragBorderColor()
: tabbedPane.getBackgroundAt(currentTransferable.transferData.tabIndex);
: tabbedPane.getBackgroundAt(currentTransferable.transferData.tabIndex);
Image tabImage = ImageUtil.createDragImage(tabbedPane, currentTransferable.transferData.tabBounds, 2, color);
int w = tabImage.getWidth(null);
int h = tabImage.getHeight(null);

4
core/src/main/java/com/github/weisj/darklaf/ui/tabframe/DarkPanelPopupUI.java

@ -378,9 +378,9 @@ public class DarkPanelPopupUI extends DarkPanelUI implements PropertyChangeListe
public void setFocus(final boolean focus) {
putClientProperty(DarkButtonUI.KEY_HOVER_COLOR, focus ? ui.headerButtonFocusHoverBackground
: ui.headerButtonHoverBackground);
: ui.headerButtonHoverBackground);
putClientProperty(DarkButtonUI.KEY_CLICK_COLOR, focus ? ui.headerButtonFocusClickBackground
: ui.headerButtonClickBackground);
: ui.headerButtonClickBackground);
}
}
}

8
core/src/main/java/com/github/weisj/darklaf/ui/tabframe/DarkTabFrameTabContainerUI.java

@ -209,9 +209,9 @@ public class DarkTabFrameTabContainerUI extends DarkPanelUI implements PropertyC
public Color getBackground(final TabFrameTabContainer tab) {
if (printing) return tab.getBackground();
return tab.isSelected()
? selectedColor
: hoverListener.isHover() && !tab.getTabFrame().isInTransfer()
? hoverColor
: tab.getBackground();
? selectedColor
: hoverListener.isHover() && !tab.getTabFrame().isInTransfer()
? hoverColor
: tab.getBackground();
}
}

18
core/src/main/java/com/github/weisj/darklaf/ui/tabframe/DarkTabFrameTabLabelUI.java

@ -183,7 +183,7 @@ public class DarkTabFrameTabLabelUI extends DarkLabelUI implements PropertyChang
String key = e.getPropertyName();
if (TabFrameTab.KEY_SELECTED.equals(key)) {
tabComponent.setForeground(Boolean.TRUE.equals(e.getNewValue())
? selectedFontColor : defaultFontColor);
? selectedFontColor : defaultFontColor);
tabComponent.repaint();
} else if (TabFrameTab.KEY_TITLE.equals(key)) {
updateText();
@ -259,19 +259,19 @@ public class DarkTabFrameTabLabelUI extends DarkLabelUI implements PropertyChang
public Color getBackground(final TabFrameTabLabel tab) {
if (printing || !tab.isEnabled()) return tab.getBackground();
return tab.isSelected()
? selectedColor
: hoverListener.isHover() && !tab.getTabFrame().isInTransfer()
? hoverColor
: tab.getBackground();
? selectedColor
: hoverListener.isHover() && !tab.getTabFrame().isInTransfer()
? hoverColor
: tab.getBackground();
}
public Color getForeground(final TabFrameTabLabel tab) {
if (printing) return tab.getForeground();
return tab.isSelected()
? selectedFontColor
: hoverListener.isHover() && !tab.getTabFrame().isInTransfer()
? fontHoverColor
: tab.getForeground();
? selectedFontColor
: hoverListener.isHover() && !tab.getTabFrame().isInTransfer()
? fontHoverColor
: tab.getForeground();
}
protected Icon getIcon() {

4
core/src/main/java/com/github/weisj/darklaf/ui/tabframe/DarkTabbedPopupUI.java

@ -127,9 +127,9 @@ public class DarkTabbedPopupUI extends DarkPanelPopupUI implements TabFrameTabbe
if (oldFocus != focus) {
if (newTabButton != null) {
newTabButton.putClientProperty(DarkButtonUI.KEY_HOVER_COLOR, focus ? headerButtonFocusHoverBackground
: headerButtonHoverBackground);
: headerButtonHoverBackground);
newTabButton.putClientProperty(DarkButtonUI.KEY_CLICK_COLOR, focus ? headerButtonFocusClickBackground
: headerButtonClickBackground);
: headerButtonClickBackground);
newTabButton.repaint();
}
holder.setBackground(focus ? headerFocusBackground : headerBackground);

4
core/src/main/java/com/github/weisj/darklaf/ui/table/DarkTableHeaderUI.java

@ -116,8 +116,8 @@ public class DarkTableHeaderUI extends DarkTableHeaderUIBridge {
}
Color borderColor = c.getBorder() instanceof DarkTableScrollPaneBorder
? ((DarkTableScrollPaneBorder) c.getBorder()).getBorderColor()
: getBorderColor();
? ((DarkTableScrollPaneBorder) c.getBorder()).getBorderColor()
: getBorderColor();
g.setColor(borderColor);
TableColumn draggedColumn = header.getDraggedColumn();

4
core/src/main/java/com/github/weisj/darklaf/ui/table/DarkTableHeaderUIBridge.java

@ -713,10 +713,10 @@ public class DarkTableHeaderUIBridge extends BasicTableHeaderUI {
if (th.getComponentOrientation().isLeftToRight()) {
newIndex = leftArrow ? ui.selectPreviousColumn(doIt)
: ui.selectNextColumn(doIt);
: ui.selectNextColumn(doIt);
} else {
newIndex = leftArrow ? ui.selectNextColumn(doIt)
: ui.selectPreviousColumn(doIt);
: ui.selectPreviousColumn(doIt);
}
if (newIndex != oldIndex) {

6
core/src/main/java/com/github/weisj/darklaf/ui/table/DarkTableUI.java

@ -304,7 +304,7 @@ public class DarkTableUI extends DarkTableUIBridge implements FocusListener {
int dist = header != null ? adjustDistance(header.getDraggedDistance(),
table.getCellRect(0, draggedIndex, true),
table)
: 0;
: 0;
boolean isDragged = column == draggedIndex && dist != 0;
if (!scrollVisible) {
if (ltr) {
@ -539,11 +539,11 @@ public class DarkTableUI extends DarkTableUIBridge implements FocusListener {
JTableHeader header = table.getTableHeader();
int draggedIndex = header != null ? viewIndexForColumn(header.getDraggedColumn())
: -1;
: -1;
int dist = header != null ? adjustDistance(header.getDraggedDistance(),
table.getCellRect(row, draggedIndex, true),
table)
: 0;
: 0;
boolean isDragged = column == draggedIndex && dist != 0;
Rectangle rectWithSpacing = table.getCellRect(row, cMin, true);
Rectangle r = new Rectangle(cellRect);

4
core/src/main/java/com/github/weisj/darklaf/ui/table/TableUIBridge.java

@ -240,7 +240,7 @@ public abstract class TableUIBridge extends TableUI {
*/
protected static int getAdjustedLead(final JTable table, final boolean row) {
return row ? getAdjustedLead(table, row, table.getSelectionModel())
: getAdjustedLead(table, row, table.getColumnModel().getSelectionModel());
: getAdjustedLead(table, row, table.getColumnModel().getSelectionModel());
}
/**
@ -1452,7 +1452,7 @@ public abstract class TableUIBridge extends TableUI {
boolean ltr = table.getComponentOrientation().isLeftToRight();
newColumn = forwards ? (ltr ? table.getColumnCount() : 0)
: (ltr ? 0 : table.getColumnCount());
: (ltr ? 0 : table.getColumnCount());
}
this.dx = newColumn - leadColumn;

2
core/src/main/java/com/github/weisj/darklaf/ui/text/DarkTextBorder.java

@ -117,7 +117,7 @@ public class DarkTextBorder implements Border, UIResource {
final boolean editable, final boolean enabled) {
if (focus) {
return error ? focusErrorBorderColor
: enabled && editable ? focusBorderColor : inactiveFocusBorderColor;
: enabled && editable ? focusBorderColor : inactiveFocusBorderColor;
} else if (error) {
return errorBorderColor;
} else {

8
core/src/main/java/com/github/weisj/darklaf/ui/text/DarkTextFieldUI.java

@ -118,15 +118,15 @@ public class DarkTextFieldUI extends DarkTextFieldUIBridge implements PropertyCh
Rectangle drawRect = getDrawingRect(getComponent());
Rectangle textRect = getTextRect(getComponent());
int rightBoundary = getComponent().getText().isEmpty()
? drawRect.x + drawRect.width
: getClearIconCoord().x;
? drawRect.x + drawRect.width
: getClearIconCoord().x;
boolean insideTextArea = drawRect.contains(p) && p.x >= textRect.x && p.x < rightBoundary;
if (insideTextArea) {
getComponent().setCursor(Cursor.getPredefinedCursor(Cursor.TEXT_CURSOR));
} else {
Cursor cursor = action == ClickAction.NONE
? Cursor.getDefaultCursor()
: Cursor.getPredefinedCursor(Cursor.HAND_CURSOR);
? Cursor.getDefaultCursor()
: Cursor.getPredefinedCursor(Cursor.HAND_CURSOR);
getComponent().setCursor(cursor);
}
}

6
core/src/main/java/com/github/weisj/darklaf/ui/togglebutton/StateIconUI.java

@ -44,8 +44,8 @@ public interface StateIconUI {
boolean enabled = b.isEnabled();
boolean hasFocus = b.hasFocus();
return selected ? enabled ? hasFocus ? ui.getSelectedFocusedIcon() : ui.getSelectedIcon()
: ui.getSelectedDisabledIcon()
: enabled ? hasFocus ? ui.getFocusedIcon() : ui.getIcon()
: ui.getDisabledIcon();
: ui.getSelectedDisabledIcon()
: enabled ? hasFocus ? ui.getFocusedIcon() : ui.getIcon()
: ui.getDisabledIcon();
}
}

2
core/src/main/java/com/github/weisj/darklaf/ui/togglebutton/tristate/DarkTristateCheckBoxMenuItemUI.java

@ -63,7 +63,7 @@ public class DarkTristateCheckBoxMenuItemUI extends DarkCheckBoxMenuItemUI {
if (((TristateCheckBoxMenuItem) b).getTristateModel().isIndeterminate()) {
if (b.isEnabled()) {
return b.hasFocus() ? checkBoxIndeterminateFocusedIcon
: checkBoxIndeterminateIcon;
: checkBoxIndeterminateIcon;
} else {
return checkBoxIndeterminateDisabledIcon;
}

2
core/src/main/java/com/github/weisj/darklaf/ui/togglebutton/tristate/DarkTristateCheckBoxUI.java

@ -57,7 +57,7 @@ public class DarkTristateCheckBoxUI extends DarkCheckBoxUI {
if (((TristateCheckBox) b).getTristateModel().isIndeterminate()) {
if (b.isEnabled()) {
return b.hasFocus() ? checkBoxIndeterminateFocusedIcon
: checkBoxIndeterminateIcon;
: checkBoxIndeterminateIcon;
} else {
return checkBoxIndeterminateDisabledIcon;
}

2
core/src/main/java/com/github/weisj/darklaf/ui/tooltip/DarkTooltipUI.java

@ -309,7 +309,7 @@ public class DarkTooltipUI extends BasicToolTipUI implements PropertyChangeListe
ToolTipStyle style = getStyle(comp.getClientProperty(KEY_STYLE));
ToolTipStyle tooltipStyle = getStyle(toolTip.getClientProperty(KEY_STYLE));
toolTip.putClientProperty(KEY_STYLE, style != null ? style : tooltipStyle != null ? tooltipStyle
: ToolTipStyle.PLAIN_BALLOON);
: ToolTipStyle.PLAIN_BALLOON);
}
}

2
core/src/main/java/com/github/weisj/darklaf/ui/tooltip/ToolTipUtil.java

@ -69,7 +69,7 @@ public class ToolTipUtil {
Alignment[] alignments = getAlignments(isCenter ? originalCenter : original);
Point pos = null;
BiConsumer<ToolTipContext, Alignment> setter = isCenter ? ToolTipContext::setCenterAlignment
: ToolTipContext::setAlignment;
: ToolTipContext::setAlignment;
// Check if a position keeps the tooltip inside the window.
for (Alignment a : alignments) {
pos = tryPosition(a, context, p, tooltipBounds, windowBounds, screenBounds, setter);

8
core/src/main/java/com/github/weisj/darklaf/ui/tree/DarkTreeUI.java

@ -510,11 +510,11 @@ public class DarkTreeUI extends BasicTreeUI implements PropertyChangeListener {
final int row, final boolean isExpanded,
final boolean hasBeenExpanded, final boolean isLeaf) {
final int containerWidth = tree.getParent() instanceof JViewport
? tree.getParent().getWidth()
: tree.getWidth();
? tree.getParent().getWidth()
: tree.getWidth();
final int xOffset = tree.getParent() instanceof JViewport
? ((JViewport) tree.getParent()).getViewPosition().x
: 0;
? ((JViewport) tree.getParent()).getViewPosition().x
: 0;
if (path != null) {
boolean selected = tree.isPathSelected(path);

2
core/src/main/java/com/github/weisj/darklaf/util/GraphicsContext.java

@ -55,7 +55,7 @@ public class GraphicsContext {
public GraphicsContext setAntialiasing(final boolean on) {
graphics2D.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
on ? RenderingHints.VALUE_ANTIALIAS_ON
: RenderingHints.VALUE_ANTIALIAS_OFF);
: RenderingHints.VALUE_ANTIALIAS_OFF);
return this;
}

6
core/src/main/java/com/github/weisj/darklaf/util/GraphicsUtil.java

@ -51,8 +51,8 @@ public final class GraphicsUtil {
} else {
g.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING,
enableAA
? RenderingHints.VALUE_TEXT_ANTIALIAS_LCD_HBGR
: RenderingHints.VALUE_TEXT_ANTIALIAS_OFF);
? RenderingHints.VALUE_TEXT_ANTIALIAS_LCD_HBGR
: RenderingHints.VALUE_TEXT_ANTIALIAS_OFF);
}
}
return config;
@ -81,7 +81,7 @@ public final class GraphicsUtil {
g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
g2.setRenderingHint(RenderingHints.KEY_STROKE_CONTROL,
useQuartz() ? RenderingHints.VALUE_STROKE_PURE
: RenderingHints.VALUE_STROKE_NORMALIZE);
: RenderingHints.VALUE_STROKE_NORMALIZE);
return context;
}

4
core/src/main/java/com/github/weisj/darklaf/util/ImageUtil.java

@ -145,8 +145,8 @@ public final class ImageUtil {
public static BufferedImage createCompatibleTranslucentImage(final int width,
final int height) {
return isHeadless() ? new BufferedImage(width, height, BufferedImage.TYPE_INT_ARGB)
: getGraphicsConfiguration().createCompatibleImage(width, height,
Transparency.TRANSLUCENT);
: getGraphicsConfiguration().createCompatibleImage(width, height,
Transparency.TRANSLUCENT);
}
private static boolean isHeadless() {

2
core/src/test/java/icon/IconDemo.java

@ -74,7 +74,7 @@ public class IconDemo implements ComponentDemo {
{
putClientProperty("JToggleButton.variant", "slider");
addActionListener(e -> LafManager.installTheme(isSelected() ? new DarculaTheme()
: new IntelliJTheme()));
: new IntelliJTheme()));
}
});
controlPanel.add(new QuickColorChooser("Themed icon color", UIManager.getColor("TestIcon.color"),

2
core/src/test/java/ui/button/ButtonDemo.java

@ -71,7 +71,7 @@ public class ButtonDemo implements ComponentDemo {
{
setSelected(button.getComponentOrientation().isLeftToRight());
addActionListener(e -> button.setComponentOrientation(isSelected() ? ComponentOrientation.LEFT_TO_RIGHT
: ComponentOrientation.RIGHT_TO_LEFT));
: ComponentOrientation.RIGHT_TO_LEFT));
}
});
controlPanel.add(new JCheckBox("Rollover") {

2
core/src/test/java/ui/button/ToggleButtonDemo.java

@ -58,7 +58,7 @@ public class ToggleButtonDemo implements ComponentDemo {
{
setSelected(button.getComponentOrientation().isLeftToRight());
addActionListener(e -> button.setComponentOrientation(isSelected() ? ComponentOrientation.LEFT_TO_RIGHT
: ComponentOrientation.RIGHT_TO_LEFT));
: ComponentOrientation.RIGHT_TO_LEFT));
}
});
controlPanel.add(new JCheckBox(DarkToggleButtonUI.KEY_IS_TREE_EDITOR) {

2
core/src/test/java/ui/checkBox/CheckBoxDemo.java

@ -55,7 +55,7 @@ public class CheckBoxDemo implements ComponentDemo {
{
setSelected(button.getComponentOrientation().isLeftToRight());
addActionListener(e -> button.setComponentOrientation(isSelected() ? ComponentOrientation.LEFT_TO_RIGHT
: ComponentOrientation.RIGHT_TO_LEFT));
: ComponentOrientation.RIGHT_TO_LEFT));
}
});
controlPanel.add(new JCheckBox("Rollover") {

2
core/src/test/java/ui/checkBox/TriCheckBoxDemo.java

@ -57,7 +57,7 @@ public class TriCheckBoxDemo implements ComponentDemo {
{
setSelected(button.getComponentOrientation().isLeftToRight());
addActionListener(e -> button.setComponentOrientation(isSelected() ? ComponentOrientation.LEFT_TO_RIGHT
: ComponentOrientation.RIGHT_TO_LEFT));
: ComponentOrientation.RIGHT_TO_LEFT));
}
});
controlPanel.add(new JCheckBox("Rollover") {

5
core/src/test/java/ui/comboBox/ComboBoxDemo.java

@ -64,8 +64,9 @@ public class ComboBoxDemo implements ComponentDemo {
controlPanel.add(new JCheckBox("LeftToRight") {
{
setSelected(comboBox.getComponentOrientation().isLeftToRight());
addActionListener(e -> comboBox.setComponentOrientation(isSelected() ? ComponentOrientation.LEFT_TO_RIGHT
: ComponentOrientation.RIGHT_TO_LEFT));
addActionListener(e -> comboBox.setComponentOrientation(isSelected()
? ComponentOrientation.LEFT_TO_RIGHT
: ComponentOrientation.RIGHT_TO_LEFT));
}
});
controlPanel.add(new JCheckBox(ComboBoxConstants.KEY_IS_TREE_EDITOR) {

2
core/src/test/java/ui/label/LabelDemo.java

@ -55,7 +55,7 @@ public class LabelDemo implements ComponentDemo {
{
setSelected(label.getComponentOrientation().isLeftToRight());
addActionListener(e -> label.setComponentOrientation(isSelected() ? ComponentOrientation.LEFT_TO_RIGHT
: ComponentOrientation.RIGHT_TO_LEFT));
: ComponentOrientation.RIGHT_TO_LEFT));
}
});
return panel;

5
core/src/test/java/ui/progressBar/ProgressBarDemo.java

@ -64,8 +64,9 @@ public class ProgressBarDemo implements ComponentDemo {
controlPanel.add(new JCheckBox("LeftToRight") {
{
setSelected(progressBar.getComponentOrientation().isLeftToRight());
addActionListener(e -> progressBar.setComponentOrientation(isSelected() ? ComponentOrientation.LEFT_TO_RIGHT
: ComponentOrientation.RIGHT_TO_LEFT));
addActionListener(e -> progressBar.setComponentOrientation(isSelected()
? ComponentOrientation.LEFT_TO_RIGHT
: ComponentOrientation.RIGHT_TO_LEFT));
}
});
controlPanel.add(new JCheckBox("String painted") {

2
core/src/test/java/ui/radioButton/RadioButtonDemo.java

@ -55,7 +55,7 @@ public class RadioButtonDemo implements ComponentDemo {
{
setSelected(button.getComponentOrientation().isLeftToRight());
addActionListener(e -> button.setComponentOrientation(isSelected() ? ComponentOrientation.LEFT_TO_RIGHT
: ComponentOrientation.RIGHT_TO_LEFT));
: ComponentOrientation.RIGHT_TO_LEFT));
}
});
controlPanel.add(new JCheckBox("Rollover") {

5
core/src/test/java/ui/scrollPane/ScrollPaneDemo.java

@ -63,8 +63,9 @@ public final class ScrollPaneDemo implements ComponentDemo {
controlPanel.add(new JCheckBox("LeftToRight") {
{
setSelected(scrollPane.getComponentOrientation().isLeftToRight());
addActionListener(e -> scrollPane.setComponentOrientation(isSelected() ? ComponentOrientation.LEFT_TO_RIGHT
: ComponentOrientation.RIGHT_TO_LEFT));
addActionListener(e -> scrollPane.setComponentOrientation(isSelected()
? ComponentOrientation.LEFT_TO_RIGHT
: ComponentOrientation.RIGHT_TO_LEFT));
}
}, "span");

8
core/src/test/java/ui/slider/SliderDemo.java

@ -55,7 +55,7 @@ public class SliderDemo implements ComponentDemo {
addItem("Vertical");
setSelectedItem("Horizontal");
addItemListener(e -> slider.setOrientation(e.getItem() == "Vertical" ? JSlider.VERTICAL
: JSlider.HORIZONTAL));
: JSlider.HORIZONTAL));
}
});
controlPanel = panel.addControls();
@ -69,7 +69,7 @@ public class SliderDemo implements ComponentDemo {
{
setSelected(slider.getComponentOrientation().isLeftToRight());
addActionListener(e -> slider.setComponentOrientation(isSelected() ? ComponentOrientation.LEFT_TO_RIGHT
: ComponentOrientation.RIGHT_TO_LEFT));
: ComponentOrientation.RIGHT_TO_LEFT));
}
});
controlPanel.add(new JCheckBox("inverted") {
@ -105,8 +105,8 @@ public class SliderDemo implements ComponentDemo {
controlPanel.add(new JCheckBox(DarkSliderUI.KEY_VARIANT + " = " + DarkSliderUI.VARIANT_VOLUME) {
{
addActionListener(e -> slider.putClientProperty(DarkSliderUI.KEY_VARIANT, isSelected()
? DarkSliderUI.VARIANT_VOLUME
: null));
? DarkSliderUI.VARIANT_VOLUME
: null));
}
});
controlPanel.add(new JCheckBox(DarkSliderUI.KEY_INSTANT_SCROLL) {

4
core/src/test/java/ui/spinner/SpinnerDemo.java

@ -55,14 +55,14 @@ public class SpinnerDemo implements ComponentDemo {
{
setSelected(spinner.getComponentOrientation().isLeftToRight());
addActionListener(e -> spinner.setComponentOrientation(isSelected() ? ComponentOrientation.LEFT_TO_RIGHT
: ComponentOrientation.RIGHT_TO_LEFT));
: ComponentOrientation.RIGHT_TO_LEFT));
}
});
controlPanel.add(new JCheckBox(SpinnerConstants.KEY_VARIANT + " = " + SpinnerConstants.VARIANT_PLUS_MINUS) {
{
addActionListener(e -> spinner.putClientProperty(SpinnerConstants.KEY_VARIANT,
isSelected() ? SpinnerConstants.VARIANT_PLUS_MINUS
: null));
: null));
}
});
controlPanel.add(new JCheckBox(SpinnerConstants.KEY_IS_TREE_EDITOR) {

5
core/src/test/java/ui/tabbedPane/TabbedPaneDemo.java

@ -99,8 +99,9 @@ public class TabbedPaneDemo implements ComponentDemo {
controlPanel.add(new JCheckBox("LeftToRight") {
{
setSelected(tabbedPane.getComponentOrientation().isLeftToRight());
addActionListener(e -> tabbedPane.setComponentOrientation(isSelected() ? ComponentOrientation.LEFT_TO_RIGHT
: ComponentOrientation.RIGHT_TO_LEFT));
addActionListener(e -> tabbedPane.setComponentOrientation(isSelected()
? ComponentOrientation.LEFT_TO_RIGHT
: ComponentOrientation.RIGHT_TO_LEFT));
}
});
controlPanel.add(new JCheckBox(DarkTabbedPaneUI.KEY_CENTER_TABS) {

2
core/src/test/java/ui/table/TableDemo.java

@ -107,7 +107,7 @@ public class TableDemo implements ComponentDemo {
{
setSelected(table.getComponentOrientation().isLeftToRight());
addActionListener(e -> table.setComponentOrientation(isSelected() ? ComponentOrientation.LEFT_TO_RIGHT
: ComponentOrientation.RIGHT_TO_LEFT));
: ComponentOrientation.RIGHT_TO_LEFT));
}
});
controlPanel.add(new JCheckBox(DarkTableUI.KEY_ALTERNATE_ROW_COLOR) {

5
core/src/test/java/ui/text/PasswordFieldDemo.java

@ -60,8 +60,9 @@ public class PasswordFieldDemo implements ComponentDemo {
controlPanel.add(new JCheckBox("LeftToRight") {
{
setEnabled(true);
addActionListener(e -> textField.setComponentOrientation(isSelected() ? ComponentOrientation.LEFT_TO_RIGHT
: ComponentOrientation.RIGHT_TO_LEFT));
addActionListener(e -> textField.setComponentOrientation(isSelected()
? ComponentOrientation.LEFT_TO_RIGHT
: ComponentOrientation.RIGHT_TO_LEFT));
}
});
controlPanel.add(new JCheckBox("JTextComponent.roundedSelection") {

5
core/src/test/java/ui/text/TextFieldDemo.java

@ -60,8 +60,9 @@ public class TextFieldDemo implements ComponentDemo {
controlPanel.add(new JCheckBox("LeftToRight") {
{
setEnabled(true);
addActionListener(e -> textField.setComponentOrientation(isSelected() ? ComponentOrientation.LEFT_TO_RIGHT
: ComponentOrientation.RIGHT_TO_LEFT));
addActionListener(e -> textField.setComponentOrientation(isSelected()
? ComponentOrientation.LEFT_TO_RIGHT
: ComponentOrientation.RIGHT_TO_LEFT));
}
});
controlPanel.add(new JCheckBox("JTextComponent.roundedSelection") {

2
core/src/test/java/ui/tree/TreeDemo.java

@ -85,7 +85,7 @@ public class TreeDemo implements ComponentDemo {
{
setSelected(tree.getComponentOrientation().isLeftToRight());
addActionListener(e -> tree.setComponentOrientation(isSelected() ? ComponentOrientation.LEFT_TO_RIGHT
: ComponentOrientation.RIGHT_TO_LEFT));
: ComponentOrientation.RIGHT_TO_LEFT));
}
});
controlPanel.add(new JCheckBox("show root handles") {

324
darklaf_java.eclipseformat.xml

@ -27,34 +27,26 @@
<profile kind="CodeFormatterProfile" name="Darklaf" version="18">
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_ellipsis" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_declarations" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_allocation_expression"
value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_at_in_annotation_type_declaration"
value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_allocation_expression" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_at_in_annotation_type_declaration" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.parentheses_positions_in_for_statment" value="common_lines"/>
<setting id="org.eclipse.jdt.core.formatter.comment.new_lines_at_block_boundaries" value="true"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_logical_operator" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_parameters"
value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_parameters" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_package" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.parentheses_positions_in_method_invocation" value="common_lines"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_enum_constant"
value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_enum_constant" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.blank_lines_after_imports" value="1"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_while" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags" value="insert"/>
<setting
id="org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_annotation_type_member_declaration"
value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_throws"
value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_annotation_type_member_declaration" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_throws" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.parentheses_positions_in_switch_statement" value="common_lines"/>
<setting id="org.eclipse.jdt.core.formatter.comment.format_javadoc_comments" value="true"/>
<setting id="org.eclipse.jdt.core.formatter.indentation.size" value="4"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_postfix_operator" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.parentheses_positions_in_enum_constant_declaration"
value="common_lines"/>
<setting id="org.eclipse.jdt.core.formatter.parentheses_positions_in_enum_constant_declaration" value="common_lines"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_increments" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_arguments" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_arrow_in_switch_default" value="insert"/>
@ -64,51 +56,40 @@
<setting id="org.eclipse.jdt.core.formatter.disabling_tag" value="@formatter:off"/>
<setting id="org.eclipse.jdt.core.formatter.continuation_indentation" value="2"/>
<setting id="org.eclipse.jdt.core.formatter.number_of_blank_lines_before_code_block" value="0"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_switch_case_expressions"
value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_switch_case_expressions" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.alignment_for_enum_constants" value="49"/>
<setting id="org.eclipse.jdt.core.formatter.blank_lines_before_imports" value="0"/>
<setting id="org.eclipse.jdt.core.formatter.number_of_blank_lines_at_end_of_method_body" value="0"/>
<setting id="org.eclipse.jdt.core.formatter.blank_lines_after_package" value="1"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_local_declarations"
value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_local_declarations" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.parentheses_positions_in_if_while_statement" value="common_lines"/>
<setting id="org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant" value="16"/>
<setting
id="org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_parameterized_type_reference"
value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_parameterized_type_reference" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.comment.indent_root_tags" value="false"/>
<setting id="org.eclipse.jdt.core.formatter.wrap_before_or_operator_multicatch" value="true"/>
<setting id="org.eclipse.jdt.core.formatter.enabling_tag" value="@formatter:on"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_closing_brace_in_block" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.comment.count_line_length_from_starting_position" value="false"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_return"
value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_return" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_method_declaration" value="18"/>
<setting id="org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_parameter"
value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_parameter" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_arrow_in_switch_case" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.wrap_before_multiplicative_operator" value="true"/>
<setting id="org.eclipse.jdt.core.formatter.keep_then_statement_on_same_line" value="false"/>
<setting id="org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_field" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_explicitconstructorcall_arguments"
value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_explicitconstructorcall_arguments" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_prefix_operator" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.blank_lines_between_type_declarations" value="1"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_brace_in_array_initializer"
value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_brace_in_array_initializer" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_for" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_catch" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_arguments"
value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_arguments" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_method" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_switch" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.alignment_for_parameterized_type_references" value="0"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_anonymous_type_declaration"
value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_anonymous_type_declaration" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.alignment_for_logical_operator" value="18"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_parenthesized_expression"
value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_parenthesized_expression" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.keep_annotation_declaration_on_one_line" value="one_line_if_empty"/>
<setting id="org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_enum_constant" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_multiplicative_operator" value="insert"/>
@ -118,61 +99,46 @@
<setting id="org.eclipse.jdt.core.formatter.indent_statements_compare_to_block" value="true"/>
<setting id="org.eclipse.jdt.core.formatter.brace_position_for_anonymous_type_declaration" value="end_of_line"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_question_in_wildcard" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation"
value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_invocation_arguments"
value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_invocation_arguments" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_switch" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.comment.align_tags_descriptions_grouped" value="false"/>
<setting id="org.eclipse.jdt.core.formatter.comment.line_length" value="120"/>
<setting id="org.eclipse.jdt.core.formatter.use_on_off_tags" value="true"/>
<setting id="org.eclipse.jdt.core.formatter.keep_method_body_on_one_line" value="one_line_if_empty"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_between_empty_brackets_in_array_allocation_expression"
value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_between_empty_brackets_in_array_allocation_expression" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.keep_loop_body_block_on_one_line" value="one_line_if_empty"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_constant" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_invocation"
value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_invocation" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_assignment_operator" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_type_declaration"
value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_type_declaration" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_for" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.comment.preserve_white_space_between_code_and_line_comments"
value="false"/>
<setting id="org.eclipse.jdt.core.formatter.comment.preserve_white_space_between_code_and_line_comments" value="false"/>
<setting id="org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_local_variable" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.brace_position_for_method_declaration" value="end_of_line"/>
<setting id="org.eclipse.jdt.core.formatter.blank_lines_before_abstract_method" value="1"/>
<setting id="org.eclipse.jdt.core.formatter.keep_enum_constant_declaration_on_one_line"
value="one_line_if_empty"/>
<setting id="org.eclipse.jdt.core.formatter.keep_enum_constant_declaration_on_one_line" value="one_line_if_empty"/>
<setting id="org.eclipse.jdt.core.formatter.align_variable_declarations_on_columns" value="false"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_invocation"
value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_invocation" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.alignment_for_union_type_in_multicatch" value="18"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_colon_in_for" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.keep_type_declaration_on_one_line" value="one_line_if_single_item"/>
<setting id="org.eclipse.jdt.core.formatter.number_of_blank_lines_at_beginning_of_method_body" value="0"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_arguments"
value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_arguments" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.keep_else_statement_on_same_line" value="false"/>
<setting id="org.eclipse.jdt.core.formatter.parentheses_positions_in_catch_clause" value="common_lines"/>
<setting id="org.eclipse.jdt.core.formatter.alignment_for_additive_operator" value="18"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_parameterized_type_reference"
value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_array_initializer"
value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_field_declarations"
value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_parameterized_type_reference" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_array_initializer" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_field_declarations" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_annotation" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call" value="18"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_relational_operator" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.alignment_for_multiplicative_operator" value="18"/>
<setting id="org.eclipse.jdt.core.formatter.keep_anonymous_type_declaration_on_one_line"
value="one_line_if_single_item"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_switch_case_expressions"
value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.keep_anonymous_type_declaration_on_one_line" value="one_line_if_single_item"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_switch_case_expressions" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.wrap_before_shift_operator" value="true"/>
<setting id="org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_annotation_declaration_header"
value="true"/>
<setting id="org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_annotation_declaration_header" value="true"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_superinterfaces" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_colon_in_default" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_question_in_conditional" value="insert"/>
@ -181,23 +147,19 @@
<setting id="org.eclipse.jdt.core.formatter.brace_position_for_lambda_body" value="end_of_line"/>
<setting id="org.eclipse.jdt.core.formatter.number_of_blank_lines_at_end_of_code_block" value="0"/>
<setting id="org.eclipse.jdt.core.formatter.compact_else_if" value="true"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_parameters"
value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_parameters" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_catch" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_invocation"
value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_invocation" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_bitwise_operator" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.put_empty_statement_on_new_line" value="false"/>
<setting id="org.eclipse.jdt.core.formatter.alignment_for_parameters_in_constructor_declaration" value="18"/>
<setting id="org.eclipse.jdt.core.formatter.alignment_for_type_parameters" value="0"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_invocation_arguments"
value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_invocation_arguments" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation" value="18"/>
<setting id="org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_constructor_declaration" value="18"/>
<setting id="org.eclipse.jdt.core.formatter.alignment_for_compact_loops" value="52"/>
<setting id="org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_block_comment" value="false"/>
<setting id="org.eclipse.jdt.core.formatter.insert_new_line_before_catch_in_try_statement"
value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_new_line_before_catch_in_try_statement" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_try" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.keep_simple_for_body_on_same_line" value="false"/>
<setting id="org.eclipse.jdt.core.formatter.insert_new_line_at_end_of_file_if_missing" value="insert"/>
@ -212,15 +174,13 @@
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_colon_in_case" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_ellipsis" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_additive_operator" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_try_resources"
value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_try_resources" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_colon_in_assert" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_if" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_arguments" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_and_in_type_parameter" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_string_concatenation" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_parenthesized_expression"
value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_parenthesized_expression" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.comment.format_line_comments" value="true"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_colon_in_labeled_statement" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.text_block_indentation" value="0"/>
@ -228,20 +188,16 @@
<setting id="org.eclipse.jdt.core.formatter.alignment_for_assignment" value="0"/>
<setting id="org.eclipse.jdt.core.formatter.alignment_for_module_statements" value="18"/>
<setting id="org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_type_header" value="true"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_declaration"
value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_declaration" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.number_of_blank_lines_after_code_block" value="0"/>
<setting id="org.eclipse.jdt.core.formatter.comment.align_tags_names_descriptions" value="true"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_enum_constant"
value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_enum_constant" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_type_declaration" value="18"/>
<setting id="org.eclipse.jdt.core.formatter.keep_if_then_body_block_on_one_line" value="one_line_if_empty"/>
<setting id="org.eclipse.jdt.core.formatter.blank_lines_before_first_class_body_declaration" value="0"/>
<setting id="org.eclipse.jdt.core.formatter.alignment_for_conditional_expression" value="18"/>
<setting id="org.eclipse.jdt.core.formatter.insert_new_line_before_closing_brace_in_array_initializer"
value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_parameters"
value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.alignment_for_conditional_expression" value="16"/>
<setting id="org.eclipse.jdt.core.formatter.insert_new_line_before_closing_brace_in_array_initializer" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_parameters" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.format_guardian_clause_on_one_line" value="false"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_if" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.align_assignment_statements_on_columns" value="false"/>
@ -250,33 +206,27 @@
<setting id="org.eclipse.jdt.core.formatter.brace_position_for_enum_declaration" value="end_of_line"/>
<setting id="org.eclipse.jdt.core.formatter.brace_position_for_block_in_case" value="end_of_line"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_arrow_in_switch_default" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_constructor_declaration"
value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_constructor_declaration" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.comment.insert_new_line_between_different_tags" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.alignment_for_conditional_expression_chain" value="18"/>
<setting id="org.eclipse.jdt.core.formatter.alignment_for_conditional_expression_chain" value="16"/>
<setting id="org.eclipse.jdt.core.formatter.comment.format_header" value="true"/>
<setting id="org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression" value="18"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_additive_operator" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_invocation"
value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_invocation" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_while" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_switch" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.alignment_for_method_declaration" value="0"/>
<setting id="org.eclipse.jdt.core.formatter.join_wrapped_lines" value="false"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_constructor_declaration"
value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_constructor_declaration" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.wrap_before_conditional_operator" value="true"/>
<setting id="org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_cases" value="true"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_allocation_expression"
value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_synchronized"
value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_allocation_expression" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_synchronized" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.alignment_for_shift_operator" value="0"/>
<setting id="org.eclipse.jdt.core.formatter.align_fields_grouping_blank_lines" value="2147483647"/>
<setting id="org.eclipse.jdt.core.formatter.comment.new_lines_at_javadoc_boundaries" value="true"/>
<setting id="org.eclipse.jdt.core.formatter.alignment_for_bitwise_operator" value="18"/>
<setting id="org.eclipse.jdt.core.formatter.brace_position_for_annotation_type_declaration"
value="end_of_line"/>
<setting id="org.eclipse.jdt.core.formatter.brace_position_for_annotation_type_declaration" value="end_of_line"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_colon_in_for" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.alignment_for_resources_in_try" value="82"/>
<setting id="org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations" value="false"/>
@ -284,19 +234,15 @@
<setting id="org.eclipse.jdt.core.formatter.alignment_for_selector_in_method_invocation" value="18"/>
<setting id="org.eclipse.jdt.core.formatter.never_indent_block_comments_on_first_column" value="false"/>
<setting id="org.eclipse.jdt.core.formatter.keep_code_block_on_one_line" value="one_line_if_empty"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_synchronized"
value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_throws"
value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_synchronized" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_throws" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.tabulation.size" value="4"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_bitwise_operator" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_allocation_expression" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_reference"
value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_reference" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_colon_in_conditional" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.comment.format_source_code" value="true"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_array_initializer"
value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_array_initializer" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_try" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_try_resources" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.blank_lines_before_field" value="0"/>
@ -306,145 +252,102 @@
<setting id="org.eclipse.jdt.core.formatter.blank_lines_before_method" value="1"/>
<setting id="org.eclipse.jdt.core.formatter.alignment_for_superclass_in_type_declaration" value="18"/>
<setting id="org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_enum_declaration" value="16"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_throw"
value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_throw" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.wrap_before_assignment_operator" value="false"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_colon_in_labeled_statement"
value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_colon_in_labeled_statement" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_not_operator" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.brace_position_for_switch" value="end_of_line"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_superinterfaces"
value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_parameters"
value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_superinterfaces" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_parameters" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_new_line_after_type_annotation" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_brace_in_array_initializer"
value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_parenthesized_expression"
value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_brace_in_array_initializer" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_parenthesized_expression" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.comment.format_html" value="true"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation_type_declaration"
value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_parameters"
value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation_type_declaration" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_parameters" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.parentheses_positions_in_method_delcaration" value="common_lines"/>
<setting id="org.eclipse.jdt.core.formatter.alignment_for_compact_if" value="52"/>
<setting id="org.eclipse.jdt.core.formatter.keep_lambda_body_block_on_one_line"
value="one_line_if_single_item"/>
<setting id="org.eclipse.jdt.core.formatter.keep_lambda_body_block_on_one_line" value="one_line_if_single_item"/>
<setting id="org.eclipse.jdt.core.formatter.indent_empty_lines" value="false"/>
<setting id="org.eclipse.jdt.core.formatter.alignment_for_type_arguments" value="0"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_parameterized_type_reference"
value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_parameterized_type_reference" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_unary_operator" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_enum_constant"
value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_enum_constant" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.alignment_for_arguments_in_annotation" value="18"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_declarations"
value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_declarations" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.keep_empty_array_initializer_on_one_line" value="false"/>
<setting id="org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_switch" value="true"/>
<setting id="org.eclipse.jdt.core.formatter.insert_new_line_before_else_in_if_statement" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_assignment_operator" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_constructor_declaration"
value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_constructor_declaration" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.blank_lines_before_new_chunk" value="-2"/>
<setting id="org.eclipse.jdt.core.formatter.insert_new_line_after_label" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_declaration_header"
value="true"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_allocation_expression"
value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_constructor_declaration"
value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_declaration_header" value="true"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_allocation_expression" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_constructor_declaration" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_colon_in_conditional" value="insert"/>
<setting
id="org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_parameterized_type_reference"
value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_parameters"
value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_arguments"
value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_parameterized_type_reference" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_parameters" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_arguments" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_cast" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_arrow_in_switch_case" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_colon_in_assert" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.blank_lines_before_member_type" value="1"/>
<setting id="org.eclipse.jdt.core.formatter.insert_new_line_before_while_in_do_statement"
value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_new_line_before_while_in_do_statement" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_logical_operator" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_type_reference"
value="do not insert"/>
<setting
id="org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_parameterized_type_reference"
value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.alignment_for_arguments_in_qualified_allocation_expression"
value="18"/>
<setting id="org.eclipse.jdt.core.formatter.insert_new_line_after_opening_brace_in_array_initializer"
value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_type_reference" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_parameterized_type_reference" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.alignment_for_arguments_in_qualified_allocation_expression" value="18"/>
<setting id="org.eclipse.jdt.core.formatter.insert_new_line_after_opening_brace_in_array_initializer" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.indent_breaks_compare_to_cases" value="true"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_declaration"
value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_declaration" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.wrap_before_bitwise_operator" value="true"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_if" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_semicolon" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.wrap_before_relational_operator" value="true"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_postfix_operator" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_try" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_arguments"
value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_arguments" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_cast" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.comment.format_block_comments" value="true"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_lambda_arrow" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_declaration"
value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_declaration" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.comment.indent_tag_description" value="false"/>
<setting id="org.eclipse.jdt.core.formatter.keep_imple_if_on_one_line" value="true"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_declaration"
value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_declaration" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.alignment_for_parameters_in_method_declaration" value="18"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_between_brackets_in_array_type_reference"
value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_parameters"
value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_between_brackets_in_array_type_reference" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_parameters" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.alignment_for_string_concatenation" value="18"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_for" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_throws"
value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_allocation_expression"
value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_throws" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_allocation_expression" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.blank_lines_after_last_class_body_declaration" value="-1"/>
<setting id="org.eclipse.jdt.core.formatter.indent_statements_compare_to_body" value="true"/>
<setting id="org.eclipse.jdt.core.formatter.alignment_for_multiple_fields" value="16"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_constant_arguments"
value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_constant_arguments" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.keep_simple_while_body_on_same_line" value="false"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_prefix_operator" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.brace_position_for_array_initializer" value="end_of_line"/>
<setting id="org.eclipse.jdt.core.formatter.wrap_before_logical_operator" value="true"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_shift_operator" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_method_declaration"
value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_method_declaration" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_parameters" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_catch" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.blank_lines_between_statement_group_in_switch" value="0"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_reference"
value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_reference" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_annotation" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_constant_arguments"
value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_constant_arguments" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.parentheses_positions_in_lambda_declaration" value="common_lines"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_shift_operator" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_between_empty_braces_in_array_initializer"
value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_between_empty_braces_in_array_initializer" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_colon_in_case" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_local_declarations"
value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_local_declarations" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.keep_simple_do_while_body_on_same_line" value="false"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_annotation_type_declaration"
value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_reference"
value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_annotation_type_declaration" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_reference" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.keep_enum_declaration_on_one_line" value="one_line_never"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_declaration"
value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_declaration" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.wrap_outer_expressions_when_nested" value="true"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_closing_paren_in_cast" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.brace_position_for_enum_constant" value="end_of_line"/>
@ -454,46 +357,33 @@
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_for" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_synchronized" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_increments" value="do not insert"/>
<setting
id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation_type_member_declaration"
value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation_type_member_declaration" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.alignment_for_expressions_in_for_loop_header" value="18"/>
<setting id="org.eclipse.jdt.core.formatter.wrap_before_additive_operator" value="true"/>
<setting id="org.eclipse.jdt.core.formatter.keep_simple_getter_setter_on_one_line" value="false"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_while" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_enum_constant"
value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_explicitconstructorcall_arguments"
value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_annotation"
value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_parameters"
value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_constant_header"
value="true"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_enum_constant" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_explicitconstructorcall_arguments" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_annotation" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_parameters" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_constant_header" value="true"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_string_concatenation" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_lambda_arrow" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_constructor_declaration"
value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_throws"
value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_constructor_declaration" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_throws" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.join_lines_in_comments" value="false"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_parameters"
value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_parameters" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_question_in_conditional" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.comment.indent_parameter_description" value="false"/>
<setting id="org.eclipse.jdt.core.formatter.number_of_blank_lines_at_beginning_of_code_block" value="0"/>
<setting id="org.eclipse.jdt.core.formatter.insert_new_line_before_finally_in_try_statement"
value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_new_line_before_finally_in_try_statement" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.tabulation.char" value="space"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_relational_operator" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_field_declarations"
value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_field_declarations" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.wrap_before_string_concatenation" value="true"/>
<setting id="org.eclipse.jdt.core.formatter.blank_lines_between_import_groups" value="1"/>
<setting id="org.eclipse.jdt.core.formatter.lineSplit" value="120"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_annotation"
value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_annotation" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_switch" value="insert"/>
</profile>
</profiles>

8
property-loader/src/main/java/com/github/weisj/darklaf/PropertyLoader.java

@ -214,8 +214,8 @@ public final class PropertyLoader {
final Color color = ColorUtil.fromHex(value, null);
final Integer invVal = getInteger(value);
final Boolean boolVal = PropertyValue.TRUE.equalsIgnoreCase(value)
? Boolean.TRUE
: PropertyValue.FALSE.equalsIgnoreCase(value) ? Boolean.FALSE : null;
? Boolean.TRUE
: PropertyValue.FALSE.equalsIgnoreCase(value) ? Boolean.FALSE : null;
if (color != null && (value.length() == 6 || value.length() == 8)) {
return new ColorUIResource(color);
} else if (invVal != null) {
@ -257,11 +257,11 @@ public final class PropertyLoader {
"Maybe is a forward reference");
}
Object returnVal = accumulatorContainsKey ? accumulator.get(val)
: currentDefault.get(val);
: currentDefault.get(val);
if (addReferenceInfo) {
if (returnVal == null) {
returnVal = accumulatorContainsKey ? accumulator.get(referenceFreeKey)
: currentDefault.get(val);
: currentDefault.get(val);
}
returnVal = new Pair<>(value, returnVal);
}

6
property-loader/src/main/java/com/github/weisj/darklaf/icons/StateIcon.java

@ -81,9 +81,9 @@ public class StateIcon implements Icon {
boolean enabled = b.isEnabled();
boolean hasFocus = b.hasFocus();
Icon icn = selected ? enabled ? hasFocus ? selectedFocusedIcon : selectedIcon
: selectedDisabledIcon
: enabled ? hasFocus ? focusedIcon : icon
: disabledIcon;
: selectedDisabledIcon
: enabled ? hasFocus ? focusedIcon : icon
: disabledIcon;
return icn != null ? icn : EmptyIcon.create(0);
}

2
theme/src/main/java/com/github/weisj/darklaf/theme/info/DefaultThemeProvider.java

@ -85,7 +85,7 @@ public class DefaultThemeProvider implements ThemeProvider {
boolean dark = themeStyle.getColorToneRule() == ColorToneRule.DARK;
boolean highContrast = themeStyle.getContrastRule() == ContrastRule.HIGH_CONTRAST;
Theme theme = dark ? highContrast ? darkHighContrastTheme : darkTheme
: highContrast ? lightHighContrastTheme : lightTheme;
: highContrast ? lightHighContrastTheme : lightTheme;
return theme.derive(themeStyle.getFontSizeRule(), themeStyle.getAccentColorRule());
}

2
windows/src/main/java/com/github/weisj/darklaf/platform/windows/PointerUtil.java

@ -40,7 +40,7 @@ public class PointerUtil {
*/
public static long getHWND(final Component component) {
Window window = component instanceof Window ? (Window) component
: SwingUtilities.getWindowAncestor(component);
: SwingUtilities.getWindowAncestor(component);
return Native.getComponentID(window);
}
}

8
windows/src/main/java/com/github/weisj/darklaf/platform/windows/ui/WindowsTitlePane.java

@ -173,8 +173,8 @@ public class WindowsTitlePane extends CustomTitlePane {
public Insets getWindowSizeAdjustment() {
// Compensate for the insets of the native window peer that include the decorations.
Insets insets = window != null && windowHandle != 0
? window.getInsets()
: new Insets(0, 0, 0, 0);
? window.getInsets()
: new Insets(0, 0, 0, 0);
insets.set(-insets.top, -insets.left, -insets.bottom, -insets.right);
return insets;
}
@ -566,7 +566,7 @@ public class WindowsTitlePane extends CustomTitlePane {
protected boolean isLeftToRight(final Window window) {
return (window == null) ? getRootPane().getComponentOrientation().isLeftToRight()
: window.getComponentOrientation().isLeftToRight();
: window.getComponentOrientation().isLeftToRight();
}
private void updateSystemIcon() {
@ -703,7 +703,7 @@ public class WindowsTitlePane extends CustomTitlePane {
.getIconHeight(),
windowIconButton.getIcon()
.getIconWidth())
: ICON_WIDTH;
: ICON_WIDTH;
windowButtonWidth = Math.min(ICON_WIDTH, windowButtonWidth);
windowIconButton.setBounds(start + PAD, y, windowButtonWidth, height);
start += windowButtonWidth + 2 * PAD;

Loading…
Cancel
Save