浏览代码

Merge pull request #8 from littleheuer/upgrade

Fix: Building depends on Idea and Clion 2021.1.3
ruki 4 年之前
父节点
当前提交
1c63338114
共有 86 个文件被更改,包括 828 次插入1543 次删除
  1. 3 0
      .gitignore
  2. 0 6
      .idea/externalDependencies.xml
  3. 0 10
      .idea/kotlinc.xml
  4. 0 13
      .idea/misc.xml
  5. 0 8
      .idea/modules.xml
  6. 0 124
      .idea/uiDesigner.xml
  7. 0 6
      .idea/vcs.xml
  8. 0 974
      .idea/workspace.xml
  9. 35 0
      build.gradle
  10. 1 0
      gradle.properties
  11. 5 0
      gradle/wrapper/gradle-wrapper.properties
  12. 185 0
      gradlew
  13. 89 0
      gradlew.bat
  14. 0 2
      resources/META-INF/clion-only.xml
  15. 0 118
      resources/META-INF/plugin.xml
  16. 10 0
      settings.gradle
  17. 1 0
      src/main/kotlin/org/tboox/xmake/actions/BuildAction.kt
  18. 0 0
      src/main/kotlin/org/tboox/xmake/actions/CleanAction.kt
  19. 0 0
      src/main/kotlin/org/tboox/xmake/actions/CleanConfigurationAction.kt
  20. 0 0
      src/main/kotlin/org/tboox/xmake/actions/QuickStartAction.kt
  21. 0 0
      src/main/kotlin/org/tboox/xmake/actions/RebuildAction.kt
  22. 0 0
      src/main/kotlin/org/tboox/xmake/actions/RunAction.kt
  23. 0 1
      src/main/kotlin/org/tboox/xmake/icons/XMakeIconProvider.kt
  24. 22 0
      src/main/kotlin/org/tboox/xmake/icons/XMakeIcons.kt
  25. 6 0
      src/main/kotlin/org/tboox/xmake/project/XMakeConfigData.kt
  26. 51 0
      src/main/kotlin/org/tboox/xmake/project/XMakeDirectoryProjectGenerator.kt
  27. 63 0
      src/main/kotlin/org/tboox/xmake/project/XMakeModuleBuilder.kt
  28. 2 2
      src/main/kotlin/org/tboox/xmake/project/XMakeModuleConfigurationEditorProvider.kt
  29. 0 0
      src/main/kotlin/org/tboox/xmake/project/XMakeModuleType.kt
  30. 88 0
      src/main/kotlin/org/tboox/xmake/project/XMakeNewProjectPanel.kt
  31. 1 9
      src/main/kotlin/org/tboox/xmake/project/XMakeProjectConfigurable.kt
  32. 24 0
      src/main/kotlin/org/tboox/xmake/project/XMakeProjectGeneratorPeer.kt
  33. 7 0
      src/main/kotlin/org/tboox/xmake/project/XMakeProjectSettingsStep.kt
  34. 43 0
      src/main/kotlin/org/tboox/xmake/project/XMakeSdkSettingsStep.kt
  35. 2 4
      src/main/kotlin/org/tboox/xmake/project/XMakeSdkType.kt
  36. 3 3
      src/main/kotlin/org/tboox/xmake/project/XMakeToolWindowFactory.kt
  37. 10 13
      src/main/kotlin/org/tboox/xmake/project/XMakeToolWindowOutputPanel.kt
  38. 0 3
      src/main/kotlin/org/tboox/xmake/project/XMakeToolWindowProblemPanel.kt
  39. 12 8
      src/main/kotlin/org/tboox/xmake/run/XMakeRunConfiguration.kt
  40. 0 10
      src/main/kotlin/org/tboox/xmake/run/XMakeRunConfigurationEditor.kt
  41. 0 0
      src/main/kotlin/org/tboox/xmake/run/XMakeRunConfigurationProducer.kt
  42. 16 15
      src/main/kotlin/org/tboox/xmake/run/XMakeRunConfigurationType.kt
  43. 1 1
      src/main/kotlin/org/tboox/xmake/run/XMakeRunner.kt
  44. 3 4
      src/main/kotlin/org/tboox/xmake/shared/XMakeConfiguration.kt
  45. 0 0
      src/main/kotlin/org/tboox/xmake/shared/XMakeProblem.kt
  46. 10 9
      src/main/kotlin/org/tboox/xmake/utils/ConsoleProcessHandler.kt
  47. 1 2
      src/main/kotlin/org/tboox/xmake/utils/SystemUtils.kt
  48. 4 0
      src/main/resources/META-INF/clion-only.xml
  49. 0 0
      src/main/resources/META-INF/idea-only.xml
  50. 130 0
      src/main/resources/META-INF/plugin.xml
  51. 0 0
      src/main/resources/icons/build.png
  52. 0 0
      src/main/resources/icons/[email protected]
  53. 0 0
      src/main/resources/icons/build@2x_dark.png
  54. 0 0
      src/main/resources/icons/build_dark.png
  55. 0 0
      src/main/resources/icons/clean.png
  56. 0 0
      src/main/resources/icons/[email protected]
  57. 0 0
      src/main/resources/icons/cleanconf.png
  58. 0 0
      src/main/resources/icons/[email protected]
  59. 0 0
      src/main/resources/icons/debug.png
  60. 0 0
      src/main/resources/icons/[email protected]
  61. 0 0
      src/main/resources/icons/debug@2x_dark.png
  62. 0 0
      src/main/resources/icons/debug_dark.png
  63. 0 0
      src/main/resources/icons/error.png
  64. 0 0
      src/main/resources/icons/[email protected]
  65. 0 0
      src/main/resources/icons/quickstart.png
  66. 0 0
      src/main/resources/icons/[email protected]
  67. 0 0
      src/main/resources/icons/rebuild.png
  68. 0 0
      src/main/resources/icons/[email protected]
  69. 0 0
      src/main/resources/icons/rebuild@2x_dark.png
  70. 0 0
      src/main/resources/icons/rebuild_dark.png
  71. 0 0
      src/main/resources/icons/run.png
  72. 0 0
      src/main/resources/icons/[email protected]
  73. 0 0
      src/main/resources/icons/settings.png
  74. 0 0
      src/main/resources/icons/[email protected]
  75. 0 0
      src/main/resources/icons/settings@2x_dark.png
  76. 0 0
      src/main/resources/icons/settings_dark.png
  77. 0 0
      src/main/resources/icons/warning.png
  78. 0 0
      src/main/resources/icons/[email protected]
  79. 0 0
      src/main/resources/icons/xmake.png
  80. 0 0
      src/main/resources/icons/[email protected]
  81. 0 0
      src/main/resources/icons/xmake_13x13.png
  82. 0 18
      src/org/tboox/xmake/icons/XMakeIcons.kt
  83. 0 76
      src/org/tboox/xmake/project/XMakeModuleBuilder.kt
  84. 0 24
      src/org/tboox/xmake/project/XMakeSdkSettingsStep.kt
  85. 0 67
      src/org/tboox/xmake/run/XMakeProjectTasksRunner.kt
  86. 0 13
      xmake-idea.iml

+ 3 - 0
.gitignore

@@ -5,3 +5,6 @@ node_modules
 *.swp
 *.swo
 *.jar
+build
+.gradle
+.idea

+ 0 - 6
.idea/externalDependencies.xml

@@ -1,6 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project version="4">
-  <component name="ExternalDependencies">
-    <plugin id="org.jetbrains.kotlin" />
-  </component>
-</project>

+ 0 - 10
.idea/kotlinc.xml

@@ -1,10 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project version="4">
-  <component name="Kotlin2JsCompilerArguments">
-    <option name="sourceMapPrefix" value="" />
-    <option name="sourceMapEmbedSources" value="inlining" />
-  </component>
-  <component name="Kotlin2JvmCompilerArguments">
-    <option name="jvmTarget" value="1.8" />
-  </component>
-</project>

+ 0 - 13
.idea/misc.xml

@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project version="4">
-  <component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="true" project-jdk-name="IntelliJ IDEA Community Edition IC-172.4343.14" project-jdk-type="IDEA JDK">
-    <output url="file://$PROJECT_DIR$/out" />
-  </component>
-  <component name="SvnBranchConfigurationManager">
-    <option name="mySupportsUserInfoFilter" value="true" />
-  </component>
-  <component name="XMakeProjectSettings">
-    <option name="currentArchitecture" value="x86_64" />
-    <option name="workingDirectory" value="$PROJECT_DIR$" />
-  </component>
-</project>

+ 0 - 8
.idea/modules.xml

@@ -1,8 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project version="4">
-  <component name="ProjectModuleManager">
-    <modules>
-      <module fileurl="file://$PROJECT_DIR$/xmake-idea.iml" filepath="$PROJECT_DIR$/xmake-idea.iml" />
-    </modules>
-  </component>
-</project>

+ 0 - 124
.idea/uiDesigner.xml

@@ -1,124 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project version="4">
-  <component name="Palette2">
-    <group name="Swing">
-      <item class="com.intellij.uiDesigner.HSpacer" tooltip-text="Horizontal Spacer" icon="/com/intellij/uiDesigner/icons/hspacer.png" removable="false" auto-create-binding="false" can-attach-label="false">
-        <default-constraints vsize-policy="1" hsize-policy="6" anchor="0" fill="1" />
-      </item>
-      <item class="com.intellij.uiDesigner.VSpacer" tooltip-text="Vertical Spacer" icon="/com/intellij/uiDesigner/icons/vspacer.png" removable="false" auto-create-binding="false" can-attach-label="false">
-        <default-constraints vsize-policy="6" hsize-policy="1" anchor="0" fill="2" />
-      </item>
-      <item class="javax.swing.JPanel" icon="/com/intellij/uiDesigner/icons/panel.png" removable="false" auto-create-binding="false" can-attach-label="false">
-        <default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3" />
-      </item>
-      <item class="javax.swing.JScrollPane" icon="/com/intellij/uiDesigner/icons/scrollPane.png" removable="false" auto-create-binding="false" can-attach-label="true">
-        <default-constraints vsize-policy="7" hsize-policy="7" anchor="0" fill="3" />
-      </item>
-      <item class="javax.swing.JButton" icon="/com/intellij/uiDesigner/icons/button.png" removable="false" auto-create-binding="true" can-attach-label="false">
-        <default-constraints vsize-policy="0" hsize-policy="3" anchor="0" fill="1" />
-        <initial-values>
-          <property name="text" value="Button" />
-        </initial-values>
-      </item>
-      <item class="javax.swing.JRadioButton" icon="/com/intellij/uiDesigner/icons/radioButton.png" removable="false" auto-create-binding="true" can-attach-label="false">
-        <default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" />
-        <initial-values>
-          <property name="text" value="RadioButton" />
-        </initial-values>
-      </item>
-      <item class="javax.swing.JCheckBox" icon="/com/intellij/uiDesigner/icons/checkBox.png" removable="false" auto-create-binding="true" can-attach-label="false">
-        <default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" />
-        <initial-values>
-          <property name="text" value="CheckBox" />
-        </initial-values>
-      </item>
-      <item class="javax.swing.JLabel" icon="/com/intellij/uiDesigner/icons/label.png" removable="false" auto-create-binding="false" can-attach-label="false">
-        <default-constraints vsize-policy="0" hsize-policy="0" anchor="8" fill="0" />
-        <initial-values>
-          <property name="text" value="Label" />
-        </initial-values>
-      </item>
-      <item class="javax.swing.JTextField" icon="/com/intellij/uiDesigner/icons/textField.png" removable="false" auto-create-binding="true" can-attach-label="true">
-        <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
-          <preferred-size width="150" height="-1" />
-        </default-constraints>
-      </item>
-      <item class="javax.swing.JPasswordField" icon="/com/intellij/uiDesigner/icons/passwordField.png" removable="false" auto-create-binding="true" can-attach-label="true">
-        <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
-          <preferred-size width="150" height="-1" />
-        </default-constraints>
-      </item>
-      <item class="javax.swing.JFormattedTextField" icon="/com/intellij/uiDesigner/icons/formattedTextField.png" removable="false" auto-create-binding="true" can-attach-label="true">
-        <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
-          <preferred-size width="150" height="-1" />
-        </default-constraints>
-      </item>
-      <item class="javax.swing.JTextArea" icon="/com/intellij/uiDesigner/icons/textArea.png" removable="false" auto-create-binding="true" can-attach-label="true">
-        <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
-          <preferred-size width="150" height="50" />
-        </default-constraints>
-      </item>
-      <item class="javax.swing.JTextPane" icon="/com/intellij/uiDesigner/icons/textPane.png" removable="false" auto-create-binding="true" can-attach-label="true">
-        <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
-          <preferred-size width="150" height="50" />
-        </default-constraints>
-      </item>
-      <item class="javax.swing.JEditorPane" icon="/com/intellij/uiDesigner/icons/editorPane.png" removable="false" auto-create-binding="true" can-attach-label="true">
-        <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
-          <preferred-size width="150" height="50" />
-        </default-constraints>
-      </item>
-      <item class="javax.swing.JComboBox" icon="/com/intellij/uiDesigner/icons/comboBox.png" removable="false" auto-create-binding="true" can-attach-label="true">
-        <default-constraints vsize-policy="0" hsize-policy="2" anchor="8" fill="1" />
-      </item>
-      <item class="javax.swing.JTable" icon="/com/intellij/uiDesigner/icons/table.png" removable="false" auto-create-binding="true" can-attach-label="false">
-        <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
-          <preferred-size width="150" height="50" />
-        </default-constraints>
-      </item>
-      <item class="javax.swing.JList" icon="/com/intellij/uiDesigner/icons/list.png" removable="false" auto-create-binding="true" can-attach-label="false">
-        <default-constraints vsize-policy="6" hsize-policy="2" anchor="0" fill="3">
-          <preferred-size width="150" height="50" />
-        </default-constraints>
-      </item>
-      <item class="javax.swing.JTree" icon="/com/intellij/uiDesigner/icons/tree.png" removable="false" auto-create-binding="true" can-attach-label="false">
-        <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
-          <preferred-size width="150" height="50" />
-        </default-constraints>
-      </item>
-      <item class="javax.swing.JTabbedPane" icon="/com/intellij/uiDesigner/icons/tabbedPane.png" removable="false" auto-create-binding="true" can-attach-label="false">
-        <default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3">
-          <preferred-size width="200" height="200" />
-        </default-constraints>
-      </item>
-      <item class="javax.swing.JSplitPane" icon="/com/intellij/uiDesigner/icons/splitPane.png" removable="false" auto-create-binding="false" can-attach-label="false">
-        <default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3">
-          <preferred-size width="200" height="200" />
-        </default-constraints>
-      </item>
-      <item class="javax.swing.JSpinner" icon="/com/intellij/uiDesigner/icons/spinner.png" removable="false" auto-create-binding="true" can-attach-label="true">
-        <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" />
-      </item>
-      <item class="javax.swing.JSlider" icon="/com/intellij/uiDesigner/icons/slider.png" removable="false" auto-create-binding="true" can-attach-label="false">
-        <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" />
-      </item>
-      <item class="javax.swing.JSeparator" icon="/com/intellij/uiDesigner/icons/separator.png" removable="false" auto-create-binding="false" can-attach-label="false">
-        <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3" />
-      </item>
-      <item class="javax.swing.JProgressBar" icon="/com/intellij/uiDesigner/icons/progressbar.png" removable="false" auto-create-binding="true" can-attach-label="false">
-        <default-constraints vsize-policy="0" hsize-policy="6" anchor="0" fill="1" />
-      </item>
-      <item class="javax.swing.JToolBar" icon="/com/intellij/uiDesigner/icons/toolbar.png" removable="false" auto-create-binding="false" can-attach-label="false">
-        <default-constraints vsize-policy="0" hsize-policy="6" anchor="0" fill="1">
-          <preferred-size width="-1" height="20" />
-        </default-constraints>
-      </item>
-      <item class="javax.swing.JToolBar$Separator" icon="/com/intellij/uiDesigner/icons/toolbarSeparator.png" removable="false" auto-create-binding="false" can-attach-label="false">
-        <default-constraints vsize-policy="0" hsize-policy="0" anchor="0" fill="1" />
-      </item>
-      <item class="javax.swing.JScrollBar" icon="/com/intellij/uiDesigner/icons/scrollbar.png" removable="false" auto-create-binding="true" can-attach-label="false">
-        <default-constraints vsize-policy="6" hsize-policy="0" anchor="0" fill="2" />
-      </item>
-    </group>
-  </component>
-</project>

+ 0 - 6
.idea/vcs.xml

@@ -1,6 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project version="4">
-  <component name="VcsDirectoryMappings">
-    <mapping directory="" vcs="svn" />
-  </component>
-</project>

+ 0 - 974
.idea/workspace.xml

@@ -1,974 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project version="4">
-  <component name="ArtifactsWorkspaceSettings">
-    <artifacts-to-build>
-      <artifact name="xmake-service:jar" />
-      <artifact name="xmake-shared:jar" />
-    </artifacts-to-build>
-  </component>
-  <component name="CMakeRunConfigurationManager" shouldGenerate="true" shouldDeleteObsolete="true" buildAllGenerated="false">
-    <generated />
-  </component>
-  <component name="CMakeSettings">
-    <configurations>
-      <configuration CONFIG_NAME="Debug" />
-    </configurations>
-  </component>
-  <component name="ChangeListManager">
-    <list default="true" readonly="true" id="6f102be2-8408-4132-9910-b671b040472b" name="Default" comment="" />
-    <ignored path="$PROJECT_DIR$/out/" />
-    <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
-    <option name="TRACKING_ENABLED" value="true" />
-    <option name="SHOW_DIALOG" value="false" />
-    <option name="HIGHLIGHT_CONFLICTS" value="true" />
-    <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
-    <option name="LAST_RESOLUTION" value="IGNORE" />
-  </component>
-  <component name="FileEditorManager">
-    <leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
-      <file leaf-file-name="plugin.xml" pinned="false" current-in-tab="true">
-        <entry file="file://$PROJECT_DIR$/resources/META-INF/plugin.xml">
-          <provider selected="true" editor-type-id="text-editor">
-            <state relative-caret-position="15">
-              <caret line="15" column="25" lean-forward="false" selection-start-line="15" selection-start-column="25" selection-end-line="15" selection-end-column="25" />
-              <folding />
-            </state>
-          </provider>
-        </entry>
-      </file>
-      <file leaf-file-name="BuildAction.kt" pinned="false" current-in-tab="false">
-        <entry file="file://$PROJECT_DIR$/src/org/tboox/xmake/actions/BuildAction.kt">
-          <provider selected="true" editor-type-id="text-editor">
-            <state relative-caret-position="135">
-              <caret line="15" column="41" lean-forward="false" selection-start-line="15" selection-start-column="41" selection-end-line="15" selection-end-column="41" />
-              <folding />
-            </state>
-          </provider>
-        </entry>
-      </file>
-      <file leaf-file-name="XMakeToolWindowFactory.kt" pinned="false" current-in-tab="false">
-        <entry file="file://$PROJECT_DIR$/src/org/tboox/xmake/project/XMakeToolWindowFactory.kt">
-          <provider selected="true" editor-type-id="text-editor">
-            <state relative-caret-position="390">
-              <caret line="32" column="25" lean-forward="false" selection-start-line="32" selection-start-column="25" selection-end-line="32" selection-end-column="25" />
-              <folding />
-            </state>
-          </provider>
-        </entry>
-      </file>
-      <file leaf-file-name="XMakeModuleBuilder.kt" pinned="false" current-in-tab="false">
-        <entry file="file://$PROJECT_DIR$/src/org/tboox/xmake/project/XMakeModuleBuilder.kt">
-          <provider selected="true" editor-type-id="text-editor">
-            <state relative-caret-position="480">
-              <caret line="41" column="34" lean-forward="false" selection-start-line="41" selection-start-column="34" selection-end-line="41" selection-end-column="34" />
-              <folding />
-            </state>
-          </provider>
-        </entry>
-      </file>
-      <file leaf-file-name="XMakeProjectTasksRunner.kt" pinned="false" current-in-tab="false">
-        <entry file="file://$PROJECT_DIR$/src/org/tboox/xmake/run/XMakeProjectTasksRunner.kt">
-          <provider selected="true" editor-type-id="text-editor">
-            <state relative-caret-position="105">
-              <caret line="17" column="0" lean-forward="false" selection-start-line="17" selection-start-column="0" selection-end-line="17" selection-end-column="0" />
-              <folding>
-                <element signature="e#29#531#0" expanded="true" />
-              </folding>
-            </state>
-          </provider>
-        </entry>
-      </file>
-      <file leaf-file-name="XMakeRunConfigurationEditor.kt" pinned="false" current-in-tab="false">
-        <entry file="file://$PROJECT_DIR$/src/org/tboox/xmake/run/XMakeRunConfigurationEditor.kt">
-          <provider selected="true" editor-type-id="text-editor">
-            <state relative-caret-position="210">
-              <caret line="36" column="39" lean-forward="false" selection-start-line="36" selection-start-column="39" selection-end-line="36" selection-end-column="39" />
-              <folding />
-            </state>
-          </provider>
-        </entry>
-      </file>
-      <file leaf-file-name="XMakeRunConfigurationProducer.kt" pinned="false" current-in-tab="false">
-        <entry file="file://$PROJECT_DIR$/src/org/tboox/xmake/run/XMakeRunConfigurationProducer.kt">
-          <provider selected="true" editor-type-id="text-editor">
-            <state relative-caret-position="60">
-              <caret line="8" column="6" lean-forward="false" selection-start-line="8" selection-start-column="6" selection-end-line="8" selection-end-column="6" />
-              <folding />
-            </state>
-          </provider>
-        </entry>
-      </file>
-      <file leaf-file-name="XMakeRunConfigurationType.kt" pinned="false" current-in-tab="false">
-        <entry file="file://$PROJECT_DIR$/src/org/tboox/xmake/run/XMakeRunConfigurationType.kt">
-          <provider selected="true" editor-type-id="text-editor">
-            <state relative-caret-position="60">
-              <caret line="12" column="6" lean-forward="false" selection-start-line="12" selection-start-column="6" selection-end-line="12" selection-end-column="6" />
-              <folding />
-            </state>
-          </provider>
-        </entry>
-      </file>
-      <file leaf-file-name="XMakeRunner.kt" pinned="false" current-in-tab="false">
-        <entry file="file://$PROJECT_DIR$/src/org/tboox/xmake/run/XMakeRunner.kt">
-          <provider selected="true" editor-type-id="text-editor">
-            <state relative-caret-position="105">
-              <caret line="10" column="0" lean-forward="false" selection-start-line="10" selection-start-column="0" selection-end-line="10" selection-end-column="0" />
-              <folding />
-            </state>
-          </provider>
-        </entry>
-      </file>
-      <file leaf-file-name="XMakeRunConfiguration.kt" pinned="false" current-in-tab="false">
-        <entry file="file://$PROJECT_DIR$/src/org/tboox/xmake/run/XMakeRunConfiguration.kt">
-          <provider selected="true" editor-type-id="text-editor">
-            <state relative-caret-position="1050">
-              <caret line="82" column="14" lean-forward="false" selection-start-line="82" selection-start-column="14" selection-end-line="82" selection-end-column="14" />
-              <folding />
-            </state>
-          </provider>
-        </entry>
-      </file>
-    </leaf>
-  </component>
-  <component name="FileTemplateManagerImpl">
-    <option name="RECENT_TEMPLATES">
-      <list>
-        <option value="Action" />
-        <option value="ModuleComponent" />
-        <option value="ApplicationComponent" />
-        <option value="ProjectComponent" />
-      </list>
-    </option>
-  </component>
-  <component name="FindInProjectRecents">
-    <findStrings>
-      <find>ProcessOutputTypes</find>
-      <find>color</find>
-      <find>myProcessHandler</find>
-      <find>append</find>
-      <find>showConsole</find>
-      <find>html</find>
-      <find>show</find>
-      <find>myConsoleView</find>
-      <find>myOutputStreamWriter</find>
-      <find>additionalConfiguration</find>
-      <find>createConsole</find>
-      <find>createAction</find>
-      <find>createActions</find>
-      <find>scroll</find>
-      <find>getAllAvailablePathsForMob</find>
-      <find>extensions</find>
-      <find>findFileByPath</find>
-      <find>pa</find>
-      <find>line</find>
-      <find>select</find>
-      <find>fold</find>
-      <find>FoldRegion</find>
-      <find>@NotNull</find>
-      <find>getic</find>
-      <find>suggestSdkName</find>
-      <find>Models</find>
-      <find>abstract</find>
-      <find>myName</find>
-      <find>Lua</find>
-      <find>XMakeProjectTasksRunner</find>
-    </findStrings>
-    <replaceStrings>
-      <replace>XMakeProjectConfiguration</replace>
-      <replace>projectConfiguration</replace>
-      <replace>xmakeConfiguration</replace>
-      <replace>consoleView</replace>
-      <replace>outputStreamWriter</replace>
-      <replace>Model</replace>
-      <replace>XMake</replace>
-    </replaceStrings>
-  </component>
-  <component name="GradleLocalSettings">
-    <option name="externalProjectsViewState">
-      <projects_view />
-    </option>
-  </component>
-  <component name="IdeDocumentHistory">
-    <option name="CHANGED_PATHS">
-      <list>
-        <option value="$PROJECT_DIR$/src/org/tboox/xmake/parser/XMakeParserDefinition.kt" />
-        <option value="$PROJECT_DIR$/src/org/tboox/xmake/lang/XMakeFile.kt" />
-        <option value="$PROJECT_DIR$/src/org/tboox/xmake/lang/XMakeLanguage.kt" />
-        <option value="$PROJECT_DIR$/src/org/tboox/xmake/lang/XMakeFileType.kt" />
-        <option value="$PROJECT_DIR$/src/org/tboox/xmake/psi/XMakeFile.kt" />
-        <option value="$PROJECT_DIR$/src/org/tboox/xmake/lang/XMakeFileTypeFactory.kt" />
-        <option value="$PROJECT_DIR$/src/org/tboox/xmake/lang/psi/XMakeFile.kt" />
-        <option value="$PROJECT_DIR$/src/org/tboox/xmake/lang/XMakeParserDefinition.kt" />
-        <option value="$PROJECT_DIR$/src/org/tboox/xmake/run/XMakeRunConfigurationProducer.kt" />
-        <option value="$PROJECT_DIR$/src/org/tboox/xmake/ui/StringsComboBox.kt" />
-        <option value="$PROJECT_DIR$/resources/META-INF/idea-only.xml" />
-        <option value="$PROJECT_DIR$/resources/META-INF/clion-only.xml" />
-        <option value="$PROJECT_DIR$/src/org/tboox/xmake/icons/XMakeIconProvider.kt" />
-        <option value="$PROJECT_DIR$/src/org/tboox/xmake/run/XMakeRunConfigurationType.kt" />
-        <option value="$PROJECT_DIR$/src/org/tboox/xmake/project/XMakeConfiguration.kt" />
-        <option value="$PROJECT_DIR$/src/org/tboox/xmake/project/XMakeProjectConfiguration.kt" />
-        <option value="$PROJECT_DIR$/src/org/tboox/xmake/project/XMakeProjectSettingsService.kt" />
-        <option value="$PROJECT_DIR$/src/org/tboox/xmake/project/XMakeProjectSettingsServiceImpl.kt" />
-        <option value="$PROJECT_DIR$/src/org/tboox/xmake/utils/ExternalToolRunner.java" />
-        <option value="$PROJECT_DIR$/src/org/tboox/xmake/utils/TerminalExecutionConsole.java" />
-        <option value="$PROJECT_DIR$/src/org/tboox/xmake/project/XMakeToolWindow.kt" />
-        <option value="$PROJECT_DIR$/src/org/tboox/xmake/project/XMakeToolWindowPanel.kt" />
-        <option value="$PROJECT_DIR$/src/org/tboox/xmake/project/XMakeToolWindowOutputPanel.kt" />
-        <option value="$PROJECT_DIR$/src/org/tboox/xmake/run/XMakeRunState.kt" />
-        <option value="$PROJECT_DIR$/src/org/tboox/xmake/shared/XMakeConfiguration.kt" />
-        <option value="$PROJECT_DIR$/src/org/tboox/xmake/icons/XMakeIcons.kt" />
-        <option value="$PROJECT_DIR$/src/org/tboox/xmake/shared/XMakeProblem.kt" />
-        <option value="$PROJECT_DIR$/src/org/tboox/xmake/utils/FileUtils.kt" />
-        <option value="$PROJECT_DIR$/src/org/tboox/xmake/project/XMakeToolWindowProblemPanel.kt" />
-        <option value="$PROJECT_DIR$/src/org/tboox/xmake/project/XMakeSDK.kt" />
-        <option value="$PROJECT_DIR$/src/org/tboox/xmake/project/XMakeModuleType.kt" />
-        <option value="$PROJECT_DIR$/src/org/tboox/xmake/project/XMakeSdkType.kt" />
-        <option value="$PROJECT_DIR$/src/org/tboox/xmake/project/XMakeModuleConfigurationEditorProvider.kt" />
-        <option value="$PROJECT_DIR$/src/org/tboox/xmake/project/XMakeProjectConfigurable.kt" />
-        <option value="$PROJECT_DIR$/src/org/tboox/xmake/run/XMakeRunConfigurationEditor.kt" />
-        <option value="$PROJECT_DIR$/src/org/tboox/xmake/project/XMakeModuleBuilderConfigurable.kt" />
-        <option value="$PROJECT_DIR$/src/org/tboox/xmake/project/XMakeSdkSettingsStep.kt" />
-        <option value="$PROJECT_DIR$/src/org/tboox/xmake/project/XMakeModuleBuilder.kt" />
-        <option value="$PROJECT_DIR$/src/org/tboox/xmake/run/XMakeRunConfiguration.kt" />
-        <option value="$PROJECT_DIR$/src/org/tboox/xmake/utils/ConsoleProcessHandler.kt" />
-        <option value="$PROJECT_DIR$/src/org/tboox/xmake/utils/SystemUtils.kt" />
-        <option value="$PROJECT_DIR$/src/org/tboox/xmake/project/XMakeToolWindowFactory.kt" />
-        <option value="$PROJECT_DIR$/src/org/tboox/xmake/actions/BuildAction.kt" />
-        <option value="$PROJECT_DIR$/src/org/tboox/xmake/actions/CleanAction.kt" />
-        <option value="$PROJECT_DIR$/src/org/tboox/xmake/actions/CleanConfigurationAction.kt" />
-        <option value="$PROJECT_DIR$/src/org/tboox/xmake/actions/QuickStartAction.kt" />
-        <option value="$PROJECT_DIR$/src/org/tboox/xmake/actions/RebuildAction.kt" />
-        <option value="$PROJECT_DIR$/src/org/tboox/xmake/actions/RunAction.kt" />
-        <option value="$PROJECT_DIR$/src/org/tboox/xmake/run/XMakeRunner.kt" />
-        <option value="$PROJECT_DIR$/src/org/tboox/xmake/run/XMakeProjectTasksRunner.kt" />
-        <option value="$PROJECT_DIR$/resources/META-INF/plugin.xml" />
-      </list>
-    </option>
-  </component>
-  <component name="JsBuildToolGruntFileManager" detection-done="true" sorting="DEFINITION_ORDER" />
-  <component name="JsBuildToolPackageJson" detection-done="true" sorting="DEFINITION_ORDER" />
-  <component name="JsGulpfileManager">
-    <detection-done>true</detection-done>
-    <sorting>DEFINITION_ORDER</sorting>
-  </component>
-  <component name="LogFilters">
-    <option name="FILTER_ERRORS" value="false" />
-    <option name="FILTER_WARNINGS" value="false" />
-    <option name="FILTER_INFO" value="false" />
-    <option name="FILTER_DEBUG" value="false" />
-    <option name="CUSTOM_FILTER" value="xmake" />
-  </component>
-  <component name="ProjectFrameBounds">
-    <option name="x" value="4" />
-    <option name="y" value="23" />
-    <option name="width" value="1276" />
-    <option name="height" value="777" />
-  </component>
-  <component name="ProjectView">
-    <navigator currentView="ProjectPane" proportions="" version="1">
-      <flattenPackages />
-      <showMembers />
-      <showModules />
-      <showLibraryContents />
-      <hideEmptyPackages />
-      <abbreviatePackageNames />
-      <autoscrollToSource />
-      <autoscrollFromSource />
-      <sortByType />
-      <manualOrder />
-      <foldersAlwaysOnTop value="true" />
-    </navigator>
-    <panes>
-      <pane id="Scratches" />
-      <pane id="Scope" />
-      <pane id="PackagesPane" />
-      <pane id="ProjectPane">
-        <subPane>
-          <expand>
-            <path>
-              <item name="xmake-idea" type="b2602c69:ProjectViewProjectNode" />
-              <item name="xmake-idea" type="462c0819:PsiDirectoryNode" />
-            </path>
-            <path>
-              <item name="xmake-idea" type="b2602c69:ProjectViewProjectNode" />
-              <item name="xmake-idea" type="462c0819:PsiDirectoryNode" />
-              <item name="resources" type="462c0819:PsiDirectoryNode" />
-            </path>
-            <path>
-              <item name="xmake-idea" type="b2602c69:ProjectViewProjectNode" />
-              <item name="xmake-idea" type="462c0819:PsiDirectoryNode" />
-              <item name="resources" type="462c0819:PsiDirectoryNode" />
-              <item name="META-INF" type="462c0819:PsiDirectoryNode" />
-            </path>
-            <path>
-              <item name="xmake-idea" type="b2602c69:ProjectViewProjectNode" />
-              <item name="xmake-idea" type="462c0819:PsiDirectoryNode" />
-              <item name="src" type="462c0819:PsiDirectoryNode" />
-            </path>
-            <path>
-              <item name="xmake-idea" type="b2602c69:ProjectViewProjectNode" />
-              <item name="xmake-idea" type="462c0819:PsiDirectoryNode" />
-              <item name="src" type="462c0819:PsiDirectoryNode" />
-              <item name="xmake" type="462c0819:PsiDirectoryNode" />
-            </path>
-            <path>
-              <item name="xmake-idea" type="b2602c69:ProjectViewProjectNode" />
-              <item name="xmake-idea" type="462c0819:PsiDirectoryNode" />
-              <item name="src" type="462c0819:PsiDirectoryNode" />
-              <item name="xmake" type="462c0819:PsiDirectoryNode" />
-              <item name="actions" type="462c0819:PsiDirectoryNode" />
-            </path>
-            <path>
-              <item name="xmake-idea" type="b2602c69:ProjectViewProjectNode" />
-              <item name="xmake-idea" type="462c0819:PsiDirectoryNode" />
-              <item name="src" type="462c0819:PsiDirectoryNode" />
-              <item name="xmake" type="462c0819:PsiDirectoryNode" />
-              <item name="icons" type="462c0819:PsiDirectoryNode" />
-            </path>
-            <path>
-              <item name="xmake-idea" type="b2602c69:ProjectViewProjectNode" />
-              <item name="xmake-idea" type="462c0819:PsiDirectoryNode" />
-              <item name="src" type="462c0819:PsiDirectoryNode" />
-              <item name="xmake" type="462c0819:PsiDirectoryNode" />
-              <item name="project" type="462c0819:PsiDirectoryNode" />
-            </path>
-            <path>
-              <item name="xmake-idea" type="b2602c69:ProjectViewProjectNode" />
-              <item name="xmake-idea" type="462c0819:PsiDirectoryNode" />
-              <item name="src" type="462c0819:PsiDirectoryNode" />
-              <item name="xmake" type="462c0819:PsiDirectoryNode" />
-              <item name="run" type="462c0819:PsiDirectoryNode" />
-            </path>
-            <path>
-              <item name="xmake-idea" type="b2602c69:ProjectViewProjectNode" />
-              <item name="xmake-idea" type="462c0819:PsiDirectoryNode" />
-              <item name="src" type="462c0819:PsiDirectoryNode" />
-              <item name="xmake" type="462c0819:PsiDirectoryNode" />
-              <item name="shared" type="462c0819:PsiDirectoryNode" />
-            </path>
-            <path>
-              <item name="xmake-idea" type="b2602c69:ProjectViewProjectNode" />
-              <item name="xmake-idea" type="462c0819:PsiDirectoryNode" />
-              <item name="src" type="462c0819:PsiDirectoryNode" />
-              <item name="xmake" type="462c0819:PsiDirectoryNode" />
-              <item name="utils" type="462c0819:PsiDirectoryNode" />
-            </path>
-          </expand>
-          <select />
-        </subPane>
-      </pane>
-      <pane id="AndroidView" />
-    </panes>
-  </component>
-  <component name="PropertiesComponent">
-    <property name="settings.editor.selected.configurable" value="preferences.pluginManager" />
-    <property name="project.structure.last.edited" value="Modules" />
-    <property name="project.structure.proportion" value="0.15" />
-    <property name="project.structure.side.proportion" value="0.2" />
-    <property name="last_opened_file_path" value="$PROJECT_DIR$" />
-    <property name="WebServerToolWindowFactoryState" value="false" />
-  </component>
-  <component name="RunDashboard">
-    <option name="ruleStates">
-      <list>
-        <RuleState>
-          <option name="name" value="ConfigurationTypeDashboardGroupingRule" />
-        </RuleState>
-        <RuleState>
-          <option name="name" value="StatusDashboardGroupingRule" />
-        </RuleState>
-      </list>
-    </option>
-  </component>
-  <component name="RunManager" selected="Plugin.Plugin">
-    <configuration name="Plugin" type="#org.jetbrains.idea.devkit.run.PluginConfigurationType" factoryName="Plugin">
-      <module name="xmake-idea" />
-      <option name="VM_PARAMETERS" value="-Xmx512m -Xms256m -XX:MaxPermSize=250m -ea" />
-      <option name="PROGRAM_PARAMETERS" />
-      <predefined_log_file id="idea.log" enabled="true" />
-    </configuration>
-    <configuration default="true" type="Applet" factoryName="Applet">
-      <option name="WIDTH" value="400" />
-      <option name="HEIGHT" value="300" />
-      <option name="POLICY_FILE" value="$APPLICATION_HOME_DIR$/bin/appletviewer.policy" />
-      <module />
-    </configuration>
-    <configuration default="true" type="Application" factoryName="Application">
-      <extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" />
-      <option name="MAIN_CLASS_NAME" />
-      <option name="VM_PARAMETERS" />
-      <option name="PROGRAM_PARAMETERS" />
-      <option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
-      <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
-      <option name="ALTERNATIVE_JRE_PATH" />
-      <option name="ENABLE_SWING_INSPECTOR" value="false" />
-      <option name="ENV_VARIABLES" />
-      <option name="PASS_PARENT_ENVS" value="true" />
-      <module name="" />
-      <envs />
-    </configuration>
-    <configuration default="true" type="JUnit" factoryName="JUnit">
-      <extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" />
-      <module name="" />
-      <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
-      <option name="ALTERNATIVE_JRE_PATH" />
-      <option name="PACKAGE_NAME" />
-      <option name="MAIN_CLASS_NAME" />
-      <option name="METHOD_NAME" />
-      <option name="TEST_OBJECT" value="class" />
-      <option name="VM_PARAMETERS" value="-ea" />
-      <option name="PARAMETERS" />
-      <option name="WORKING_DIRECTORY" value="$MODULE_DIR$" />
-      <option name="ENV_VARIABLES" />
-      <option name="PASS_PARENT_ENVS" value="true" />
-      <option name="TEST_SEARCH_SCOPE">
-        <value defaultName="singleModule" />
-      </option>
-      <envs />
-      <patterns />
-    </configuration>
-    <configuration default="true" type="JetRunConfigurationType" factoryName="Kotlin">
-      <extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" />
-      <option name="MAIN_CLASS_NAME" />
-      <option name="VM_PARAMETERS" />
-      <option name="PROGRAM_PARAMETERS" />
-      <option name="WORKING_DIRECTORY" />
-      <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
-      <option name="ALTERNATIVE_JRE_PATH" />
-      <option name="PASS_PARENT_ENVS" value="true" />
-      <module name="xmake-service" />
-      <envs />
-    </configuration>
-    <configuration default="true" type="#org.jetbrains.idea.devkit.run.PluginConfigurationType" factoryName="Plugin">
-      <module name="xmake-idea" />
-      <option name="VM_PARAMETERS" value="-Xmx512m -Xms256m -XX:MaxPermSize=250m -ea" />
-      <option name="PROGRAM_PARAMETERS" />
-      <predefined_log_file id="idea.log" enabled="true" />
-    </configuration>
-    <configuration default="true" type="Remote" factoryName="Remote">
-      <option name="USE_SOCKET_TRANSPORT" value="true" />
-      <option name="SERVER_MODE" value="false" />
-      <option name="SHMEM_ADDRESS" value="javadebug" />
-      <option name="HOST" value="localhost" />
-      <option name="PORT" value="5005" />
-    </configuration>
-    <configuration default="true" type="TestNG" factoryName="TestNG">
-      <extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" />
-      <module name="" />
-      <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
-      <option name="ALTERNATIVE_JRE_PATH" />
-      <option name="SUITE_NAME" />
-      <option name="PACKAGE_NAME" />
-      <option name="MAIN_CLASS_NAME" />
-      <option name="METHOD_NAME" />
-      <option name="GROUP_NAME" />
-      <option name="TEST_OBJECT" value="CLASS" />
-      <option name="VM_PARAMETERS" value="-ea" />
-      <option name="PARAMETERS" />
-      <option name="WORKING_DIRECTORY" value="$MODULE_DIR$" />
-      <option name="OUTPUT_DIRECTORY" />
-      <option name="ANNOTATION_TYPE" />
-      <option name="ENV_VARIABLES" />
-      <option name="PASS_PARENT_ENVS" value="true" />
-      <option name="TEST_SEARCH_SCOPE">
-        <value defaultName="singleModule" />
-      </option>
-      <option name="USE_DEFAULT_REPORTERS" value="false" />
-      <option name="PROPERTIES_FILE" />
-      <envs />
-      <properties />
-      <listeners />
-    </configuration>
-  </component>
-  <component name="ShelveChangesManager" show_recycled="false">
-    <option name="remove_strategy" value="false" />
-  </component>
-  <component name="SvnConfiguration" cleanupOnStartRun="true">
-    <configuration>$USER_HOME$/.subversion</configuration>
-    <supportedVersion>125</supportedVersion>
-  </component>
-  <component name="TaskManager">
-    <task active="true" id="Default" summary="Default task">
-      <changelist id="6f102be2-8408-4132-9910-b671b040472b" name="Default" comment="" />
-      <created>1509021651415</created>
-      <option name="number" value="Default" />
-      <option name="presentableId" value="Default" />
-      <updated>1509021651415</updated>
-      <workItem from="1509152399135" duration="48000" />
-    </task>
-    <servers />
-  </component>
-  <component name="TimeTrackingManager">
-    <option name="totallyTimeSpent" value="48000" />
-  </component>
-  <component name="ToolWindowManager">
-    <frame x="4" y="23" width="1276" height="777" extended-state="0" />
-    <editor active="true" />
-    <layout>
-      <window_info id="Palette" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
-      <window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
-      <window_info id="Palette&#9;" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
-      <window_info id="Image Layers" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
-      <window_info id="Capture Analysis" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
-      <window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.32907802" sideWeight="0.515674" order="7" side_tool="true" content_ui="tabs" />
-      <window_info id="Maven Projects" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
-      <window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
-      <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.32907802" sideWeight="0.484326" order="2" side_tool="false" content_ui="tabs" />
-      <window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
-      <window_info id="Capture Tool" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
-      <window_info id="Designer" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
-      <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
-      <window_info id="XMake" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
-      <window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
-      <window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
-      <window_info id="UI Designer" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
-      <window_info id="Theme Preview" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
-      <window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="true" content_ui="tabs" />
-      <window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
-      <window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
-      <window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
-      <window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
-      <window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
-      <window_info id="Data View" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
-      <window_info id="Messages" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.32907802" sideWeight="0.4905956" order="7" side_tool="false" content_ui="tabs" />
-      <window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
-      <window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.32907802" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
-    </layout>
-  </component>
-  <component name="TypeScriptGeneratedFilesManager">
-    <option name="version" value="1" />
-  </component>
-  <component name="VcsContentAnnotationSettings">
-    <option name="myLimit" value="2678400000" />
-  </component>
-  <component name="XDebuggerManager">
-    <breakpoint-manager>
-      <breakpoints>
-        <line-breakpoint enabled="true" type="kotlin-line">
-          <url>file://$PROJECT_DIR$/src/org/tboox/xmake/project/XMakeSdkType.kt</url>
-          <line>19</line>
-          <properties />
-          <option name="timeStamp" value="12" />
-        </line-breakpoint>
-        <line-breakpoint enabled="true" type="kotlin-line">
-          <url>file://$PROJECT_DIR$/src/org/tboox/xmake/project/XMakeSdkSettingsStep.kt</url>
-          <line>4</line>
-          <properties />
-          <option name="timeStamp" value="15" />
-        </line-breakpoint>
-      </breakpoints>
-      <option name="time" value="16" />
-    </breakpoint-manager>
-    <watches-manager />
-  </component>
-  <component name="editorHistoryManager">
-    <entry file="file://$PROJECT_DIR$/src/org/tboox/xmake/utils/FileUtils.java" />
-    <entry file="jar://$APPLICATION_HOME_DIR$/lib/openapi.jar!/com/intellij/openapi/vfs/VirtualFileManager.class">
-      <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="133">
-          <caret line="48" column="32" lean-forward="false" selection-start-line="48" selection-start-column="32" selection-end-line="48" selection-end-column="32" />
-        </state>
-      </provider>
-    </entry>
-    <entry file="file://$PROJECT_DIR$/src/org/tboox/xmake/utils/FileUtils.kt" />
-    <entry file="jar://$APPLICATION_HOME_DIR$/lib/openapi.jar!/com/intellij/openapi/vfs/VirtualFileSystem.class">
-      <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="149">
-          <caret line="22" column="32" lean-forward="false" selection-start-line="22" selection-start-column="32" selection-end-line="22" selection-end-column="32" />
-        </state>
-      </provider>
-    </entry>
-    <entry file="jar://$APPLICATION_HOME_DIR$/lib/openapi.jar!/com/intellij/openapi/vfs/LocalFileSystem.class">
-      <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="-345">
-          <caret line="31" column="48" lean-forward="false" selection-start-line="31" selection-start-column="32" selection-end-line="31" selection-end-column="48" />
-        </state>
-      </provider>
-    </entry>
-    <entry file="jar://$APPLICATION_HOME_DIR$/lib/kotlin-runtime.jar!/kotlin/kotlin.kotlin_builtins">
-      <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="-2241">
-          <caret line="567" column="74" lean-forward="false" selection-start-line="567" selection-start-column="72" selection-end-line="567" selection-end-column="74" />
-        </state>
-      </provider>
-    </entry>
-    <entry file="jar://$APPLICATION_HOME_DIR$/lib/openapi.jar!/com/intellij/openapi/fileEditor/OpenFileDescriptor.class">
-      <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="124">
-          <caret line="207" column="18" lean-forward="false" selection-start-line="207" selection-start-column="8" selection-end-line="207" selection-end-column="18" />
-        </state>
-      </provider>
-    </entry>
-    <entry file="jar://$APPLICATION_HOME_DIR$/lib/openapi.jar!/com/intellij/openapi/editor/markup/MarkupModel.class">
-      <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="210">
-          <caret line="20" column="21" lean-forward="false" selection-start-line="20" selection-start-column="21" selection-end-line="20" selection-end-column="21" />
-        </state>
-      </provider>
-    </entry>
-    <entry file="jar://$APPLICATION_HOME_DIR$/lib/openapi.jar!/com/intellij/openapi/editor/markup/TextAttributes.class">
-      <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="205">
-          <caret line="60" column="11" lean-forward="false" selection-start-line="60" selection-start-column="11" selection-end-line="60" selection-end-column="11" />
-        </state>
-      </provider>
-    </entry>
-    <entry file="file://$PROJECT_DIR$/src/org/tboox/xmake/project/XMakeToolWindowProblemPanel.kt">
-      <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="1558">
-          <caret line="118" column="71" lean-forward="false" selection-start-line="118" selection-start-column="71" selection-end-line="118" selection-end-column="71" />
-        </state>
-      </provider>
-    </entry>
-    <entry file="file://$PROJECT_DIR$/src/org/tboox/xmake/project/XMakeSDK.java" />
-    <entry file="jar://$APPLICATION_HOME_DIR$/lib/idea.jar!/com/intellij/openapi/projectRoots/impl/JavaDependentSdkType.class">
-      <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="105">
-          <caret line="14" column="11" lean-forward="false" selection-start-line="14" selection-start-column="11" selection-end-line="14" selection-end-column="11" />
-        </state>
-      </provider>
-    </entry>
-    <entry file="jar://$APPLICATION_HOME_DIR$/lib/idea.jar!/com/intellij/openapi/projectRoots/impl/DependentSdkType.class">
-      <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="105">
-          <caret line="21" column="11" lean-forward="false" selection-start-line="21" selection-start-column="11" selection-end-line="21" selection-end-column="11" />
-        </state>
-      </provider>
-    </entry>
-    <entry file="file://$PROJECT_DIR$/src/org/tboox/xmake/icons/XMakeIcons.kt">
-      <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="60">
-          <caret line="4" column="7" lean-forward="false" selection-start-line="4" selection-start-column="7" selection-end-line="4" selection-end-column="7" />
-        </state>
-      </provider>
-    </entry>
-    <entry file="file://$PROJECT_DIR$/src/org/tboox/xmake/project/LuaModuleType.java" />
-    <entry file="file://$PROJECT_DIR$/src/org/tboox/xmake/project/LuaModuleBuilder.java" />
-    <entry file="file://$PROJECT_DIR$/src/org/tboox/xmake/project/XMakeSDK.kt" />
-    <entry file="file://$PROJECT_DIR$/src/org/tboox/xmake/shared/XMakeProblem.kt">
-      <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="30">
-          <caret line="2" column="124" lean-forward="false" selection-start-line="2" selection-start-column="119" selection-end-line="2" selection-end-column="124" />
-        </state>
-      </provider>
-    </entry>
-    <entry file="file://$PROJECT_DIR$/src/org/tboox/xmake/shared/XMakeConfiguration.kt">
-      <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="463">
-          <caret line="242" column="5" lean-forward="true" selection-start-line="227" selection-start-column="0" selection-end-line="242" selection-end-column="5" />
-        </state>
-      </provider>
-    </entry>
-    <entry file="jar://$APPLICATION_HOME_DIR$/lib/openapi.jar!/com/intellij/openapi/projectRoots/SdkType.class">
-      <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="196">
-          <caret line="35" column="11" lean-forward="false" selection-start-line="35" selection-start-column="11" selection-end-line="35" selection-end-column="11" />
-        </state>
-      </provider>
-    </entry>
-    <entry file="file://$PROJECT_DIR$/src/org/tboox/xmake/project/LuaModuleConfigurationEditorProvider.java" />
-    <entry file="file://$PROJECT_DIR$/src/org/tboox/xmake/project/HWDEnvVarConfigurable.java" />
-    <entry file="file://$PROJECT_DIR$/src/org/tboox/xmake/project/XMakeModuleBuilderConfigurable.kt" />
-    <entry file="file://$PROJECT_DIR$/src/org/tboox/xmake/project/XMakeSdkType.kt">
-      <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="516">
-          <caret line="63" column="34" lean-forward="false" selection-start-line="63" selection-start-column="34" selection-end-line="64" selection-end-column="66" />
-          <folding />
-        </state>
-      </provider>
-    </entry>
-    <entry file="file://$PROJECT_DIR$/src/org/tboox/xmake/project/XMakeModuleType.kt">
-      <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="585">
-          <caret line="39" column="5" lean-forward="false" selection-start-line="30" selection-start-column="0" selection-end-line="39" selection-end-column="5" />
-        </state>
-      </provider>
-    </entry>
-    <entry file="jar://$APPLICATION_HOME_DIR$/lib/idea.jar!/com/intellij/ide/util/projectWizard/SdkSettingsStep.class">
-      <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="128">
-          <caret line="50" column="76" lean-forward="false" selection-start-line="50" selection-start-column="63" selection-end-line="50" selection-end-column="76" />
-        </state>
-      </provider>
-    </entry>
-    <entry file="file://$PROJECT_DIR$/src/org/tboox/xmake/project/XMakeSdkSettingsStep.kt">
-      <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="75">
-          <caret line="5" column="39" lean-forward="false" selection-start-line="5" selection-start-column="39" selection-end-line="5" selection-end-column="39" />
-          <folding>
-            <element signature="e#33#244#0" expanded="true" />
-          </folding>
-        </state>
-      </provider>
-    </entry>
-    <entry file="jar://$APPLICATION_HOME_DIR$/lib/openapi.jar!/com/intellij/ide/util/projectWizard/SourcePathsBuilder.class">
-      <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="90">
-          <caret line="12" column="17" lean-forward="false" selection-start-line="12" selection-start-column="17" selection-end-line="12" selection-end-column="17" />
-        </state>
-      </provider>
-    </entry>
-    <entry file="jar://$APPLICATION_HOME_DIR$/lib/openapi.jar!/com/intellij/openapi/roots/ContentEntry.class">
-      <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="144">
-          <caret line="44" column="17" lean-forward="false" selection-start-line="44" selection-start-column="17" selection-end-line="44" selection-end-column="17" />
-        </state>
-      </provider>
-    </entry>
-    <entry file="jar://$APPLICATION_HOME_DIR$/lib/openapi.jar!/com/intellij/openapi/roots/ModifiableRootModel.class">
-      <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="346">
-          <caret line="62" column="9" lean-forward="false" selection-start-line="62" selection-start-column="9" selection-end-line="62" selection-end-column="9" />
-        </state>
-      </provider>
-    </entry>
-    <entry file="file://$PROJECT_DIR$/src/org/tboox/xmake/project/XMakeToolWindowOutputPanel.kt">
-      <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="284">
-          <caret line="42" column="0" lean-forward="false" selection-start-line="42" selection-start-column="0" selection-end-line="42" selection-end-column="0" />
-        </state>
-      </provider>
-    </entry>
-    <entry file="file://$PROJECT_DIR$/src/org/tboox/xmake/project/XMakeModuleConfigurationEditorProvider.kt">
-      <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="120">
-          <caret line="8" column="6" lean-forward="false" selection-start-line="8" selection-start-column="6" selection-end-line="8" selection-end-column="6" />
-        </state>
-      </provider>
-    </entry>
-    <entry file="jar://$APPLICATION_HOME_DIR$/lib/openapi.jar!/com/intellij/ide/util/projectWizard/ModuleBuilder.class">
-      <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="196">
-          <caret line="120" column="19" lean-forward="false" selection-start-line="120" selection-start-column="13" selection-end-line="120" selection-end-column="19" />
-        </state>
-      </provider>
-    </entry>
-    <entry file="file://$PROJECT_DIR$/src/org/tboox/xmake/project/XMakeProjectConfigurable.kt">
-      <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="214">
-          <caret line="205" column="35" lean-forward="false" selection-start-line="205" selection-start-column="23" selection-end-line="205" selection-end-column="35" />
-        </state>
-      </provider>
-    </entry>
-    <entry file="file://$PROJECT_DIR$/src/org/tboox/xmake/utils/ConsoleProcessHandler.kt">
-      <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="60">
-          <caret line="11" column="121" lean-forward="false" selection-start-line="11" selection-start-column="121" selection-end-line="11" selection-end-column="121" />
-        </state>
-      </provider>
-    </entry>
-    <entry file="file://$PROJECT_DIR$/src/org/tboox/xmake/utils/SystemUtils.kt">
-      <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="2925">
-          <caret line="214" column="153" lean-forward="false" selection-start-line="214" selection-start-column="153" selection-end-line="214" selection-end-column="153" />
-        </state>
-      </provider>
-    </entry>
-    <entry file="file://$PROJECT_DIR$/src/org/tboox/xmake/actions/CleanAction.kt">
-      <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="255">
-          <caret line="23" column="109" lean-forward="false" selection-start-line="23" selection-start-column="109" selection-end-line="23" selection-end-column="109" />
-        </state>
-      </provider>
-    </entry>
-    <entry file="file://$PROJECT_DIR$/src/org/tboox/xmake/actions/CleanConfigurationAction.kt">
-      <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="210">
-          <caret line="18" column="26" lean-forward="false" selection-start-line="18" selection-start-column="26" selection-end-line="18" selection-end-column="26" />
-        </state>
-      </provider>
-    </entry>
-    <entry file="file://$PROJECT_DIR$/src/org/tboox/xmake/actions/RebuildAction.kt">
-      <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="285">
-          <caret line="25" column="73" lean-forward="false" selection-start-line="25" selection-start-column="73" selection-end-line="25" selection-end-column="73" />
-        </state>
-      </provider>
-    </entry>
-    <entry file="file://$PROJECT_DIR$/src/org/tboox/xmake/actions/RunAction.kt">
-      <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="345">
-          <caret line="32" column="61" lean-forward="false" selection-start-line="32" selection-start-column="61" selection-end-line="32" selection-end-column="61" />
-        </state>
-      </provider>
-    </entry>
-    <entry file="file://$PROJECT_DIR$/src/org/tboox/xmake/actions/QuickStartAction.kt">
-      <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="225">
-          <caret line="19" column="111" lean-forward="false" selection-start-line="19" selection-start-column="111" selection-end-line="19" selection-end-column="111" />
-        </state>
-      </provider>
-    </entry>
-    <entry file="file://$PROJECT_DIR$/src/org/tboox/xmake/project/XMakeToolWindowFactory.kt">
-      <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="390">
-          <caret line="32" column="25" lean-forward="false" selection-start-line="32" selection-start-column="25" selection-end-line="32" selection-end-column="25" />
-          <folding />
-        </state>
-      </provider>
-    </entry>
-    <entry file="file://$PROJECT_DIR$/src/org/tboox/xmake/actions/BuildAction.kt">
-      <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="135">
-          <caret line="15" column="41" lean-forward="false" selection-start-line="15" selection-start-column="41" selection-end-line="15" selection-end-column="41" />
-          <folding />
-        </state>
-      </provider>
-    </entry>
-    <entry file="file://$PROJECT_DIR$/src/org/tboox/xmake/project/XMakeModuleBuilder.kt">
-      <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="480">
-          <caret line="41" column="34" lean-forward="false" selection-start-line="41" selection-start-column="34" selection-end-line="41" selection-end-column="34" />
-          <folding />
-        </state>
-      </provider>
-    </entry>
-    <entry file="file://$PROJECT_DIR$/src/org/tboox/xmake/run/XMakeRunConfiguration.kt">
-      <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="1050">
-          <caret line="82" column="14" lean-forward="false" selection-start-line="82" selection-start-column="14" selection-end-line="82" selection-end-column="14" />
-          <folding />
-        </state>
-      </provider>
-    </entry>
-    <entry file="file://$PROJECT_DIR$/src/org/tboox/xmake/run/XMakeRunConfigurationEditor.kt">
-      <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="210">
-          <caret line="36" column="39" lean-forward="false" selection-start-line="36" selection-start-column="39" selection-end-line="36" selection-end-column="39" />
-          <folding />
-        </state>
-      </provider>
-    </entry>
-    <entry file="file://$PROJECT_DIR$/src/org/tboox/xmake/run/XMakeRunConfigurationProducer.kt">
-      <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="60">
-          <caret line="8" column="6" lean-forward="false" selection-start-line="8" selection-start-column="6" selection-end-line="8" selection-end-column="6" />
-          <folding />
-        </state>
-      </provider>
-    </entry>
-    <entry file="file://$PROJECT_DIR$/src/org/tboox/xmake/run/XMakeRunConfigurationType.kt">
-      <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="60">
-          <caret line="12" column="6" lean-forward="false" selection-start-line="12" selection-start-column="6" selection-end-line="12" selection-end-column="6" />
-          <folding />
-        </state>
-      </provider>
-    </entry>
-    <entry file="file://$PROJECT_DIR$/src/org/tboox/xmake/run/XMakeRunner.kt">
-      <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="105">
-          <caret line="10" column="0" lean-forward="false" selection-start-line="10" selection-start-column="0" selection-end-line="10" selection-end-column="0" />
-          <folding />
-        </state>
-      </provider>
-    </entry>
-    <entry file="file://$PROJECT_DIR$/src/org/tboox/xmake/run/XMakeProjectTasksRunner.kt">
-      <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="105">
-          <caret line="17" column="0" lean-forward="false" selection-start-line="17" selection-start-column="0" selection-end-line="17" selection-end-column="0" />
-          <folding>
-            <element signature="e#29#531#0" expanded="true" />
-          </folding>
-        </state>
-      </provider>
-    </entry>
-    <entry file="file://$PROJECT_DIR$/resources/META-INF/plugin.xml">
-      <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="15">
-          <caret line="15" column="25" lean-forward="false" selection-start-line="15" selection-start-column="25" selection-end-line="15" selection-end-column="25" />
-          <folding />
-        </state>
-      </provider>
-    </entry>
-  </component>
-  <component name="masterDetails">
-    <states>
-      <state key="ArtifactsStructureConfigurable.UI">
-        <settings>
-          <artifact-editor />
-          <last-edited>xmake-shared:jar</last-edited>
-          <splitter-proportions>
-            <option name="proportions">
-              <list>
-                <option value="0.2" />
-              </list>
-            </option>
-          </splitter-proportions>
-        </settings>
-      </state>
-      <state key="FacetStructureConfigurable.UI">
-        <settings>
-          <last-edited>No facets are configured</last-edited>
-          <splitter-proportions>
-            <option name="proportions">
-              <list>
-                <option value="0.2" />
-              </list>
-            </option>
-          </splitter-proportions>
-        </settings>
-      </state>
-      <state key="GlobalLibrariesConfigurable.UI">
-        <settings>
-          <splitter-proportions>
-            <option name="proportions">
-              <list>
-                <option value="0.2" />
-              </list>
-            </option>
-          </splitter-proportions>
-        </settings>
-      </state>
-      <state key="JdkListConfigurable.UI">
-        <settings>
-          <last-edited>IntelliJ IDEA Community Edition IC-172.4343.14</last-edited>
-          <splitter-proportions>
-            <option name="proportions">
-              <list>
-                <option value="0.2" />
-              </list>
-            </option>
-          </splitter-proportions>
-        </settings>
-      </state>
-      <state key="ModuleStructureConfigurable.UI">
-        <settings>
-          <last-edited>xmake-jps-plugin</last-edited>
-          <splitter-proportions>
-            <option name="proportions">
-              <list>
-                <option value="0.2" />
-                <option value="0.6" />
-              </list>
-            </option>
-          </splitter-proportions>
-        </settings>
-      </state>
-      <state key="ProjectJDKs.UI">
-        <settings>
-          <last-edited>1.7</last-edited>
-          <splitter-proportions>
-            <option name="proportions">
-              <list>
-                <option value="0.2" />
-              </list>
-            </option>
-          </splitter-proportions>
-        </settings>
-      </state>
-      <state key="ProjectLibrariesConfigurable.UI">
-        <settings>
-          <last-edited>xmake-shared</last-edited>
-          <splitter-proportions>
-            <option name="proportions">
-              <list>
-                <option value="0.2" />
-              </list>
-            </option>
-          </splitter-proportions>
-        </settings>
-      </state>
-    </states>
-  </component>
-</project>

+ 35 - 0
build.gradle

@@ -0,0 +1,35 @@
+plugins {
+    id 'java'
+    id 'org.jetbrains.intellij' version '0.7.3'
+    id 'org.jetbrains.kotlin.jvm' version '1.5.10'
+}
+apply plugin: 'org.jetbrains.intellij'
+apply plugin: 'idea'
+
+group 'org.tboox.xmake'
+version '1.0.6'
+
+repositories {
+    mavenCentral()
+    maven {
+        url "https://oss.sonatype.org/content/repositories/snapshots/"
+    }
+}
+
+dependencies {
+    implementation "org.jetbrains.kotlin:kotlin-stdlib"
+    testImplementation 'org.junit.jupiter:junit-jupiter-api:5.7.0'
+    testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.7.0'
+}
+
+// See https://github.com/JetBrains/gradle-intellij-plugin/
+intellij {
+    type 'CL'
+    version = 'CL-2021.1.2'
+    downloadSources false
+    plugins = ["com.intellij.cidr.base", "com.intellij.clion"]
+}
+
+test {
+    useJUnitPlatform()
+}

+ 1 - 0
gradle.properties

@@ -0,0 +1 @@
+kotlin.code.style=official

+ 5 - 0
gradle/wrapper/gradle-wrapper.properties

@@ -0,0 +1,5 @@
+distributionBase=GRADLE_USER_HOME
+distributionPath=wrapper/dists
+distributionUrl=https\://services.gradle.org/distributions/gradle-6.8-bin.zip
+zipStoreBase=GRADLE_USER_HOME
+zipStorePath=wrapper/dists

+ 185 - 0
gradlew

@@ -0,0 +1,185 @@
+#!/usr/bin/env sh
+
+#
+# Copyright 2015 the original author or authors.
+#
+# 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
+#
+#      https://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,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+##############################################################################
+##
+##  Gradle start up script for UN*X
+##
+##############################################################################
+
+# Attempt to set APP_HOME
+# Resolve links: $0 may be a link
+PRG="$0"
+# Need this for relative symlinks.
+while [ -h "$PRG" ] ; do
+    ls=`ls -ld "$PRG"`
+    link=`expr "$ls" : '.*-> \(.*\)$'`
+    if expr "$link" : '/.*' > /dev/null; then
+        PRG="$link"
+    else
+        PRG=`dirname "$PRG"`"/$link"
+    fi
+done
+SAVED="`pwd`"
+cd "`dirname \"$PRG\"`/" >/dev/null
+APP_HOME="`pwd -P`"
+cd "$SAVED" >/dev/null
+
+APP_NAME="Gradle"
+APP_BASE_NAME=`basename "$0"`
+
+# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
+
+# Use the maximum available, or set MAX_FD != -1 to use that value.
+MAX_FD="maximum"
+
+warn () {
+    echo "$*"
+}
+
+die () {
+    echo
+    echo "$*"
+    echo
+    exit 1
+}
+
+# OS specific support (must be 'true' or 'false').
+cygwin=false
+msys=false
+darwin=false
+nonstop=false
+case "`uname`" in
+  CYGWIN* )
+    cygwin=true
+    ;;
+  Darwin* )
+    darwin=true
+    ;;
+  MINGW* )
+    msys=true
+    ;;
+  NONSTOP* )
+    nonstop=true
+    ;;
+esac
+
+CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
+
+
+# Determine the Java command to use to start the JVM.
+if [ -n "$JAVA_HOME" ] ; then
+    if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
+        # IBM's JDK on AIX uses strange locations for the executables
+        JAVACMD="$JAVA_HOME/jre/sh/java"
+    else
+        JAVACMD="$JAVA_HOME/bin/java"
+    fi
+    if [ ! -x "$JAVACMD" ] ; then
+        die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
+
+Please set the JAVA_HOME variable in your environment to match the
+location of your Java installation."
+    fi
+else
+    JAVACMD="java"
+    which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+
+Please set the JAVA_HOME variable in your environment to match the
+location of your Java installation."
+fi
+
+# Increase the maximum file descriptors if we can.
+if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then
+    MAX_FD_LIMIT=`ulimit -H -n`
+    if [ $? -eq 0 ] ; then
+        if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
+            MAX_FD="$MAX_FD_LIMIT"
+        fi
+        ulimit -n $MAX_FD
+        if [ $? -ne 0 ] ; then
+            warn "Could not set maximum file descriptor limit: $MAX_FD"
+        fi
+    else
+        warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
+    fi
+fi
+
+# For Darwin, add options to specify how the application appears in the dock
+if $darwin; then
+    GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
+fi
+
+# For Cygwin or MSYS, switch paths to Windows format before running java
+if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then
+    APP_HOME=`cygpath --path --mixed "$APP_HOME"`
+    CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
+
+    JAVACMD=`cygpath --unix "$JAVACMD"`
+
+    # We build the pattern for arguments to be converted via cygpath
+    ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
+    SEP=""
+    for dir in $ROOTDIRSRAW ; do
+        ROOTDIRS="$ROOTDIRS$SEP$dir"
+        SEP="|"
+    done
+    OURCYGPATTERN="(^($ROOTDIRS))"
+    # Add a user-defined pattern to the cygpath arguments
+    if [ "$GRADLE_CYGPATTERN" != "" ] ; then
+        OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
+    fi
+    # Now convert the arguments - kludge to limit ourselves to /bin/sh
+    i=0
+    for arg in "$@" ; do
+        CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
+        CHECK2=`echo "$arg"|egrep -c "^-"`                                 ### Determine if an option
+
+        if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then                    ### Added a condition
+            eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
+        else
+            eval `echo args$i`="\"$arg\""
+        fi
+        i=`expr $i + 1`
+    done
+    case $i in
+        0) set -- ;;
+        1) set -- "$args0" ;;
+        2) set -- "$args0" "$args1" ;;
+        3) set -- "$args0" "$args1" "$args2" ;;
+        4) set -- "$args0" "$args1" "$args2" "$args3" ;;
+        5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
+        6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
+        7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
+        8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
+        9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
+    esac
+fi
+
+# Escape application args
+save () {
+    for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
+    echo " "
+}
+APP_ARGS=`save "$@"`
+
+# Collect all arguments for the java command, following the shell quoting and substitution rules
+eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"
+
+exec "$JAVACMD" "$@"

+ 89 - 0
gradlew.bat

@@ -0,0 +1,89 @@
+@rem
+@rem Copyright 2015 the original author or authors.
+@rem
+@rem Licensed under the Apache License, Version 2.0 (the "License");
+@rem you may not use this file except in compliance with the License.
+@rem You may obtain a copy of the License at
+@rem
+@rem      https://www.apache.org/licenses/LICENSE-2.0
+@rem
+@rem Unless required by applicable law or agreed to in writing, software
+@rem distributed under the License is distributed on an "AS IS" BASIS,
+@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+@rem See the License for the specific language governing permissions and
+@rem limitations under the License.
+@rem
+
+@if "%DEBUG%" == "" @echo off
+@rem ##########################################################################
+@rem
+@rem  Gradle startup script for Windows
+@rem
+@rem ##########################################################################
+
+@rem Set local scope for the variables with windows NT shell
+if "%OS%"=="Windows_NT" setlocal
+
+set DIRNAME=%~dp0
+if "%DIRNAME%" == "" set DIRNAME=.
+set APP_BASE_NAME=%~n0
+set APP_HOME=%DIRNAME%
+
+@rem Resolve any "." and ".." in APP_HOME to make it shorter.
+for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
+
+@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
+
+@rem Find java.exe
+if defined JAVA_HOME goto findJavaFromJavaHome
+
+set JAVA_EXE=java.exe
+%JAVA_EXE% -version >NUL 2>&1
+if "%ERRORLEVEL%" == "0" goto execute
+
+echo.
+echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:findJavaFromJavaHome
+set JAVA_HOME=%JAVA_HOME:"=%
+set JAVA_EXE=%JAVA_HOME%/bin/java.exe
+
+if exist "%JAVA_EXE%" goto execute
+
+echo.
+echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:execute
+@rem Setup the command line
+
+set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
+
+
+@rem Execute Gradle
+"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
+
+:end
+@rem End local scope for the variables with windows NT shell
+if "%ERRORLEVEL%"=="0" goto mainEnd
+
+:fail
+rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
+rem the _cmd.exe /c_ return code!
+if  not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
+exit /b 1
+
+:mainEnd
+if "%OS%"=="Windows_NT" endlocal
+
+:omega

+ 0 - 2
resources/META-INF/clion-only.xml

@@ -1,2 +0,0 @@
-<idea-plugin>
-</idea-plugin>

+ 0 - 118
resources/META-INF/plugin.xml

@@ -1,118 +0,0 @@
-<!-- plugin-docs: https://www.jetbrains.org/intellij/sdk/docs/basics.html -->
-<idea-plugin>
-  <id>org.tboox.xmake</id>
-  <name>XMake</name>
-  <version>1.0.5</version>
-  <vendor email="[email protected]" url="http://www.tboox.org">tboox.org</vendor>
-
-  <description><![CDATA[
-    A XMake integration plugin in Intellij Platform<br>
-    <p><a href="https://github.com/xmake-io/xmake-idea">Source Code</a> | <a href="https://gitter.im/tboox/tboox?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge">Gitter</a> | <a href="http://xmake.io/pages/donation.html#donate">Donate</a> | <a href="http://xmake.io">XMake Homepage</a></p>
-    Features:
-    <ul>
-        <li>xmake</li>
-        <ul>
-            <li>C/C++/Objc/Swift/Rust/Dlang/Golang ... support</li>
-            <li>Cross-platform support</li>
-            <li>Lua syntax</li>
-            <li><a href="https://github.com/xmake-io/xmake">More features and info about xmake</a></li>
-        </ul>
-        <li>Quickstart</li>
-        <li>Create project</li>
-        <li>Project configuration</li>
-        <li>Run configuration</li>
-        <li>Menu tools</li>
-        <li>Tool windows</li>
-        <li>Build and run</li>
-        <li>Goto error and waring problems</li>
-    </ul>
-    <p>中国朋友可以加QQ群交流及反馈BUG: 343118190</p>
-    ]]></description>
-
-  <change-notes><![CDATA[
-    <strong>1.0.5</strong>
-    <ul>
-        <li>[FIX]: Fix conflict issues with java</li>
-    </ul>
-    <strong>1.0.4</strong>
-    <ul>
-        <li>[NEW]: Modify rebuild icon</li>
-    </ul>
-    <strong>1.0.3</strong>
-    <ul>
-        <li>[NEW]: Improve exit code</li>
-    </ul>
-    <strong>1.0.2</strong>
-    <ul>
-        <li>[NEW]: Create project (c/c++/rust/go/dlang/swift/objc)</li>
-    </ul>
-    <strong>1.0.1</strong>
-    <ul>
-        <li>[NEW]: Quickstart</li>
-        <li>[NEW]: Project configuration</li>
-        <li>[NEW]: Run configuration</li>
-        <li>[NEW]: Menu tools</li>
-        <li>[NEW]: Tool windows</li>
-        <li>[NEW]: Build and run</li>
-        <li>[NEW]: Goto error and waring problems</li>
-    </ul>
-    ]]>
-  </change-notes>
-
-  <!-- please see http://www.jetbrains.org/intellij/sdk/docs/basics/getting_started/build_number_ranges.html for description -->
-  <idea-version since-build="145.0"/>
-
-  <!-- please see http://www.jetbrains.org/intellij/sdk/docs/basics/getting_started/plugin_compatibility.html
-       on how to target different products -->
-  <depends>com.intellij.modules.lang</depends>
-  <depends optional="true" config-file="idea-only.xml">com.intellij.modules.java</depends>
-  <!--<depends optional="true" config-file="clion-only.xml">com.intellij.modules.clion</depends>-->
-
-  <extensions defaultExtensionNs="com.intellij">
-
-    <!-- icons -->
-    <iconProvider implementation="org.tboox.xmake.icons.XMakeIconProvider"/>
-
-    <!-- module configurations -->
-    <sdkType implementation="org.tboox.xmake.project.XMakeSdkType"/>
-    <moduleType id="XMake.Module" implementationClass="org.tboox.xmake.project.XMakeModuleType"/>
-    <!--<moduleConfigurationEditorProvider implementation="org.tboox.xmake.project.XMakeModuleConfigurationEditorProvider"/>-->
-
-    <!-- project configurations -->
-    <projectConfigurable instance="org.tboox.xmake.project.XMakeProjectConfigurable" displayName="XMake" groupId="language"/>
-    <toolWindow id="XMake" anchor="bottom" factoryClass="org.tboox.xmake.project.XMakeToolWindowFactory" icon="/icons/xmake_13x13.png"/>
-
-    <!-- run configurations -->
-    <programRunner implementation="org.tboox.xmake.run.XMakeRunner"/>
-    <configurationType implementation="org.tboox.xmake.run.XMakeRunConfigurationType"/>
-    <runConfigurationProducer implementation="org.tboox.xmake.run.XMakeRunConfigurationProducer"/>
-    <!--<projectTaskRunner implementation="org.tboox.xmake.run.XMakeProjectTasksRunner"/>-->
-
-  </extensions>
-
-  <!--
-  group id
-       http://keithlea.com/idea-actions/
-       https://github.com/centic9/IntelliJ-Action-IDs
-  -->
-  <actions>
-    <group id="XMake.Menu" text="XMake" description="XMake Menu">
-      <add-to-group group-id="MainMenu" anchor="after" relative-to-action="RunMenu"/>
-      <action id="XMake.Run" class="org.tboox.xmake.actions.RunAction" text="Run Target" icon = "/icons/run.png" description="Run the current target."/>
-      <action id="XMake.Build" class="org.tboox.xmake.actions.BuildAction" text="Build Project" icon = "/icons/build.png" description="Build the current project."/>
-      <action id="XMake.Rebuild" class="org.tboox.xmake.actions.RebuildAction" text="Rebuild Project" icon = "/icons/rebuild.png" description="Rebuild the current project."/>
-      <action id="XMake.Clean" class="org.tboox.xmake.actions.CleanAction" text="Clean Project" icon = "/icons/clean.png" description="Clean target and object files."/>
-      <separator/>
-      <reference id="editRunConfigurations"/>
-      <action id="XMake.CleanConfiguration" class="org.tboox.xmake.actions.CleanConfigurationAction" text="Clean Configuration" icon = "/icons/cleanconf.png" description="Clean the current configuration."/>
-      <separator/>
-      <action id="XMake.QuickStart" class="org.tboox.xmake.actions.QuickStartAction" text="Quick Start" icon = "/icons/quickstart.png" description="Quick start a new project."/>
-    </group>
-  </actions>
-
-  <project-components>
-    <component>
-      <implementation-class>org.tboox.xmake.shared.XMakeConfiguration</implementation-class>
-    </component>
-  </project-components>
-</idea-plugin>

+ 10 - 0
settings.gradle

@@ -0,0 +1,10 @@
+
+pluginManagement {
+    repositories {
+        maven {
+            url 'https://oss.sonatype.org/content/repositories/snapshots/'
+        }
+        gradlePluginPortal()
+    }
+}
+rootProject.name = 'xmake-idea'

+ 1 - 0
src/org/tboox/xmake/actions/BuildAction.kt → src/main/kotlin/org/tboox/xmake/actions/BuildAction.kt

@@ -8,6 +8,7 @@ import org.tboox.xmake.project.xmakeConsoleView
 import org.tboox.xmake.utils.SystemUtils
 import org.tboox.xmake.shared.xmakeConfiguration
 
