Skip to content

Commit 6527b4a

Browse files
committed
Fixed depreciation warning
1 parent 2b1a862 commit 6527b4a

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

src/de/halirutan/mathematica/codeinsight/folding/MathematicaCodeFoldingSettingsImpl.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
*/
3131
@State(
3232
name = "MathematicaCodeFoldingSettingsImpl",
33-
storages = @Storage(file = StoragePathMacros.APP_CONFIG + "/editor.codeinsight.xml")
33+
storages = @Storage(file = "editor.codeinsight.xml")
3434
)
3535
public class MathematicaCodeFoldingSettingsImpl implements MathematicaCodeFoldingSettings,PersistentStateComponent<MathematicaCodeFoldingSettingsImpl> {
3636

@@ -40,14 +40,15 @@ public static MathematicaCodeFoldingSettingsImpl getInstance() {
4040

4141
@Override
4242
public boolean isCollapseNamedCharacters() {
43-
return COLLAPSE_NAMED_CHARACTERS;
43+
return myCollapseNamedCharacters;
4444
}
4545

46+
@SuppressWarnings("unused")
4647
public void setCollapseNamedCharacters(final boolean state) {
47-
this.COLLAPSE_NAMED_CHARACTERS = state;
48+
this.myCollapseNamedCharacters = state;
4849
}
4950

50-
public boolean COLLAPSE_NAMED_CHARACTERS = true;
51+
private boolean myCollapseNamedCharacters = true;
5152

5253
@Nullable
5354
@Override

src/de/halirutan/mathematica/codeinsight/folding/MathematicaFoldingOptionProvider.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
public class MathematicaFoldingOptionProvider extends BeanConfigurable<MathematicaCodeFoldingSettingsImpl> implements CodeFoldingOptionsProvider {
3131
protected MathematicaFoldingOptionProvider() {
3232
super(MathematicaCodeFoldingSettingsImpl.getInstance());
33-
checkBox("COLLAPSE_NAMED_CHARACTERS", "Collapse Mathematica Named Characters");
33+
checkBox("CollapseNamedCharacters", "Collapse Mathematica Named Characters");
3434
}
3535

3636
}

0 commit comments

Comments
 (0)