uwolfer/gerrit-intellij-plugin

Can the plugin be built with different defaulted preset settings?

dlamblin opened this issue · 1 comments

It looks like settings will be stored in gerrit_settings.xml file.

@State(name = "GerritSettings", storages = @Storage("gerrit_settings.xml"))

However there is no default version of this file in the project, so I'm still browsing for where the defaults come from. Is it possible for a group to build their own version of this upstream plugin but bundle in a set of presets specific for that group?

You are right, gerrit_settings.xml is in the bundle, it gets created at runtime based on https://github.com/uwolfer/gerrit-intellij-plugin/blob/intellij2016.2/src/main/java/com/urswolfer/intellij/plugin/gerrit/GerritSettings.java.

I'm not sure how to share plugins settings, but you could look into official IntelliJ functionality: https://www.jetbrains.com/help/idea/sharing-your-ide-settings.html

Please post here if you have success doing this.