This is an automated email from the ASF dual-hosted git repository.
neilcsmith pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/netbeans.git
The following commit(s) were added to refs/heads/master by this push:
new 9d4a5ea01a Enable inline hints by default
new c309d9059f Merge pull request #4358 from jtulach/EnableInlineHints
9d4a5ea01a is described below
commit 9d4a5ea01af88b31b12e54067a3a0de59d595628
Author: Jaroslav Tulach <[email protected]>
AuthorDate: Sun Jul 10 07:08:50 2022 +0200
Enable inline hints by default
---
.../src/org/netbeans/modules/editor/actions/ShowInlineHintsAction.java | 2 +-
.../src/org/netbeans/modules/editor/lib2/view/DocumentViewOp.java | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git
a/ide/editor.actions/src/org/netbeans/modules/editor/actions/ShowInlineHintsAction.java
b/ide/editor.actions/src/org/netbeans/modules/editor/actions/ShowInlineHintsAction.java
index a97a8efeaa..046569d935 100644
---
a/ide/editor.actions/src/org/netbeans/modules/editor/actions/ShowInlineHintsAction.java
+++
b/ide/editor.actions/src/org/netbeans/modules/editor/actions/ShowInlineHintsAction.java
@@ -29,7 +29,7 @@ import org.netbeans.api.editor.EditorActionRegistration;
preferencesDefault=ShowInlineHintsAction.DEF_LINES)
public class ShowInlineHintsAction extends AbstractAction {
public static final String KEY_LINES = "enable.inline.hints";
- public static final boolean DEF_LINES = false;
+ public static final boolean DEF_LINES = true;
@Override
public void actionPerformed(ActionEvent e) {
}
diff --git
a/ide/editor.lib2/src/org/netbeans/modules/editor/lib2/view/DocumentViewOp.java
b/ide/editor.lib2/src/org/netbeans/modules/editor/lib2/view/DocumentViewOp.java
index 3eceac78c2..06cbd5a31f 100644
---
a/ide/editor.lib2/src/org/netbeans/modules/editor/lib2/view/DocumentViewOp.java
+++
b/ide/editor.lib2/src/org/netbeans/modules/editor/lib2/view/DocumentViewOp.java
@@ -924,7 +924,7 @@ public final class DocumentViewOp
float lineHeightCorrectionOrig = rowHeightCorrection;
rowHeightCorrection =
prefs.getFloat(SimpleValueNames.LINE_HEIGHT_CORRECTION, 1.0f);
boolean inlineHintsEnableOrig = inlineHintsEnable;
- inlineHintsEnable =
Boolean.TRUE.equals(prefs.getBoolean("enable.inline.hints", false)); // NOI18N
+ inlineHintsEnable =
Boolean.TRUE.equals(prefs.getBoolean("enable.inline.hints", true)); // NOI18N
boolean updateMetrics = (rowHeightCorrection !=
lineHeightCorrectionOrig);
boolean releaseChildren = nonInitialUpdate &&
((nonPrintableCharactersVisible !=
nonPrintableCharactersVisibleOrig) ||
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists