Skip to content

Commit 2c6774a

Browse files
author
bajins
committed
```
docs(IDE): 更新IntelliJ IDEA使用文档中的资源链接和GUI Designer配置 更新了IntelliJ IDEA相关资源链接,将consulo链接分类为分支项目, 并重新整理了GUI Designer的Maven/Gradle配置说明,添加了详细的 maven-antrun-plugin配置示例,以支持二进制表单编译方式。 ```
1 parent 8c8733d commit 2c6774a

File tree

1 file changed

+49
-16
lines changed

1 file changed

+49
-16
lines changed

IDE/IDEA使用.md

Lines changed: 49 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
+ [https://www.jetbrains.com/products.html#type=ide](https://www.jetbrains.com/products.html#type=ide)
1010
+ [https://www.jetbrains.com/idea/download/other.html](https://www.jetbrains.com/idea/download/other.html)
1111
+ 简体中文专题教程 [https://github.com/judasn/IntelliJ-IDEA-Tutorial](https://github.com/judasn/IntelliJ-IDEA-Tutorial)
12-
+ [https://github.com/consulo/consulo](https://github.com/consulo/consulo)
12+
+ 分支 [https://github.com/consulo/consulo](https://github.com/consulo/consulo)
1313
+ Git客户端 [https://github.com/obiscr/intellij-community](https://github.com/obiscr/intellij-community)
1414

1515

@@ -524,21 +524,6 @@ groovyScript("def result=\"${_1}\"; if(result == 'void'){return '';}else{return
524524
* [https://www.jetbrains.com/help/idea/gui-designer.html](https://www.jetbrains.com/help/idea/gui-designer.html)
525525
* [https://www.jetbrains.com/help/idea/design-gui-using-swing.html](https://www.jetbrains.com/help/idea/design-gui-using-swing.html)
526526

527-
- https://youtrack.jetbrains.com/articles/SUPPORT-A-486/How-to-configure-GUI-forms-compilation-when-using-Gradle-or-Maven
528-
- https://tobiasmanske.de/posts/2021-02-23-maven-ij-designer
529-
- https://mvnrepository.com/artifact/com.jetbrains.intellij.java
530-
- `java-gui-forms-rt`
531-
- `java-compiler-ant-tasks`
532-
- https://mvnrepository.com/artifact/com.intellij
533-
- `forms_rt`
534-
- `javac2`
535-
- https://mvnrepository.com/artifact/com.jgoodies/forms
536-
- https://github.com/Kai-Xuan-Xu/ideauidesigner-maven-plugin
537-
- https://github.com/njdldkl666699/ideauidesigner-maven-plugin
538-
- https://github.com/BenjaminFaal/intellij-idea-gui-designer-maven-plugin
539-
- https://github.com/File5/intellij-idea-guidesigner-plugin
540-
- https://github.com/JetBrains/intellij-platform-gradle-plugin
541-
542527

543528
> 从2021+版本开始,IntelliJ IDEA 的 GUI Designer 默认将表单编译为二进制 `.form` 资源 + 反射加载方式,不再生成 `$$$setupUI$$$()` 方法和组件绑定代码到 `.java` 源文件中。
544529
@@ -557,6 +542,54 @@ groovyScript("def result=\"${_1}\"; if(result == 'void'){return '';}else{return
557542
```
558543

559544

545+
- https://youtrack.jetbrains.com/articles/SUPPORT-A-486/How-to-configure-GUI-forms-compilation-when-using-Gradle-or-Maven
546+
- https://mvnrepository.com/artifact/com.jetbrains.intellij.java
547+
- https://github.com/JetBrains/intellij-platform-gradle-plugin
548+
- `java-gui-forms-rt`
549+
- `java-compiler-ant-tasks`
550+
```xml
551+
<plugin>
552+
<groupId>org.apache.maven.plugins</groupId>
553+
<artifactId>maven-antrun-plugin</artifactId>
554+
<!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-antrun-plugin -->
555+
<version>3.2.0</version>
556+
<executions>
557+
<execution>
558+
<!-- 针对GUI Designer -> Generate GUI into 选择 Binary class files -->
559+
<!-- 参考 https://tobiasmanske.de/posts/2021-02-23-maven-ij-designer -->
560+
<!-- java-gui-forms-rt和java-compiler-ant-tasks(或forms_rt和javac2)版本要保持一致 -->
561+
<!-- 且要跟随IDEA大版本,主要考量的是ASM操作的字节码与JDK版本要同步,否则会报错 -->
562+
<id>compile-main</id>
563+
<phase>compile</phase>
564+
<configuration>
565+
<target>
566+
<path id="j2sp">
567+
<pathelement location="${project.basedir}/src/main/java"/>
568+
</path>
569+
<taskdef name="javac2" classpathref="maven.runtime.classpath" classname="com.intellij.ant.Javac2"/>
570+
<javac2 destdir="${project.basedir}/target/classes">
571+
<src refid="j2sp"/>
572+
</javac2>
573+
</target>
574+
</configuration>
575+
<goals>
576+
<goal>run</goal>
577+
</goals>
578+
</execution>
579+
</executions>
580+
</plugin>
581+
```
582+
- https://mvnrepository.com/artifact/com.intellij 最后版本7.0.3发布于2008年
583+
- `forms_rt`
584+
- `javac2`
585+
- https://mvnrepository.com/artifact/com.jgoodies/forms
586+
- https://github.com/Kai-Xuan-Xu/ideauidesigner-maven-plugin
587+
- https://github.com/njdldkl666699/ideauidesigner-maven-plugin
588+
- https://github.com/BenjaminFaal/intellij-idea-gui-designer-maven-plugin
589+
- https://github.com/File5/intellij-idea-guidesigner-plugin
590+
591+
592+
560593
## PyCharm
561594

562595

0 commit comments

Comments
 (0)