+
 class BuildAction : AnAction() {
 
     override fun actionPerformed(e: AnActionEvent) {

+ 0 - 0
src/org/tboox/xmake/actions/CleanAction.kt → src/main/kotlin/org/tboox/xmake/actions/CleanAction.kt


+ 0 - 0
src/org/tboox/xmake/actions/CleanConfigurationAction.kt → src/main/kotlin/org/tboox/xmake/actions/CleanConfigurationAction.kt


+ 0 - 0
src/org/tboox/xmake/actions/QuickStartAction.kt → src/main/kotlin/org/tboox/xmake/actions/QuickStartAction.kt


+ 0 - 0
src/org/tboox/xmake/actions/RebuildAction.kt → src/main/kotlin/org/tboox/xmake/actions/RebuildAction.kt


+ 0 - 0
src/org/tboox/xmake/actions/RunAction.kt → src/main/kotlin/org/tboox/xmake/actions/RunAction.kt


+ 0 - 1
src/org/tboox/xmake/icons/XMakeIconProvider.kt → src/main/kotlin/org/tboox/xmake/icons/XMakeIconProvider.kt

@@ -1,7 +1,6 @@
 package org.tboox.xmake.icons
 
 import com.intellij.ide.IconProvider
-import com.intellij.openapi.diagnostic.Logger
 import com.intellij.psi.PsiElement
 import javax.swing.Icon
 

+ 22 - 0
src/main/kotlin/org/tboox/xmake/icons/XMakeIcons.kt

@@ -0,0 +1,22 @@
+package org.tboox.xmake.icons
+
+import com.intellij.openapi.util.IconLoader
+import javax.swing.Icon
+
+object XMakeIcons {
+
+    // logo icon
+    val XMAKE = load("/icons/xmake.png")
+
+    // file icon
+    val FILE = load("/icons/xmake.png")
+
+    // error icon
+    val ERROR = load("/icons/error.png")
+
+    // warning icon
+    val WARNING = load("/icons/warning.png")
+
+    private fun load(path: String): Icon = IconLoader.getIcon(path, XMakeIcons::class.java)
+
+}

+ 6 - 0
src/main/kotlin/org/tboox/xmake/project/XMakeConfigData.kt

@@ -0,0 +1,6 @@
+package org.tboox.xmake.project
+
+data class XMakeConfigData(
+    val languagesModel: String,
+    val kindsModel: String
+)

+ 51 - 0
src/main/kotlin/org/tboox/xmake/project/XMakeDirectoryProjectGenerator.kt

@@ -0,0 +1,51 @@
+package org.tboox.xmake.project
+
+import com.intellij.facet.ui.ValidationResult
+import com.intellij.ide.util.projectWizard.AbstractNewProjectStep
+import com.intellij.ide.util.projectWizard.CustomStepProjectGenerator
+import com.intellij.openapi.module.Module
+import com.intellij.openapi.project.Project
+import com.intellij.openapi.vfs.VirtualFile
+import com.intellij.openapi.wm.impl.welcomeScreen.AbstractActionWithPanel
+import com.intellij.platform.DirectoryProjectGenerator
+import com.intellij.platform.DirectoryProjectGeneratorBase
+import com.intellij.platform.ProjectGeneratorPeer
+import org.tboox.xmake.icons.XMakeIcons
+import org.tboox.xmake.utils.SystemUtils
+import java.io.File
+import javax.swing.Icon
+
+
+class XMakeDirectoryProjectGenerator : DirectoryProjectGeneratorBase<XMakeConfigData>(),
+    CustomStepProjectGenerator<XMakeConfigData> {
+
+    private var peer: XMakeProjectGeneratorPeer? = null
+
+    override fun getName(): String = "XMake"
+    override fun getLogo(): Icon = XMakeIcons.XMAKE
+    override fun createPeer(): ProjectGeneratorPeer<XMakeConfigData> = XMakeProjectGeneratorPeer().also { peer = it }
+
+    override fun generateProject(project: Project, baseDir: VirtualFile, data: XMakeConfigData, module: Module) {
+        // get content entry path
+        val contentEntryPath = baseDir.canonicalPath ?: return
+
+        // create empty project
+        SystemUtils.Runv(
+            listOf(
+                SystemUtils.xmakeProgram,
+                "create",
+                "-P",
+                contentEntryPath,
+                "-l",
+                data.languagesModel,
+                "-t",
+                data.kindsModel
+            )
+        )
+    }
+
+    override fun createStep(
+        projectGenerator: DirectoryProjectGenerator<XMakeConfigData>,
+        callback: AbstractNewProjectStep.AbstractCallback<XMakeConfigData>
+    ): AbstractActionWithPanel = XMakeProjectSettingsStep(projectGenerator)
+}

+ 63 - 0
src/main/kotlin/org/tboox/xmake/project/XMakeModuleBuilder.kt

@@ -0,0 +1,63 @@
+package org.tboox.xmake.project
+
+import XMakeSdkSettingsStep
+import com.intellij.ide.util.projectWizard.*
+import com.intellij.openapi.Disposable
+import com.intellij.openapi.diagnostic.Logger
+import com.intellij.openapi.module.ModuleType
+import com.intellij.openapi.projectRoots.SdkTypeId
+import com.intellij.openapi.roots.ModifiableRootModel
+import com.intellij.openapi.util.Disposer
+import com.intellij.openapi.util.io.FileUtil
+import com.intellij.openapi.vfs.LocalFileSystem
+import org.tboox.xmake.utils.SystemUtils
+
+
+class XMakeModuleBuilder : ModuleBuilder() {
+    var configurationData: XMakeConfigData? = null
+
+
+    override fun isSuitableSdkType(sdkType: SdkTypeId?): Boolean = true
+
+
+    override fun setupRootModel(rootModel: ModifiableRootModel) {
+
+        // get content entry path
+        val contentEntryPath = contentEntryPath ?: return
+
+        // get content entry
+        val contentEntry = doAddContentEntry(rootModel) ?: return
+
+        // add source root
+        val sourceRoot =
+            LocalFileSystem.getInstance().refreshAndFindFileByPath(FileUtil.toSystemIndependentName(contentEntryPath))!!
+        contentEntry.addSourceFolder(sourceRoot, false)
+
+        // create empty project
+        SystemUtils.Runv(
+            listOf(
+                SystemUtils.xmakeProgram,
+                "create",
+                "-P",
+                contentEntryPath,
+                "-l",
+                configurationData?.languagesModel.toString(),
+                "-t",
+                configurationData?.kindsModel.toString()
+            )
+        )
+    }
+
+    override fun getModuleType(): ModuleType<*> {
+        return XMakeModuleType.instance
+    }
+
+    override fun getCustomOptionsStep(context: WizardContext, parentDisposable: Disposable): ModuleWizardStep =
+        XMakeSdkSettingsStep(context).apply {
+            Disposer.register(parentDisposable, this::disposeUIResources)
+        }
+
+    companion object {
+        private val Log = Logger.getInstance(XMakeModuleBuilder::class.java.getName())
+    }
+}

+ 2 - 2
src/org/tboox/xmake/project/XMakeModuleConfigurationEditorProvider.kt → src/main/kotlin/org/tboox/xmake/project/XMakeModuleConfigurationEditorProvider.kt

@@ -2,7 +2,7 @@ package org.tboox.xmake.project
 
 import com.intellij.openapi.diagnostic.Logger
 import com.intellij.openapi.module.ModuleConfigurationEditor
-import com.intellij.openapi.roots.ui.configuration.DefaultModuleConfigurationEditorFactory
+//import com.intellij.openapi.roots.ui.configuration.DefaultModuleConfigurationEditorFactory
 import com.intellij.openapi.roots.ui.configuration.ModuleConfigurationEditorProvider
 import com.intellij.openapi.roots.ui.configuration.ModuleConfigurationState
 
@@ -11,7 +11,7 @@ class XMakeModuleConfigurationEditorProvider : ModuleConfigurationEditorProvider
     override fun createEditors(moduleConfigurationState: ModuleConfigurationState): Array<ModuleConfigurationEditor> {
 
         var editors = arrayOf<ModuleConfigurationEditor>()
-        val factory = DefaultModuleConfigurationEditorFactory.getInstance()
+//        val factory = DefaultModuleConfigurationEditorFactory.getInstance()
 
         /*
         editors += factory.createModuleContentRootsEditor(moduleConfigurationState)

+ 0 - 0
src/org/tboox/xmake/project/XMakeModuleType.kt → src/main/kotlin/org/tboox/xmake/project/XMakeModuleType.kt


+ 88 - 0
src/main/kotlin/org/tboox/xmake/project/XMakeNewProjectPanel.kt

@@ -0,0 +1,88 @@
+package org.tboox.xmake.project
+
+import com.intellij.openapi.Disposable
+import com.intellij.openapi.project.ProjectManager
+import com.intellij.openapi.roots.ui.configuration.SdkComboBox
+import com.intellij.openapi.roots.ui.configuration.SdkComboBoxModel
+import com.intellij.openapi.roots.ui.configuration.projectRoot.ProjectSdksModel
+import com.intellij.openapi.ui.ComboBox
+import com.intellij.ui.layout.LayoutBuilder
+import java.awt.BorderLayout
+import javax.swing.DefaultComboBoxModel
+import javax.swing.JComponent
+import javax.swing.JPanel
+
+class XMakeNewProjectPanel : Disposable {
+
+    // the module kinds
+    private val kindsModel = DefaultComboBoxModel<String>().apply {
+        addElement("Console")
+        addElement("Static Library")
+        addElement("Shared Library")
+    }
+
+    // the module languages
+    private val languagesModel = DefaultComboBoxModel<String>().apply {
+        addElement("C")
+        addElement("C++")
+        addElement("Rust")
+        addElement("Dlang")
+        addElement("Go")
+        addElement("Swift")
+        addElement("Objc")
+        addElement("Objc++")
+    }
+
+    // the module kinds
+    private val kindsComboBox = ComboBox(kindsModel)
+
+    // the module languages
+    private val languagesComboBox = ComboBox(languagesModel)
+
+    val data: XMakeConfigData
+        get() = XMakeConfigData(
+            languagesModel.selectedItem.toString().lowercase(),
+            template
+        )
+
+    // get template
+    private val template: String
+        get() = when (kindsModel.selectedItem.toString()) {
+            "Console" -> "console"
+            "Static Library" -> "static"
+            "Shared Library" -> "shared"
+            else -> "console"
+        }
+
+
+    fun attachTo(layout: LayoutBuilder) = with(layout) {
+        row("XMake SDK:") {
+            val project = ProjectManager.getInstance().defaultProject
+            val sdkModel = ProjectSdksModel()
+            sdkModel.addSdk(XMakeSdkType.instance, XMakeSdkType.instance.suggestHomePath()!!, null)
+            val myJdkComboBox = SdkComboBox(SdkComboBoxModel.createSdkComboBoxModel(project, sdkModel))
+            wrapComponent(myJdkComboBox)(growX, pushX)
+        }
+        row("Module Language:") {
+            wrapComponent(languagesComboBox)(growX, pushX)
+        }
+        row("Module Type:") {
+            wrapComponent(kindsComboBox)(growX, pushX)
+        }
+
+        update()
+    }
+
+    private fun wrapComponent(component: JComponent): JComponent =
+        JPanel(BorderLayout()).apply {
+            add(component, BorderLayout.NORTH)
+        }
+
+    fun update() {
+
+    }
+
+    override fun dispose() {
+    }
+
+}

+ 1 - 9
src/org/tboox/xmake/project/XMakeProjectConfigurable.kt → src/main/kotlin/org/tboox/xmake/project/XMakeProjectConfigurable.kt

@@ -1,7 +1,6 @@
 package org.tboox.xmake.project
 
 import com.intellij.execution.ExecutionBundle
-import com.intellij.execution.configuration.EnvironmentVariablesComponent
 import com.intellij.openapi.diagnostic.Logger
 import com.intellij.openapi.fileChooser.FileChooserDescriptorFactory
 import com.intellij.openapi.options.Configurable
@@ -13,21 +12,14 @@ import com.intellij.openapi.ui.TextFieldWithBrowseButton
 import com.intellij.ui.RawCommandLineEditor
 import com.intellij.ui.components.CheckBox
 import com.intellij.ui.components.Label
-import com.intellij.ui.components.JBLabel
-import com.intellij.ui.layout.CCFlags
 import com.intellij.ui.layout.LayoutBuilder
 import com.intellij.ui.layout.Row
 import com.intellij.ui.layout.panel
 import org.tboox.xmake.shared.XMakeConfiguration
 import org.tboox.xmake.shared.xmakeConfiguration
 import java.awt.Dimension
-import java.nio.file.Path
-import java.nio.file.Paths
 import javax.swing.JComponent
-import javax.swing.JList
 import javax.swing.JPanel
-import javax.swing.JLabel
-import javax.swing.JTextField
 import javax.swing.JTextArea
 import javax.swing.DefaultComboBoxModel
 import javax.swing.event.ListDataEvent
@@ -38,7 +30,7 @@ import java.awt.event.ItemEvent
 import java.awt.event.ItemListener
 
 class XMakeProjectConfigurable(
-        private val project: Project
+        project: Project
 ) : Configurable, Configurable.NoScroll {
 
     // the xmake configuration

+ 24 - 0
src/main/kotlin/org/tboox/xmake/project/XMakeProjectGeneratorPeer.kt

@@ -0,0 +1,24 @@
+package org.tboox.xmake.project
+
+import com.intellij.openapi.ui.TextFieldWithBrowseButton
+import com.intellij.platform.GeneratorPeerImpl
+import com.intellij.ui.layout.panel
+import javax.swing.JComponent
+
+class XMakeProjectGeneratorPeer : GeneratorPeerImpl<XMakeConfigData>() {
+
+    private val newProjectPanel = XMakeNewProjectPanel()
+    private var checkValid: Runnable? = null
+
+    override fun getSettings(): XMakeConfigData = newProjectPanel.data
+
+    override fun getComponent(myLocationField: TextFieldWithBrowseButton, checkValid: Runnable): JComponent {
+        this.checkValid = checkValid
+        return super.getComponent(myLocationField, checkValid)
+    }
+
+    override fun getComponent(): JComponent = panel {
+        newProjectPanel.attachTo(this)
+    }
+
+}

+ 7 - 0
src/main/kotlin/org/tboox/xmake/project/XMakeProjectSettingsStep.kt

@@ -0,0 +1,7 @@
+package org.tboox.xmake.project
+import com.intellij.ide.util.projectWizard.AbstractNewProjectStep
+import com.intellij.ide.util.projectWizard.ProjectSettingsStepBase
+import com.intellij.platform.DirectoryProjectGenerator
+
+open class XMakeProjectSettingsStep(generator: DirectoryProjectGenerator<XMakeConfigData>)
+    : ProjectSettingsStepBase<XMakeConfigData>(generator, AbstractNewProjectStep.AbstractCallback())

+ 43 - 0
src/main/kotlin/org/tboox/xmake/project/XMakeSdkSettingsStep.kt

@@ -0,0 +1,43 @@
+import com.intellij.ide.util.projectWizard.ModuleBuilder
+import com.intellij.ide.util.projectWizard.ModuleWizardStep
+import com.intellij.ide.util.projectWizard.WizardContext
+import com.intellij.openapi.module.Module
+import com.intellij.openapi.roots.ModifiableRootModel
+import com.intellij.ui.layout.panel
+import javax.swing.JComponent
+import com.intellij.openapi.util.Disposer
+import org.tboox.xmake.project.XMakeModuleBuilder
+import org.tboox.xmake.project.XMakeNewProjectPanel
+
+
+class XMakeSdkSettingsStep(
+    private val context: WizardContext,
+    private val configurationUpdaterConsumer: ((ModuleBuilder.ModuleConfigurationUpdater) -> Unit)? = null
+) : ModuleWizardStep() {
+
+    private val newProjectPanel = XMakeNewProjectPanel()
+
+    override fun getComponent(): JComponent = panel {
+        newProjectPanel.attachTo(this)
+    }
+
+    override fun disposeUIResources() = Disposer.dispose(newProjectPanel)
+
+    override fun updateDataModel() {
+        val data = newProjectPanel.data
+
+        val projectBuilder = context.projectBuilder
+        if (projectBuilder is XMakeModuleBuilder) {
+            projectBuilder.configurationData = data
+            projectBuilder.addModuleConfigurationUpdater(ConfigurationUpdater)
+        } else {
+            configurationUpdaterConsumer?.invoke(ConfigurationUpdater)
+        }
+    }
+
+    private object ConfigurationUpdater : ModuleBuilder.ModuleConfigurationUpdater() {
+
+        override fun update(module: Module, rootModel: ModifiableRootModel) {
+        }
+    }
+}

+ 2 - 4
src/org/tboox/xmake/project/XMakeSdkType.kt → src/main/kotlin/org/tboox/xmake/project/XMakeSdkType.kt

@@ -1,6 +1,5 @@
 package org.tboox.xmake.project
 
-import com.intellij.openapi.application.PathManager
 import com.intellij.openapi.diagnostic.Logger
 import com.intellij.openapi.projectRoots.SdkType
 import com.intellij.openapi.projectRoots.SdkAdditionalData
@@ -11,7 +10,6 @@ import com.intellij.openapi.projectRoots.Sdk
 import org.tboox.xmake.icons.XMakeIcons
 import org.jdom.Element
 import org.tboox.xmake.utils.SystemUtils
-import java.io.File
 import javax.swing.Icon
 
 class XMakeSdkType : SdkType("XMake SDK") {
@@ -32,7 +30,7 @@ class XMakeSdkType : SdkType("XMake SDK") {
         return "XMake"
     }
 
-    override fun getVersionString(sdk: Sdk): String? {
+    override fun getVersionString(sdk: Sdk): String {
         return SystemUtils.xmakeVersion
     }
 
@@ -62,6 +60,6 @@ class XMakeSdkType : SdkType("XMake SDK") {
 
         // the instance
         val instance: XMakeSdkType
-            get() = SdkType.findInstance(XMakeSdkType::class.java)
+            get() = findInstance(XMakeSdkType::class.java)
     }
 }

+ 3 - 3
src/org/tboox/xmake/project/XMakeToolWindowFactory.kt → src/main/kotlin/org/tboox/xmake/project/XMakeToolWindowFactory.kt

@@ -27,16 +27,16 @@ class XMakeToolWindowFactory : ToolWindowFactory {
 }
 
 // the xmake tool windows
-val Project.xmakeToolWindow: ToolWindow
+val Project.xmakeToolWindow: ToolWindow?
     get() = ToolWindowManager.getInstance(this).getToolWindow("XMake")
 
 // the xmake output panel
 val Project.xmakeOutputPanel: XMakeToolWindowOutputPanel
-    get() = this.xmakeToolWindow.contentManager.getContent(0)?.component as XMakeToolWindowOutputPanel
+    get() = this.xmakeToolWindow?.contentManager?.getContent(0)?.component as XMakeToolWindowOutputPanel
 
 // the xmake problem panel
 val Project.xmakeProblemPanel: XMakeToolWindowProblemPanel
-    get() = this.xmakeToolWindow.contentManager.getContent(1)?.component as XMakeToolWindowProblemPanel
+    get() = this.xmakeToolWindow?.contentManager?.getContent(1)?.component as XMakeToolWindowProblemPanel
 
 // the xmake console view
 val Project.xmakeConsoleView: ConsoleView

+ 10 - 13
src/org/tboox/xmake/project/XMakeToolWindowOutputPanel.kt → src/main/kotlin/org/tboox/xmake/project/XMakeToolWindowOutputPanel.kt

@@ -2,28 +2,25 @@ package org.tboox.xmake.project
 
 import com.intellij.execution.filters.TextConsoleBuilderFactory
 import com.intellij.execution.ui.ConsoleView
-import com.intellij.execution.ui.ConsoleViewContentType
 import com.intellij.openapi.actionSystem.ActionManager
 import com.intellij.openapi.actionSystem.ActionToolbar
 import com.intellij.openapi.actionSystem.DefaultActionGroup
 import com.intellij.openapi.diagnostic.Logger
-import com.intellij.openapi.project.CacheUpdateRunner
 import com.intellij.openapi.project.Project
 import com.intellij.openapi.ui.SimpleToolWindowPanel
-import javax.swing.JEditorPane
-import javax.swing.JList
-import javax.swing.JPanel
-import javax.swing.ListSelectionModel
 
-class XMakeToolWindowOutputPanel(project: Project) : SimpleToolWindowPanel(false) {
-
-    // the project
-    val project = project
+class XMakeToolWindowOutputPanel(// the project
+    val project: Project
+) : SimpleToolWindowPanel(false) {
 
     // the toolbar
     val toolbar: ActionToolbar = run {
         val actionManager = ActionManager.getInstance()
-        actionManager.createActionToolbar("XMake Toolbar", actionManager.getAction("XMake.Menu") as DefaultActionGroup, false)
+        actionManager.createActionToolbar(
+            "XMake Toolbar",
+            actionManager.getAction("XMake.Menu") as DefaultActionGroup,
+            false
+        )
     }
 
     // the console view
@@ -45,8 +42,8 @@ class XMakeToolWindowOutputPanel(project: Project) : SimpleToolWindowPanel(false
 
     // show panel
     fun showPanel() {
-        val contentManager = project.xmakeToolWindow.contentManager
-        contentManager.setSelectedContent(contentManager.getContent(0)!!)
+        val contentManager = project.xmakeToolWindow?.contentManager
+        contentManager?.setSelectedContent(contentManager.getContent(0)!!)
     }
 
     override fun getData(dataId: String): Any? {

+ 0 - 3
src/org/tboox/xmake/project/XMakeToolWindowProblemPanel.kt → src/main/kotlin/org/tboox/xmake/project/XMakeToolWindowProblemPanel.kt

@@ -18,17 +18,14 @@ import org.tboox.xmake.shared.XMakeProblem
 import java.awt.Font
 import java.awt.event.MouseEvent
 import java.awt.event.MouseAdapter
-import javax.swing.JEditorPane
 import javax.swing.JScrollPane
 import javax.swing.JList
-import javax.swing.JPanel
 import java.io.File
 import javax.swing.ListSelectionModel
 import com.intellij.openapi.fileEditor.OpenFileDescriptor
 import com.intellij.openapi.vfs.LocalFileSystem
 import org.tboox.xmake.shared.xmakeConfiguration
 import com.intellij.openapi.fileEditor.FileEditorManager
-import com.intellij.openapi.editor.Editor
 import com.intellij.openapi.editor.markup.EffectType
 import com.intellij.openapi.editor.markup.TextAttributes
 

+ 12 - 8
src/org/tboox/xmake/run/XMakeRunConfiguration.kt → src/main/kotlin/org/tboox/xmake/run/XMakeRunConfiguration.kt

@@ -14,8 +14,10 @@ import org.tboox.xmake.project.xmakeConsoleView
 import org.tboox.xmake.shared.xmakeConfiguration
 import org.tboox.xmake.utils.SystemUtils
 
-class XMakeRunConfiguration(project: Project, name: String, factory: ConfigurationFactory
-) : LocatableConfigurationBase(project, factory, name), RunConfigurationWithSuppressedDefaultDebugAction {
+class XMakeRunConfiguration(
+    project: Project, name: String, factory: ConfigurationFactory
+) : LocatableConfigurationBase<RunProfileState>(project, factory, name),
+    RunConfigurationWithSuppressedDefaultDebugAction {
 
     // the run target
     var runTarget: String = "default"
@@ -76,11 +78,12 @@ class XMakeRunConfiguration(project: Project, name: String, factory: Configurati
         // configure and run it
         val xmakeConfiguration = project.xmakeConfiguration
         if (xmakeConfiguration.changed) {
-            SystemUtils.runvInConsole(project, xmakeConfiguration.configurationCommandLine).addProcessListener(object: ProcessAdapter() {
-                override fun processTerminated(e: ProcessEvent) {
-                    SystemUtils.runvInConsole(project, runCommandLine, false, true, true)
-                }
-            })
+            SystemUtils.runvInConsole(project, xmakeConfiguration.configurationCommandLine)
+                .addProcessListener(object : ProcessAdapter() {
+                    override fun processTerminated(e: ProcessEvent) {
+                        SystemUtils.runvInConsole(project, runCommandLine, false, true, true)
+                    }
+                })
             xmakeConfiguration.changed = false
         } else {
             SystemUtils.runvInConsole(project, runCommandLine, true, true, true)
@@ -103,7 +106,8 @@ private fun Element.writeString(name: String, value: String) {
     addContent(opt)
 }
 
-private fun Element.readString(name: String): String? = children.find { it.name == "option" && it.getAttributeValue("name") == name }?.getAttributeValue("value")
+private fun Element.readString(name: String): String? =
+    children.find { it.name == "option" && it.getAttributeValue("name") == name }?.getAttributeValue("value")
 
 
 private fun Element.writeBool(name: String, value: Boolean) {

+ 0 - 10
src/org/tboox/xmake/run/XMakeRunConfigurationEditor.kt → src/main/kotlin/org/tboox/xmake/run/XMakeRunConfigurationEditor.kt

@@ -1,27 +1,17 @@
 package org.tboox.xmake.run
 
-import com.intellij.execution.ExecutionBundle
 import com.intellij.execution.configuration.EnvironmentVariablesComponent
 import com.intellij.openapi.diagnostic.Logger
-import com.intellij.openapi.fileChooser.FileChooserDescriptorFactory
 import com.intellij.openapi.options.SettingsEditor
 import com.intellij.openapi.project.Project
 import com.intellij.openapi.ui.ComboBox
-import com.intellij.openapi.ui.LabeledComponent
-import com.intellij.openapi.ui.TextFieldWithBrowseButton
 import com.intellij.ui.RawCommandLineEditor
-import com.intellij.ui.components.CheckBox
 import com.intellij.ui.layout.*
 import com.intellij.ui.components.Label
-import org.tboox.xmake.shared.XMakeConfiguration
 import org.tboox.xmake.shared.xmakeConfiguration
 import java.awt.Dimension
-import java.nio.file.Path
-import java.nio.file.Paths
 import javax.swing.JComponent
-import javax.swing.JList
 import javax.swing.JPanel
-import javax.swing.JTextField
 import javax.swing.DefaultComboBoxModel
 
 class XMakeRunConfigurationEditor(private val project: Project) : SettingsEditor<XMakeRunConfiguration>() {

+ 0 - 0
src/org/tboox/xmake/run/XMakeRunConfigurationProducer.kt → src/main/kotlin/org/tboox/xmake/run/XMakeRunConfigurationProducer.kt


+ 16 - 15
src/org/tboox/xmake/run/XMakeRunConfigurationType.kt → src/main/kotlin/org/tboox/xmake/run/XMakeRunConfigurationType.kt

@@ -1,6 +1,5 @@
 package org.tboox.xmake.run
 
-import com.intellij.compiler.options.CompileStepBeforeRun
 import com.intellij.execution.BeforeRunTask
 import com.intellij.execution.configurations.ConfigurationFactory
 import com.intellij.execution.configurations.ConfigurationTypeBase
@@ -11,24 +10,26 @@ import com.intellij.openapi.util.Key
 import org.tboox.xmake.icons.XMakeIcons
 
 class XMakeRunConfigurationType : ConfigurationTypeBase(
-        "XMakeRunConfiguration",
-        "XMake",
-        "XMake run command configuration",
-        XMakeIcons.XMAKE
+    "XMakeRunConfiguration",
+    "XMake",
+    "XMake run command configuration",
+    XMakeIcons.XMAKE
 ) {
     init {
         addFactory(object : ConfigurationFactory(this) {
             override fun createTemplateConfiguration(project: Project): RunConfiguration =
-                    XMakeRunConfiguration(project, "XMake", this)
-
-            override fun configureBeforeRunTaskDefaults(providerID: Key<out BeforeRunTask<BeforeRunTask<*>>>,
-                                                        task: BeforeRunTask<out BeforeRunTask<*>>) {
-
-                if (providerID == CompileStepBeforeRun.ID) {
-                    // We don't use jps, so we don't need to execute `Make` task
-                    // before run configuration is executed
-                    task.isEnabled = false
-                }
+                XMakeRunConfiguration(project, "XMake", this)
+
+            override fun configureBeforeRunTaskDefaults(
+                providerID: Key<out BeforeRunTask<BeforeRunTask<*>>>,
+                task: BeforeRunTask<out BeforeRunTask<*>>
+            ) {
+
+//                if (providerID == CompileStepBeforeRun.ID) {
+//                    // We don't use jps, so we don't need to execute `Make` task
+//                    // before run configuration is executed
+//                    task.isEnabled = false
+//                }
             }
 
             override fun isConfigurationSingletonByDefault(): Boolean = true

+ 1 - 1
src/org/tboox/xmake/run/XMakeRunner.kt → src/main/kotlin/org/tboox/xmake/run/XMakeRunner.kt

@@ -1,4 +1,4 @@
-package org.tboox.xmake.run;
+package org.tboox.xmake.run
 
 import com.intellij.execution.configurations.RunProfile
 import com.intellij.execution.executors.DefaultRunExecutor

+ 3 - 4
src/org/tboox/xmake/shared/XMakeConfiguration.kt → src/main/kotlin/org/tboox/xmake/shared/XMakeConfiguration.kt

@@ -10,10 +10,9 @@ import com.intellij.openapi.project.Project
 import org.tboox.xmake.utils.SystemUtils
 
 @State(name = "XMakeProjectSettings")
-class XMakeConfiguration(project: Project) : PersistentStateComponent<XMakeConfiguration.State>, ProjectComponent {
-
-    // the project
-    val project = project
+class XMakeConfiguration(// the project
+    val project: Project
+) : PersistentStateComponent<XMakeConfiguration.State>, ProjectComponent {
 
     // the platforms
     val platforms = arrayOf("macosx", "linux", "windows", "android", "iphoneos", "watchos", "mingw")

+ 0 - 0
src/org/tboox/xmake/shared/XMakeProblem.kt → src/main/kotlin/org/tboox/xmake/shared/XMakeProblem.kt


+ 10 - 9
src/org/tboox/xmake/utils/ConsoleProcessHandler.kt → src/main/kotlin/org/tboox/xmake/utils/ConsoleProcessHandler.kt

@@ -9,7 +9,11 @@ import com.intellij.execution.configurations.GeneralCommandLine
 import java.io.IOException
 import java.io.OutputStreamWriter
 
-class ConsoleProcessHandler(private val consoleView: ConsoleView, commandLine: GeneralCommandLine, showExitCode: Boolean = false) : KillableColoredProcessHandler(commandLine) {
+class ConsoleProcessHandler(
+    private val consoleView: ConsoleView,
+    commandLine: GeneralCommandLine,
+    showExitCode: Boolean = false
+) : KillableColoredProcessHandler(commandLine) {
 
     // the output content
     var outputContent = ""
@@ -17,21 +21,18 @@ class ConsoleProcessHandler(private val consoleView: ConsoleView, commandLine: G
     // initialize
     init {
 
-        // add colored text listener
-        this.addColoredTextListener(object: AnsiEscapeDecoder.ColoredTextAcceptor {
-            override fun coloredTextAvailable(text: String, attributes: Key<*>) {
-                append(text, attributes)
-            }
-        })
-        
         // shows exit code upon termination
         if (showExitCode) {
             ProcessTerminatedListener.attach(this)
         }
     }
 
+    override fun coloredTextAvailable(textOriginal: String, attributes: Key<*>) {
+        append(textOriginal, attributes)
+    }
+
     // append info to the console view
-    private fun append(s: String, k: Key<*>?) {
+    private fun append(s: String, k: Key<*>) {
         this.consoleView.print(s, ConsoleViewContentType.getConsoleViewType(k))
         outputContent += s
     }

+ 1 - 2
src/org/tboox/xmake/utils/SystemUtils.kt → src/main/kotlin/org/tboox/xmake/utils/SystemUtils.kt

@@ -19,7 +19,6 @@ import java.io.InputStreamReader
 import java.io.File
 import java.util.regex.Pattern
 
-import java.nio.charset.Charset
 
 object SystemUtils {
 
@@ -221,7 +220,7 @@ object SystemUtils {
         if (showConsole) {
 
             // show tool window first
-            project.xmakeToolWindow.show {
+            project.xmakeToolWindow?.show {
                 project.xmakeOutputPanel.showPanel()
             }
         }

+ 4 - 0
src/main/resources/META-INF/clion-only.xml

@@ -0,0 +1,4 @@
+<idea-plugin xmlns:xi="http://www.w3.org/2001/XInclude" allow-bundled-update="true">
+    <depends>com.intellij.cidr.base</depends>
+    <depends>com.intellij.clion</depends>
+</idea-plugin>

+ 0 - 0
resources/META-INF/idea-only.xml → src/main/resources/META-INF/idea-only.xml


+ 130 - 0
src/main/resources/META-INF/plugin.xml

@@ -0,0 +1,130 @@
+<!-- plugin-docs: https://www.jetbrains.org/intellij/sdk/docs/basics.html -->
+<idea-plugin>
+    <id>org.tboox.xmake</id>
+    <name>XMake</name>
+    <version>1.0.5</version>
+    <vendor email="[email protected]" url="http://www.tboox.org">tboox.org</vendor>
+
+    <description><![CDATA[
+    A XMake integration plugin in Intellij Platform<br>
+    <p><a href="https://github.com/xmake-io/xmake-idea">Source Code</a> | <a href="https://gitter.im/tboox/tboox?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge">Gitter</a> | <a href="http://xmake.io/pages/donation.html#donate">Donate</a> | <a href="http://xmake.io">XMake Homepage</a></p>
+    Features:
+    <ul>
+        <li>xmake</li>
+        <ul>
+            <li>C/C++/Objc/Swift/Rust/Dlang/Golang ... support</li>
+            <li>Cross-platform support</li>
+            <li>Lua syntax</li>
+            <li><a href="https://github.com/xmake-io/xmake">More features and info about xmake</a></li>
+        </ul>
+        <li>Quickstart</li>
+        <li>Create project</li>
+        <li>Project configuration</li>
+        <li>Run configuration</li>
+        <li>Menu tools</li>
+        <li>Tool windows</li>
+        <li>Build and run</li>
+        <li>Goto error and waring problems</li>
+    </ul>
+    <p>中国朋友可以加QQ群交流及反馈BUG: 343118190</p>
+    ]]></description>
+
+    <change-notes><![CDATA[
+    <strong>1.0.5</strong>
+    <ul>
+        <li>[FIX]: Fix conflict issues with java</li>
+    </ul>
+    <strong>1.0.4</strong>
+    <ul>
+        <li>[NEW]: Modify rebuild icon</li>
+    </ul>
+    <strong>1.0.3</strong>
+    <ul>
+        <li>[NEW]: Improve exit code</li>
+    </ul>
+    <strong>1.0.2</strong>
+    <ul>
+        <li>[NEW]: Create project (c/c++/rust/go/dlang/swift/objc)</li>
+    </ul>
+    <strong>1.0.1</strong>
+    <ul>
+        <li>[NEW]: Quickstart</li>
+        <li>[NEW]: Project configuration</li>
+        <li>[NEW]: Run configuration</li>
+        <li>[NEW]: Menu tools</li>
+        <li>[NEW]: Tool windows</li>
+        <li>[NEW]: Build and run</li>
+        <li>[NEW]: Goto error and waring problems</li>
+    </ul>
+    ]]>
+    </change-notes>
+
+    <!-- please see http://www.jetbrains.org/intellij/sdk/docs/basics/getting_started/build_number_ranges.html for description -->
+    <idea-version since-build="201.0"/>
+
+    <!-- please see http://www.jetbrains.org/intellij/sdk/docs/basics/getting_started/plugin_compatibility.html
+         on how to target different products -->
+    <!--    <depends>com.intellij.modules.java</depends>-->
+    <depends>com.intellij.modules.lang</depends>
+    <depends>com.intellij.modules.platform</depends>
+    <depends optional="true" config-file="clion-only.xml">com.intellij.modules.clion</depends>
+
+    <extensions defaultExtensionNs="com.intellij">
+
+        <!-- icons -->
+        <iconProvider implementation="org.tboox.xmake.icons.XMakeIconProvider"/>
+
+        <!-- module configurations -->
+        <!-- clion not support -->
+        <sdkType implementation="org.tboox.xmake.project.XMakeSdkType"/>
+        <moduleType id="XMake.Module" implementationClass="org.tboox.xmake.project.XMakeModuleType"/>
+        <moduleBuilder builderClass="org.tboox.xmake.project.XMakeModuleBuilder"/>
+
+        <directoryProjectGenerator implementation="org.tboox.xmake.project.XMakeDirectoryProjectGenerator"/>
+
+        <!-- project configurations -->
+        <projectConfigurable instance="org.tboox.xmake.project.XMakeProjectConfigurable" displayName="XMake"
+                             groupId="language"/>
+        <toolWindow id="XMake" anchor="bottom" factoryClass="org.tboox.xmake.project.XMakeToolWindowFactory"
+                    icon="/icons/xmake_13x13.png"/>
+
+        <!-- run configurations -->
+        <programRunner implementation="org.tboox.xmake.run.XMakeRunner"/>
+        <configurationType implementation="org.tboox.xmake.run.XMakeRunConfigurationType"/>
+        <runConfigurationProducer implementation="org.tboox.xmake.run.XMakeRunConfigurationProducer"/>
+
+    </extensions>
+
+    <!--
+    group id
+         http://keithlea.com/idea-actions/
+         https://github.com/centic9/IntelliJ-Action-IDs
+    -->
+    <actions>
+        <group id="XMake.Menu" text="XMake" description="XMake Menu">
+            <add-to-group group-id="MainMenu" anchor="after" relative-to-action="RunMenu"/>
+            <action id="XMake.Run" class="org.tboox.xmake.actions.RunAction" text="Run Target" icon="/icons/run.png"
+                    description="Run the current target."/>
+            <action id="XMake.Build" class="org.tboox.xmake.actions.BuildAction" text="Build Project"
+                    icon="/icons/build.png" description="Build the current project."/>
+            <action id="XMake.Rebuild" class="org.tboox.xmake.actions.RebuildAction" text="Rebuild Project"
+                    icon="/icons/rebuild.png" description="Rebuild the current project."/>
+            <action id="XMake.Clean" class="org.tboox.xmake.actions.CleanAction" text="Clean Project"
+                    icon="/icons/clean.png" description="Clean target and object files."/>
+            <separator/>
+            <reference id="editRunConfigurations"/>
+            <action id="XMake.CleanConfiguration" class="org.tboox.xmake.actions.CleanConfigurationAction"
+                    text="Clean Configuration" icon="/icons/cleanconf.png"
+                    description="Clean the current configuration."/>
+            <separator/>
+            <action id="XMake.QuickStart" class="org.tboox.xmake.actions.QuickStartAction" text="Quick Start"
+                    icon="/icons/quickstart.png" description="Quick start a new project."/>
+        </group>
+    </actions>
+
+    <project-components>
+        <component>
+            <implementation-class>org.tboox.xmake.shared.XMakeConfiguration</implementation-class>
+        </component>
+    </project-components>
+</idea-plugin>

+ 0 - 0
resources/icons/build.png → src/main/resources/icons/build.png


+ 0 - 0
resources/icons/[email protected] → src/main/resources/icons/[email protected]


+ 0 - 0
resources/icons/build@2x_dark.png → src/main/resources/icons/build@2x_dark.png


+ 0 - 0
resources/icons/build_dark.png → src/main/resources/icons/build_dark.png


+ 0 - 0
resources/icons/clean.png → src/main/resources/icons/clean.png


+ 0 - 0
resources/icons/[email protected] → src/main/resources/icons/[email protected]


+ 0 - 0
resources/icons/cleanconf.png → src/main/resources/icons/cleanconf.png


+ 0 - 0
resources/icons/[email protected] → src/main/resources/icons/[email protected]


+ 0 - 0
resources/icons/debug.png → src/main/resources/icons/debug.png


+ 0 - 0
resources/icons/[email protected] → src/main/resources/icons/[email protected]


+ 0 - 0
resources/icons/debug@2x_dark.png → src/main/resources/icons/debug@2x_dark.png


+ 0 - 0
resources/icons/debug_dark.png → src/main/resources/icons/debug_dark.png


+ 0 - 0
resources/icons/error.png → src/main/resources/icons/error.png


+ 0 - 0
resources/icons/[email protected] → src/main/resources/icons/[email protected]


+ 0 - 0
resources/icons/quickstart.png → src/main/resources/icons/quickstart.png


+ 0 - 0
resources/icons/[email protected] → src/main/resources/icons/[email protected]


+ 0 - 0
resources/icons/rebuild.png → src/main/resources/icons/rebuild.png


+ 0 - 0
resources/icons/[email protected] → src/main/resources/icons/[email protected]


+ 0 - 0
resources/icons/rebuild@2x_dark.png → src/main/resources/icons/rebuild@2x_dark.png


+ 0 - 0
resources/icons/rebuild_dark.png → src/main/resources/icons/rebuild_dark.png


+ 0 - 0
resources/icons/run.png → src/main/resources/icons/run.png


+ 0 - 0
resources/icons/[email protected] → src/main/resources/icons/[email protected]


+ 0 - 0
resources/icons/settings.png → src/main/resources/icons/settings.png


+ 0 - 0
resources/icons/[email protected] → src/main/resources/icons/[email protected]


+ 0 - 0
resources/icons/settings@2x_dark.png → src/main/resources/icons/settings@2x_dark.png


+ 0 - 0
resources/icons/settings_dark.png → src/main/resources/icons/settings_dark.png


+ 0 - 0
resources/icons/warning.png → src/main/resources/icons/warning.png


+ 0 - 0
resources/icons/[email protected] → src/main/resources/icons/[email protected]


+ 0 - 0
resources/icons/xmake.png → src/main/resources/icons/xmake.png


+ 0 - 0
resources/icons/[email protected] → src/main/resources/icons/[email protected]


+ 0 - 0
resources/icons/xmake_13x13.png → src/main/resources/icons/xmake_13x13.png


+ 0 - 18
src/org/tboox/xmake/icons/XMakeIcons.kt

@@ -1,18 +0,0 @@
-package org.tboox.xmake.icons
-
-import com.intellij.openapi.util.IconLoader
-
-object XMakeIcons {
-
-    // logo icon
-    val XMAKE = IconLoader.getIcon("/icons/xmake.png")
-
-    // file icon
-    val FILE = IconLoader.getIcon("/icons/xmake.png")
-
-    // error icon
-    val ERROR = IconLoader.getIcon("/icons/error.png")
-
-    // warning icon
-    val WARNING = IconLoader.getIcon("/icons/warning.png")
-}

+ 0 - 76
src/org/tboox/xmake/project/XMakeModuleBuilder.kt

@@ -1,76 +0,0 @@
-package org.tboox.xmake.project
-
-import com.intellij.ide.util.projectWizard.*
-import com.intellij.openapi.diagnostic.Logger
-import com.intellij.openapi.module.ModuleType
-import com.intellij.openapi.roots.ModifiableRootModel
-import com.intellij.openapi.util.io.FileUtil
-import com.intellij.openapi.vfs.LocalFileSystem
-import org.tboox.xmake.utils.SystemUtils
-
-import javax.swing.DefaultComboBoxModel
-import java.io.File
-
-class XMakeModuleBuilder : ModuleBuilder() {
-
-    // the module kinds
-    val kindsModel = DefaultComboBoxModel<String>().apply {
-        addElement("Console")
-        addElement("Static Library")
-        addElement("Shared Library")
-    }
-
-    // the module languages
-    val languagesModel = DefaultComboBoxModel<String>().apply {
-        addElement("C")
-        addElement("C++")
-        addElement("Rust")
-        addElement("Dlang")
-        addElement("Go")
-        addElement("Swift")
-        addElement("Objc")
-        addElement("Objc++")
-    }
-
-    // get language
-    val language : String
-        get() = languagesModel.selectedItem.toString().toLowerCase()
-
-    // get template
-    val template : String
-        get() = when (kindsModel.selectedItem.toString()) {
-            "Console" -> "console"
-            "Static Library" -> "static"
-            "Shared Library" -> "shared"
-            else -> "console"
-        }
-
-
-    override fun setupRootModel(rootModel: ModifiableRootModel) {
-
-        // get content entry path
-        val contentEntryPath = contentEntryPath ?: return
-
-        // get content entry
-        val contentEntry = doAddContentEntry(rootModel) ?: return
-
-        // add source root
-        val sourceRoot = LocalFileSystem.getInstance().refreshAndFindFileByPath(FileUtil.toSystemIndependentName(contentEntryPath))!!
-        contentEntry.addSourceFolder(sourceRoot, false)
-
-        // create empty project
-        SystemUtils.Runv(listOf(SystemUtils.xmakeProgram, "create", "-P", contentEntryPath, "-n", name, "-l", language, "-t", template))
-    }
-
-    override fun getModuleType(): ModuleType<*> {
-        return XMakeModuleType.instance
-    }
-
-    override fun modifyProjectTypeStep(settingsStep: SettingsStep): ModuleWizardStep? {
-        return XMakeSdkSettingsStep(settingsStep, this)
-    }
-
-    companion object {
-        private val Log = Logger.getInstance(XMakeModuleBuilder::class.java.getName())
-    }
-}

+ 0 - 24
src/org/tboox/xmake/project/XMakeSdkSettingsStep.kt

@@ -1,24 +0,0 @@
-package org.tboox.xmake.project
-
-import com.intellij.ide.util.projectWizard.ModuleBuilder
-import com.intellij.ide.util.projectWizard.SettingsStep
-import com.intellij.ide.util.projectWizard.SdkSettingsStep
-import com.intellij.openapi.ui.ComboBox
-
-class XMakeSdkSettingsStep(settingsStep: SettingsStep, moduleBuilder: ModuleBuilder) : SdkSettingsStep(settingsStep, moduleBuilder, { sdkTypeId -> XMakeSdkType.instance === sdkTypeId }) {
-
-    // the module kinds
-    private val kindsComboBox = ComboBox<String>((moduleBuilder as XMakeModuleBuilder).kindsModel)
-
-    // the module languages
-    private val languagesComboBox = ComboBox<String>((moduleBuilder as XMakeModuleBuilder).languagesModel)
-
-    init {
-        settingsStep.addSettingsField("Module Language", languagesComboBox)
-        settingsStep.addSettingsField("Module Type", kindsComboBox)
-    }
-
-    override fun updateDataModel() {
-        super.updateDataModel()
-    }
-}

+ 0 - 67
src/org/tboox/xmake/run/XMakeProjectTasksRunner.kt

@@ -1,67 +0,0 @@
-package org.tboox.xmake.run
-
-import com.intellij.execution.*
-import com.intellij.execution.process.ProcessAdapter
-import com.intellij.execution.process.ProcessEvent
-import com.intellij.execution.runners.ExecutionEnvironment
-import com.intellij.openapi.diagnostic.Logger
-import com.intellij.openapi.project.Project
-import com.intellij.task.*
-import com.intellij.task.ExecuteRunConfigurationTask
-import org.tboox.xmake.project.xmakeConsoleView
-import org.tboox.xmake.utils.SystemUtils
-import org.tboox.xmake.shared.xmakeConfiguration
-
-class XMakeProjectTasksRunner : ProjectTaskRunner() {
-
-    override fun run(project: Project, context: ProjectTaskContext, callback: ProjectTaskNotification?, tasks: MutableCollection<out ProjectTask>) {
-
-        // clear console first
-        project.xmakeConsoleView.clear()
-
-        // configure and build it
-        val xmakeConfiguration = project.xmakeConfiguration
-        if (xmakeConfiguration.changed) {
-            SystemUtils.runvInConsole(project, xmakeConfiguration.configurationCommandLine).addProcessListener(object: ProcessAdapter() {
-                override fun processTerminated(e: ProcessEvent) {
-                    SystemUtils.runvInConsole(project, xmakeConfiguration.buildCommandLine, false, true, true)
-                }
-            })
-            xmakeConfiguration.changed = false
-        } else {
-            SystemUtils.runvInConsole(project, xmakeConfiguration.buildCommandLine, true, true, true)
-        }
-    }
-
-    override fun canRun(projectTask: ProjectTask): Boolean {
-
-        // hook 'Build Project/Module F9' => build
-        if (projectTask is ModuleBuildTask) {
-            return true
-        }
-
-        /*
-        // hook 'Build Artifacts' => package
-        if (projectTask is ArtifactBuildTask) {
-            return true
-        }*/
-
-        // run configuration?
-        if (projectTask is ExecuteRunConfigurationTask) {
-            val runProfile = projectTask.runProfile
-            if (runProfile is XMakeRunConfiguration) {
-                return true
-            }
-        }
-
-        return false
-    }
-
-    override fun createExecutionEnvironment(project: Project, task: ExecuteRunConfigurationTask, executor: Executor?): ExecutionEnvironment? = null
-
-    companion object {
-
-        // get log
-        private val Log = Logger.getInstance(XMakeProjectTasksRunner::class.java.getName())
-    }
-}

+ 0 - 13
xmake-idea.iml

@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<module type="PLUGIN_MODULE" version="4">
-  <component name="DevKit.ModuleBuildProperties" url="file://$MODULE_DIR$/resources/META-INF/plugin.xml" />
-  <component name="NewModuleRootManager" inherit-compiler-output="true">
-    <exclude-output />
-    <content url="file://$MODULE_DIR$">
-      <sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
-      <sourceFolder url="file://$MODULE_DIR$/resources" type="java-resource" />
-    </content>
-    <orderEntry type="inheritedJdk" />
-    <orderEntry type="sourceFolder" forTests="false" />
-  </component>
-</module>