diff --git a/src/intellij_plugin/cmake2gn/gn_IntelliJ_plugin/src/com/sk/gn/action/SelectBankAction.java b/src/intellij_plugin/cmake2gn/gn_IntelliJ_plugin/src/com/sk/gn/action/SelectBankAction.java index ffa40a7cfcf0d90efcb2f109f496cb2ce227410f..7a237b4f283d8b087da62c70f9a84ef808147578 100644 --- a/src/intellij_plugin/cmake2gn/gn_IntelliJ_plugin/src/com/sk/gn/action/SelectBankAction.java +++ b/src/intellij_plugin/cmake2gn/gn_IntelliJ_plugin/src/com/sk/gn/action/SelectBankAction.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/intellij_plugin/cmake2gn/gn_IntelliJ_plugin/src/com/sk/gn/action/SelectOriginCodeAction.java b/src/intellij_plugin/cmake2gn/gn_IntelliJ_plugin/src/com/sk/gn/action/SelectOriginCodeAction.java index affb62760a1704d0c5c1185ccde393a0cd3a6da1..61d153a8c772b062859a5d3e2f5d8b06d6e0c913 100644 --- a/src/intellij_plugin/cmake2gn/gn_IntelliJ_plugin/src/com/sk/gn/action/SelectOriginCodeAction.java +++ b/src/intellij_plugin/cmake2gn/gn_IntelliJ_plugin/src/com/sk/gn/action/SelectOriginCodeAction.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/intellij_plugin/cmake2gn/gn_IntelliJ_plugin/src/com/sk/gn/dialog/ConfirmDialog.java b/src/intellij_plugin/cmake2gn/gn_IntelliJ_plugin/src/com/sk/gn/dialog/ConfirmDialog.java index a880debc78579acf9aa700a05006f04f87bbe9e6..515f83020767314012b6d73c327d4cc17b03a014 100644 --- a/src/intellij_plugin/cmake2gn/gn_IntelliJ_plugin/src/com/sk/gn/dialog/ConfirmDialog.java +++ b/src/intellij_plugin/cmake2gn/gn_IntelliJ_plugin/src/com/sk/gn/dialog/ConfirmDialog.java @@ -1,11 +1,10 @@ /* - * Copyright (c) 2022 Guangzhou Digitalchina Information Technology Co., Ltd. - * All rights reserved. + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -13,6 +12,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.sk.gn.dialog; import com.intellij.openapi.ui.DialogWrapper; @@ -32,6 +32,7 @@ public class ConfirmDialog extends DialogWrapper { /** * 构造函数 + * * @param message 弹出框信息内容 */ public ConfirmDialog(String message) { diff --git a/src/intellij_plugin/cmake2gn/gn_IntelliJ_plugin/src/com/sk/gn/dialog/ConfirmDialogPane.java b/src/intellij_plugin/cmake2gn/gn_IntelliJ_plugin/src/com/sk/gn/dialog/ConfirmDialogPane.java index f083c554abd11715f8ebd9ba6ab5deb8b0ce7150..7052aab899e4bb56fd597d126168e9208557b45b 100644 --- a/src/intellij_plugin/cmake2gn/gn_IntelliJ_plugin/src/com/sk/gn/dialog/ConfirmDialogPane.java +++ b/src/intellij_plugin/cmake2gn/gn_IntelliJ_plugin/src/com/sk/gn/dialog/ConfirmDialogPane.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/intellij_plugin/cmake2gn/gn_IntelliJ_plugin/src/com/sk/gn/dialog/ErrorDialog.java b/src/intellij_plugin/cmake2gn/gn_IntelliJ_plugin/src/com/sk/gn/dialog/ErrorDialog.java index 589dfbb0a3a30de31c50c3625f1544462d9660d2..9dc1d02bd5f3999db9ae4661a57bec7a9f8b72b2 100644 --- a/src/intellij_plugin/cmake2gn/gn_IntelliJ_plugin/src/com/sk/gn/dialog/ErrorDialog.java +++ b/src/intellij_plugin/cmake2gn/gn_IntelliJ_plugin/src/com/sk/gn/dialog/ErrorDialog.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -68,6 +68,7 @@ public class ErrorDialog extends JDialog { addWindowListener(new WindowAdapter() { /** * close dialog + * * @param windowEvent WindowEvent */ @Override diff --git a/src/intellij_plugin/cmake2gn/gn_IntelliJ_plugin/src/com/sk/gn/dialog/GenDialogPane.java b/src/intellij_plugin/cmake2gn/gn_IntelliJ_plugin/src/com/sk/gn/dialog/GenDialogPane.java index ddf1bd5ce916aaa61006f091e3e09674b421d923..7d9a65c0c51abc4244640dd33c214fb81449f459 100644 --- a/src/intellij_plugin/cmake2gn/gn_IntelliJ_plugin/src/com/sk/gn/dialog/GenDialogPane.java +++ b/src/intellij_plugin/cmake2gn/gn_IntelliJ_plugin/src/com/sk/gn/dialog/GenDialogPane.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -71,7 +71,7 @@ public class GenDialogPane extends JDialog implements SelectOutDirAction.SelectP private JButton selectTransplantButton; private JButton selectScriptButton; private JTextField subsystemTextField; - private JTextField test_partTextField; + private JTextField testPartTextField; private JTextField compileTextField; private JTextField inputScriptTextField; private JComboBox comboBox; @@ -256,7 +256,7 @@ public class GenDialogPane extends JDialog implements SelectOutDirAction.SelectP createCopyResMakeRawFile(); createCopyResToolChainFile(); GenNotification.notifyMessage(this.project, "", "正在生成", NotificationType.INFORMATION); - String command; + String command = ''; command = genCommand(); try { if (!TextUtils.isEmpty(command) && callExtProcess(command)) { @@ -424,7 +424,7 @@ public class GenDialogPane extends JDialog implements SelectOutDirAction.SelectP private void genResultLog(Process process) { BufferedReader stdInput = new BufferedReader(new InputStreamReader(process.getInputStream())); BufferedReader stdError = new BufferedReader(new InputStreamReader(process.getErrorStream())); - String sErr; + String sErr = ''; String sOut; sErr = getErrorResult(stdError); if (TextUtils.isEmpty(sErr)) { diff --git a/src/intellij_plugin/cmake2gn/gn_IntelliJ_plugin/src/com/sk/gn/dialog/GenGenerateDialog.java b/src/intellij_plugin/cmake2gn/gn_IntelliJ_plugin/src/com/sk/gn/dialog/GenGenerateDialog.java index 0429418b43b8a50339614ade10c241f232091f67..3ade2fc0d63c1fe7e372b7cc2a324063d63e7a8b 100644 --- a/src/intellij_plugin/cmake2gn/gn_IntelliJ_plugin/src/com/sk/gn/dialog/GenGenerateDialog.java +++ b/src/intellij_plugin/cmake2gn/gn_IntelliJ_plugin/src/com/sk/gn/dialog/GenGenerateDialog.java @@ -1,11 +1,10 @@ /* - * Copyright (c) 2022 Guangzhou Digitalchina Information Technology Co., Ltd. - * All rights reserved. + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -109,9 +108,9 @@ public class GenGenerateDialog extends DialogWrapper { /** * 自定义 ok Action */ - protected class CustomOKAction extends DialogWrapperAction { + protected class CustomOkAction extends DialogWrapperAction { - protected CustomOKAction() { + protected CustomOkAction() { super("OK"); } diff --git a/src/intellij_plugin/cmake2gn/gn_IntelliJ_plugin/src/com/sk/gn/dialog/GenResultDialog.java b/src/intellij_plugin/cmake2gn/gn_IntelliJ_plugin/src/com/sk/gn/dialog/GenResultDialog.java index 42f8eecb01853b25772a25ed238698e6d1f8a93b..d9b594b9cc0cfa5b6a00fcb77ccbe773e23bcf05 100644 --- a/src/intellij_plugin/cmake2gn/gn_IntelliJ_plugin/src/com/sk/gn/dialog/GenResultDialog.java +++ b/src/intellij_plugin/cmake2gn/gn_IntelliJ_plugin/src/com/sk/gn/dialog/GenResultDialog.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/intellij_plugin/cmake2gn/gn_IntelliJ_plugin/src/com/sk/gn/ng/GnDTS.java b/src/intellij_plugin/cmake2gn/gn_IntelliJ_plugin/src/com/sk/gn/ng/GnDTS.java index ebd170b247acd673f87531f0ccec05ace83941e9..5d824dfd0765184b41f7b2012b43b1df8a6defe1 100644 --- a/src/intellij_plugin/cmake2gn/gn_IntelliJ_plugin/src/com/sk/gn/ng/GnDTS.java +++ b/src/intellij_plugin/cmake2gn/gn_IntelliJ_plugin/src/com/sk/gn/ng/GnDTS.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -32,7 +32,7 @@ import com.sk.gn.utils.GenNotification; * @version: v1.0.0 * @since 2022-09-21 */ -public class GnDTS extends AnAction { +public class GnDts extends AnAction { @Override public void actionPerformed(AnActionEvent anActionEvent) { diff --git a/src/intellij_plugin/cmake2gn/gn_IntelliJ_plugin/src/com/sk/gn/ng/GnMenuDTS.java b/src/intellij_plugin/cmake2gn/gn_IntelliJ_plugin/src/com/sk/gn/ng/GnMenuDTS.java index 9e609d8f7dbe80e8dc9b3bacadd2664269ce5830..729a78ea53159e1c5781b60cf88a7e935f7dbe14 100644 --- a/src/intellij_plugin/cmake2gn/gn_IntelliJ_plugin/src/com/sk/gn/ng/GnMenuDTS.java +++ b/src/intellij_plugin/cmake2gn/gn_IntelliJ_plugin/src/com/sk/gn/ng/GnMenuDTS.java @@ -1,10 +1,10 @@ /* - * Copyright (c) 2022 Guangzhou Digitalchina Information Technology Co., Ltd. + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -28,7 +28,7 @@ import org.jetbrains.annotations.NotNull; * @version: v1.0.0 * @since 2022-09-27 */ -public class GnMenuDTS extends AnAction { +public class GnMenuDts extends AnAction { @Override public void actionPerformed(@NotNull AnActionEvent anActionEvent) { diff --git a/src/intellij_plugin/cmake2gn/gn_IntelliJ_plugin/src/com/sk/gn/utils/FileUtil.java b/src/intellij_plugin/cmake2gn/gn_IntelliJ_plugin/src/com/sk/gn/utils/FileUtil.java index 8f771c19c1f6cc40df8331dc748218c08226683a..66c86d115fbb6db09acb713c79e0f21fe5f9eb16 100644 --- a/src/intellij_plugin/cmake2gn/gn_IntelliJ_plugin/src/com/sk/gn/utils/FileUtil.java +++ b/src/intellij_plugin/cmake2gn/gn_IntelliJ_plugin/src/com/sk/gn/utils/FileUtil.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/intellij_plugin/cmake2gn/gn_IntelliJ_plugin/src/com/sk/gn/utils/GenNotification.java b/src/intellij_plugin/cmake2gn/gn_IntelliJ_plugin/src/com/sk/gn/utils/GenNotification.java index 5281519de0fb19ddb55d442fe861f4ff5ec9390d..53618a1cc349fe269e80bd11e7c6fae91c58214f 100644 --- a/src/intellij_plugin/cmake2gn/gn_IntelliJ_plugin/src/com/sk/gn/utils/GenNotification.java +++ b/src/intellij_plugin/cmake2gn/gn_IntelliJ_plugin/src/com/sk/gn/utils/GenNotification.java @@ -1,10 +1,10 @@ /* - * Copyright (c) 2022 Guangzhou Digitalchina Information Technology Co., Ltd. + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, diff --git a/src/intellij_plugin/dts2cpp/napi_IntelliJ_plugin/src/com/sk/action/BrowseAction.java b/src/intellij_plugin/dts2cpp/napi_IntelliJ_plugin/src/com/sk/action/BrowseAction.java index d32bb01a2fe66bb9ea249c5d944cfe28f34656fa..abe0524d0fd9a6af5d155f68a287ee8465b9a3a1 100644 --- a/src/intellij_plugin/dts2cpp/napi_IntelliJ_plugin/src/com/sk/action/BrowseAction.java +++ b/src/intellij_plugin/dts2cpp/napi_IntelliJ_plugin/src/com/sk/action/BrowseAction.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/intellij_plugin/dts2cpp/napi_IntelliJ_plugin/src/com/sk/action/GenAction.java b/src/intellij_plugin/dts2cpp/napi_IntelliJ_plugin/src/com/sk/action/GenAction.java index 5865428bca835fb3105ba8c4714d30b766b64dd5..5aedf22e4112f242b12c942248602d5a00075b1f 100644 --- a/src/intellij_plugin/dts2cpp/napi_IntelliJ_plugin/src/com/sk/action/GenAction.java +++ b/src/intellij_plugin/dts2cpp/napi_IntelliJ_plugin/src/com/sk/action/GenAction.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/intellij_plugin/dts2cpp/napi_IntelliJ_plugin/src/com/sk/action/ScriptAction.java b/src/intellij_plugin/dts2cpp/napi_IntelliJ_plugin/src/com/sk/action/ScriptAction.java index f549b1528b679477b3a745228a0eecb91f9baada..5e7dcea97834f1bf0a7a5403f2086e5a50944275 100644 --- a/src/intellij_plugin/dts2cpp/napi_IntelliJ_plugin/src/com/sk/action/ScriptAction.java +++ b/src/intellij_plugin/dts2cpp/napi_IntelliJ_plugin/src/com/sk/action/ScriptAction.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/intellij_plugin/dts2cpp/napi_IntelliJ_plugin/src/com/sk/action/SelectCppAction.java b/src/intellij_plugin/dts2cpp/napi_IntelliJ_plugin/src/com/sk/action/SelectCppAction.java index e1b713cd66b6880d9f853f17589ff12041e1621b..6465999f7aa5cf707408cd234c831ed5404c8ede 100644 --- a/src/intellij_plugin/dts2cpp/napi_IntelliJ_plugin/src/com/sk/action/SelectCppAction.java +++ b/src/intellij_plugin/dts2cpp/napi_IntelliJ_plugin/src/com/sk/action/SelectCppAction.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -38,6 +38,7 @@ public class SelectCppAction implements ActionListener { /** * 构造函数 + * * @param button .cpp文件选择按钮 * @param textField .cpp文件文本选择框 * @param genPath 生成框架路径 @@ -51,6 +52,7 @@ public class SelectCppAction implements ActionListener { /** * 按钮监听函数 + * * @param actionEvent .cpp文件选择事件 * @throws log 输出异常 */