Dummy ProjectComponent to switch off the license dialogue
To integrate the TypoScript Language exposed by the plugin deeper into the TYPO3 Plugin for IntelliJ based IDEs, I made a first attempt creating a MultiHostInjector for PHP String literals on given methods (https://github.com/cedricziel/idea-php-typo3-plugin/pull/179).
It works quite well, but there's an issue with your license dialogue. The plugin.xml registers a project-component like this:
<project-components>
<component>
<implementation-class>de.sgalinski.common.notifications.TypoScriptNotification</implementation-class>
</component>
</project-components>
The component itself then creates a NotificationDialog
which in turn is incompatible with the LightCodeInsightFixtureTestCase
.
This prevents me from running my unit tests. I understand your desire to show the license popup, but I think it's a good idea to not show it in headless mode.
A simple solution to this dilemma would be the following:
Provide a implementation of the TypoScriptNotification
with <headless-implementation-class>
referencing an empty implementation of the ProjectComponent. It doesn't need to be much, but rather something plain like this, since the interface provides default methods:
import com.intellij.openapi.components.ProjectComponent;
public class EmptyComponent implements ProjectComponent {
}
I can't integrate the TypoScript language any further until this issue is resolved. Thanks a bunch for both providing the plugin for free and also for supporting external integrations!
BTW: I highly suspect it's the same for the fluid plugin.