-
Notifications
You must be signed in to change notification settings - Fork 759
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Remove deprecated VimScriptGlobalEnvironment.java"
This reverts commit 5c64ebf.
- Loading branch information
Showing
3 changed files
with
76 additions
and
0 deletions.
There are no files selected for viewing
38 changes: 38 additions & 0 deletions
38
src/main/java/com/maddyhome/idea/vim/ex/vimscript/VimScriptGlobalEnvironment.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
/* | ||
* Copyright 2003-2023 The IdeaVim authors | ||
* | ||
* Use of this source code is governed by an MIT-style | ||
* license that can be found in the LICENSE.txt file or at | ||
* https://opensource.org/licenses/MIT. | ||
*/ | ||
|
||
package com.maddyhome.idea.vim.ex.vimscript; | ||
|
||
import org.jetbrains.annotations.ApiStatus; | ||
import org.jetbrains.annotations.NotNull; | ||
|
||
import java.util.HashMap; | ||
import java.util.Map; | ||
|
||
/** | ||
* @author vlan | ||
*/ | ||
|
||
@Deprecated() // please use VariableService instead | ||
@ApiStatus.ScheduledForRemoval(inVersion = "1.12") | ||
public class VimScriptGlobalEnvironment { | ||
private static final VimScriptGlobalEnvironment ourInstance = new VimScriptGlobalEnvironment(); | ||
|
||
private final Map<String, Object> myVariables = new HashMap<>(); | ||
|
||
private VimScriptGlobalEnvironment() { | ||
} | ||
|
||
public static @NotNull VimScriptGlobalEnvironment getInstance() { | ||
return ourInstance; | ||
} | ||
|
||
public @NotNull Map<String, Object> getVariables() { | ||
return myVariables; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters