This is a blog like article with a FAQ for d3web developers transitioning from Eclipse to IntelliJ IDEA:
Download the attached code_styles.jar
and import them with File -> Import settings.
and add it the following way:
![]() |
The provided copyright.txt is for the denkbares GmbH, but can easily be changed to other firms or e.g. the university.
Go to File -> Settings -> Version control -> Confirmation -> When files are created. You're probably looking for "Add silently".
Edit -> Macros -> Start macro recording
Now we record the actual macro simulating our Save actions:
Edit -> Marcros -> Stop macro recording
After that, I bound the macro to "Cmd + Alt + S". This way I still have the normal save, but also the macro which does more...
![]() |
The above order will not quite avoid all changes, since Eclipse seems to additionally add blank lines between all imports with different first path elements, but this seems close enough for now. I think since it is a code style, this should also be part of the code style settings, which are also attached to this site.
Attention: After adding files to your library, they become read-only in IntelliJ. You should only add files as global libraries that you will not change often. Otherwise you need to removed them from the library as long as you edit them or only use an external copy of the files.
During startup KnowWE/Tomcat often produces exceptions of the following kind:
java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: com.ecyrd.jspwiki.auth.UserManager
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1351)
at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1970)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1894)
....
KnowWE still works, but the exceptions are annoying/irritating...
In eclipse it was possible to delete the work-folder in KnowWE-App, but in IntelliJ that does no longer work.
The solution is actually pretty simple, just deactivate session persistence in your Tomcat:
For developers migrating from Eclipse to IntelliJ, the default behavior of breakpoints in IntelliJ might be unexpected. While Eclipse only suspends the thread that reached the breakpoint, IntelliJ also suspends all other threads when a breakpoint is reached.
This behavior can simply be changed in the settings of the breakpoint: Open the breakpoints panel in the debugger an navigate to your breakpoint. Right to the checkbox "Suspend" select the radio-button "Thread" instead of "All". On the right side of the panel you can also make this setting the default.