File tree Expand file tree Collapse file tree 6 files changed +10
-10
lines changed
src/main/java/cn/bigcoder/plugin/objecthelper Expand file tree Collapse file tree 6 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ public void actionPerformed(@NotNull AnActionEvent anAction) {
3030
3131 @ Override
3232 public boolean actionShow (AnActionEvent anActionEvent ) {
33- return PluginConfigState .getInstance ().getJsonSwitch () == FunctionSwitchEnum .OPEN
33+ return PluginConfigState .getInstance ().getJsonSwitch () == FunctionSwitchEnum .ENABLE
3434 && getOperatePsiClass (anActionEvent ) != null ;
3535 }
3636
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ public void actionPerformed(@NotNull AnActionEvent anActionEvent) {
3131
3232 @ Override
3333 public boolean actionShow (@ NotNull AnActionEvent anActionEvent ) {
34- return PluginConfigState .getInstance ().getThriftSwitch () == FunctionSwitchEnum .OPEN
34+ return PluginConfigState .getInstance ().getThriftSwitch () == FunctionSwitchEnum .ENABLE
3535 && getOperatePsiClass (anActionEvent ) != null ;
3636 }
3737}
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ public void actionPerformed(@NotNull AnActionEvent anAction) {
2828
2929 @ Override
3030 public boolean actionShow (@ NotNull AnActionEvent anActionEvent ) {
31- return PluginConfigState .getInstance ().getXmlSwitch () == FunctionSwitchEnum .OPEN
31+ return PluginConfigState .getInstance ().getXmlSwitch () == FunctionSwitchEnum .ENABLE
3232 && getOperatePsiClass (anActionEvent ) != null ;
3333 }
3434
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ public void actionPerformed(AnActionEvent anActionEvent) {
2525
2626 @ Override
2727 public boolean actionShow (AnActionEvent anActionEvent ) {
28- return PluginConfigState .getInstance ().getObjectCopySwitch () == FunctionSwitchEnum .OPEN
28+ return PluginConfigState .getInstance ().getObjectCopySwitch () == FunctionSwitchEnum .ENABLE
2929 && check (PsiUtils .getCursorPsiMethod (anActionEvent ));
3030 }
3131
Original file line number Diff line number Diff line change 55 * @date: 2023-12-24
66 **/
77public enum FunctionSwitchEnum implements CommonEnum {
8- OPEN ( "open " ),
9- CLOSE ( "close " ),
8+ ENABLE ( "enable " ),
9+ DISABLE ( "disable " ),
1010 ;
1111 private String code ;
1212
Original file line number Diff line number Diff line change @@ -14,19 +14,19 @@ public class PluginConfigModel {
1414 /**
1515 * 是否开启 Class To Json 功能,默认为开启状态
1616 */
17- private FunctionSwitchEnum jsonSwitch = FunctionSwitchEnum .OPEN ;
17+ private FunctionSwitchEnum jsonSwitch = FunctionSwitchEnum .ENABLE ;
1818 /**
1919 * 是否开启 Class To Thrift IDL 功能,默认为开启状态
2020 */
21- private FunctionSwitchEnum thriftSwitch = FunctionSwitchEnum .OPEN ;
21+ private FunctionSwitchEnum thriftSwitch = FunctionSwitchEnum .ENABLE ;
2222 /**
2323 * 是否开启 Class To XML 功能,默认为开启状态
2424 */
25- private FunctionSwitchEnum xmlSwitch = FunctionSwitchEnum .OPEN ;
25+ private FunctionSwitchEnum xmlSwitch = FunctionSwitchEnum .ENABLE ;
2626 /**
2727 * 是否开启 Object Copy Method 功能,默认为开启状态
2828 */
29- private FunctionSwitchEnum objectCopySwitch = FunctionSwitchEnum .OPEN ;
29+ private FunctionSwitchEnum objectCopySwitch = FunctionSwitchEnum .ENABLE ;
3030 /**
3131 * Object Copy Method 功能中,以Source/Target对象为基础生成字段拷贝
3232 */
You can’t perform that action at this time.
0 commit comments