MTPTFTHGAOKQGRUDXC55AM6XJHZZZ5EF6FPVXKFVCUYVXJNEANYQC
<projectService serviceInterface="com.github.jonathanxd.dracon.pijul.Pijul"
serviceImplementation="com.github.jonathanxd.dracon.cmd.PijulCmd" />
<vcs name="Pijul" vcsClass="com.github.jonathanxd.dracon.PijulVcs" displayName="Pijul" administrativeAreaName=".pijul"/>
<vcs.actions.ScheduleForAdditionActionExtension implementation="com.github.jonathanxd.dracon.actions.PijulAddExtension"/>
<vcsRootChecker implementation="com.github.jonathanxd.dracon.roots.PijulRootChecker"/>
<vcs.fileStatusProvider implementation="com.github.jonathanxd.dracon.vfs.PijulVirtualFileStatusProvider"/>
<action id="Pijul.Init" class="com.github.jonathanxd.dracon.actions.PijulInit">
<add-to-group group-id="Vcs.Import" />
<add-to-group group-id="Vcs.Operations.Popup.NonVcsAware" relative-to-action="Start.Use.Vcs" anchor="before" />
</action>
<!--<action id="Pijul.Stage.Add" class="" use-shortcut-of="ChangesView.AddUnversioned" />-->
<action id="Pijul.Commit.And.Push.Executor" class="com.github.jonathanxd.dracon.actions.PijulCommitAndPushExecutorAction">
<add-to-group group-id="Vcs.Commit.PrimaryCommitActions"/>
<keyboard-shortcut first-keystroke="control alt K" keymap="$default"/>
</action>
<group id="Pijul.Menu" class="com.github.jonathanxd.dracon.actions.PijulMenu" popup="true" searchable="false">
<reference ref="Pijul.Init"/>
<separator/>
<action id="Pijul.Add" class="com.intellij.openapi.vcs.changes.actions.ScheduleForAdditionWithIgnoredFilesConfirmationAction"
icon="AllIcons.General.Add" use-shortcut-of="ChangesView.AddUnversioned"/>
<separator/>
<reference ref="Pijul.Commit.And.Push.Executor"/>
<separator/>
<add-to-group group-id="VcsGroup" anchor="last"/>
<add-to-group group-id="VcsGlobalGroup" anchor="after" relative-to-action="Vcs.Specific"/>
</group>
package com.github.jonathanxd.i18n
import com.intellij.DynamicBundle
import org.jetbrains.annotations.Nls
import org.jetbrains.annotations.PropertyKey
import java.util.function.Supplier
const val BUNDLE = "messages.DraconBundle"
object DraconBundle : DynamicBundle(BUNDLE) {
fun message(@PropertyKey(resourceBundle = BUNDLE) key: String, vararg params: Any): @Nls String {
return INSTANCE.getMessage(key, params)
}
fun messagePointer(@PropertyKey(resourceBundle = BUNDLE) key: String, vararg params: Any): Supplier<String> {
return INSTANCE.getLazyMessage(key, params)
}
}
package com.github.jonathanxd.actions
import com.intellij.openapi.actionSystem.AnActionEvent
import com.intellij.openapi.actionSystem.CommonDataKeys
import com.intellij.openapi.fileChooser.FileChooserDescriptor
import com.intellij.openapi.fileChooser.FileChooserDescriptorFactory
import com.intellij.openapi.project.DumbAwareAction
import com.intellij.openapi.project.ProjectManager
class PijulInit: DumbAwareAction() {
override fun actionPerformed(e: AnActionEvent) {
val project = e.getData(CommonDataKeys.PROJECT) ?: ProjectManager.getInstance().defaultProject
val fcd = FileChooserDescriptorFactory.createSingleFileDescriptor()
fcd.isShowFileSystemRoots = true
}
}