mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
UISettings — use smart state class (stored properties), part 7
This commit is contained in:
@@ -524,7 +524,7 @@ public final class XXXXX extends UserDataHolderBase implements EditorEx, Highlig
|
||||
myGutterComponent = new EditorGutterComponentImpl(this);
|
||||
initComponent();
|
||||
myScrollingModel = new ScrollingModelImpl(this);
|
||||
if (UISettings.getInstance().PRESENTATION_MODE) {
|
||||
if (UISettings.getInstance().getPresentationMode()) {
|
||||
setFontSize(UISettings.getInstance().PRESENTATION_MODE_FONT_SIZE);
|
||||
}
|
||||
|
||||
@@ -6907,7 +6907,7 @@ public final class XXXXX extends UserDataHolderBase implements EditorEx, Highlig
|
||||
}
|
||||
|
||||
boolean isInPresentationMode() {
|
||||
return UISettings.getInstance().PRESENTATION_MODE && EditorUtil.isRealFileEditor(this);
|
||||
return UISettings.getInstance().getPresentationMode() && EditorUtil.isRealFileEditor(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -7000,7 +7000,7 @@ public final class XXXXX extends UserDataHolderBase implements EditorEx, Highlig
|
||||
toolWindowIsNotEmpty();
|
||||
//noinspection ConstantConditions
|
||||
Component header = myHeaderPanel == null ? null : ArrayUtil.getFirstElement(myHeaderPanel.getComponents());
|
||||
boolean paintTop = thereIsSomethingAbove && header == null && UISettings.getInstance().EDITOR_TAB_PLACEMENT != SwingConstants.TOP;
|
||||
boolean paintTop = thereIsSomethingAbove && header == null && UISettings.getInstance().getEditorTabPlacement() != SwingConstants.TOP;
|
||||
return splitters == null ? super.getBorderInsets(c) : new Insets(paintTop ? 1 : 0, 0, 0, 0);
|
||||
}
|
||||
|
||||
|
||||
@@ -547,7 +547,7 @@ public final class YYYYYYY extends UserDataHolderBase implements EditorEx, Highl
|
||||
myGutterComponent = new EditorGutterComponentImpl(this);
|
||||
initComponent();
|
||||
myScrollingModel = new ScrollingModelImpl(this);
|
||||
if (UISettings.getInstance().PRESENTATION_MODE) {
|
||||
if (UISettings.getInstance().getPresentationMode()) {
|
||||
setFontSize(UISettings.getInstance().PRESENTATION_MODE_FONT_SIZE);
|
||||
}
|
||||
|
||||
@@ -6902,7 +6902,7 @@ public final class YYYYYYY extends UserDataHolderBase implements EditorEx, Highl
|
||||
}
|
||||
|
||||
boolean isInPresentationMode() {
|
||||
return UISettings.getInstance().PRESENTATION_MODE && EditorUtil.isRealFileEditor(this);
|
||||
return UISettings.getInstance().getPresentationMode() && EditorUtil.isRealFileEditor(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -6996,7 +6996,7 @@ public final class YYYYYYY extends UserDataHolderBase implements EditorEx, Highl
|
||||
toolWindowIsNotEmpty();
|
||||
//noinspection ConstantConditions
|
||||
Component header = myHeaderPanel == null ? null : ArrayUtil.getFirstElement(myHeaderPanel.getComponents());
|
||||
boolean paintTop = thereIsSomethingAbove && header == null && UISettings.getInstance().EDITOR_TAB_PLACEMENT != SwingConstants.TOP;
|
||||
boolean paintTop = thereIsSomethingAbove && header == null && UISettings.getInstance().getEditorTabPlacement() != SwingConstants.TOP;
|
||||
return splitters == null ? super.getBorderInsets(c) : new Insets(paintTop ? 1 : 0, 0, 0, 0);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user